Skip to content

Instantly share code, notes, and snippets.

View torosent's full-sized avatar
🌐
Probably working

Tomer Rosenthal torosent

🌐
Probably working
View GitHub Profile
resource vnet_previewRG_9b4e_infra_subnet 'Microsoft.Network/virtualNetworks/subnets@2020-07-01' = {
name: 'vnet-previewRG-9b4e/infra-subnet'
properties: {
delegations: [
{
name: 'Microsoft.App.environments'
id: '/subscriptions/<subid>/resourceGroup/vnet-previewRG-9b4e/providers/Microsoft.Network/availableDelegations/Microsoft.App.environments'
type: 'Microsoft.Network/availableDelegations'
properties: {
serviceName: 'Microsoft.App/environments'
@torosent
torosent / template.bicep
Last active July 17, 2023 15:33
internal env with WP 1/2
param location string
param environmentName string
resource environment 'Microsoft.App/managedEnvironments@2023-04-01-preview' = {
name: environmentName
location: location
properties: {
@torosent
torosent / Dockerfile
Last active March 24, 2019 10:14
wrk docker
FROM alpine:3.8 as build
RUN apk add --update alpine-sdk openssl-dev
RUN cd /tmp && \
git clone https://github.com/giltene/wrk2
RUN cd /tmp/wrk2 && \
make
FROM alpine:3.8
@torosent
torosent / Dockerfile
Last active October 11, 2021 20:51
azcopy 10 alpine
FROM alpine:3.8
ARG VERSION=azcopy_linux_amd64_10.0.8
RUN apk --update add --virtual build-dependencies --no-cache wget tar
RUN apk --update add libc6-compat ca-certificates
RUN wget -O azcopyv10.tar https://aka.ms/downloadazcopy-v10-linux && \
tar -xf azcopyv10.tar && \
mkdir /app && \
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: demo-api
namespace: default
annotations:
kubernetes.io/ingress.class: nginx
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/limit-connections: "2"