I hereby claim:
- I am JulienBreux on github.
- I am julienbreux (https://keybase.io/julienbreux) on keybase.
- I have a public key whose fingerprint is 28FD 65AB 03BB 4A67 331E FBDE C71D 9FA1 0BD0 23FA
To claim this, I am signing this object:
| FROM nginx:1-alpine | |
| COPY ./src/index.html /usr/share/nginx/html | |
| COPY ./etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf |
| import ( | |
| "go.mongodb.org/mongo-driver/mongo" | |
| mongooptions "go.mongodb.org/mongo-driver/mongo/options" | |
| ) | |
| // createSlugIndex creates the slug index in Mongo collection | |
| func createSlugIndex(ctx context.Context, c mongo.Collection) (err error) { | |
| ptrTrue := true | |
| ptrSlug := "slug" | |
| _, err = c.Indexes().CreateMany(ctx, []mongo.IndexModel{ |
| cd() | |
| { | |
| debug() | |
| { | |
| if [ $DOTENVSH_DEBUG = true ]; then | |
| echo $1 | |
| fi | |
| } | |
| loadenv() |
I hereby claim:
To claim this, I am signing this object:
| # @see https://github.com/JulienBreux/tuto-go-docker-ms | |
| FROM golang:1.9-alpine as builder | |
| WORKDIR /go/src/github.com/JulienBreux/tuto-go-docker-ms/ | |
| RUN apk --update add ca-certificates | |
| # RUN go get -d -v golang.org/x/net/html | |
| COPY app.go . | |
| RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . | |
| FROM scratch |
| # Used to run minikube shortly | |
| alias mk="minikube" | |
| # Used to run kubectl shortly | |
| alias k="kubectl" | |
| # Used to get ... | |
| alias kg="kubectl get" | |
| # Used to get all pods |
I hereby claim:
To claim this, I am signing this object:
| # How to use: | |
| # | |
| # $ruby server.rb | |
| # $curl --header "X-Company-Roles: manager" --header "X-Company-Roles: admin" http://localhost:2345/ | |
| require 'socket' | |
| require 'json' | |
| server = TCPServer.new('localhost', 2345) |
| gem rails _1.0.0_ --version | |
| gem rails _2.0.0_ --version |
| alias debian="docker run --rm -ti debian:jessie /bin/bash" | |
| alias ubuntu="docker run --rm -ti ubuntu:jessie /bin/bash" |