I hereby claim:
- I am leanderjanssen on github.
- I am leander (https://keybase.io/leander) on keybase.
- I have a public key ASAh80hzsW6KG90UX_ojOG_Z_MvFm2bVieCGChOoGtTyPAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Retrieve public and private ip of instance | |
PUBLIC_HOSTNAME=$(curl -s http://169.254.169.254/latest/meta-data/public-hostname) | |
PUBLIC_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) | |
PRIVATE_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
# Generate openssl config for self-signed certificate with SANs | |
cat << EOF > ~/domain.cnf | |
[ ca ] |
#!/bin/bash | |
# Retrieve public and private ip of instance | |
PUBLIC_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) | |
PRIVATE_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
mkdir ~/docker-ca | |
chmod 0700 ~/docker-ca | |
cd ~/docker-ca || exit 1 |
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
defaults | |
mode tcp | |
option dontlognull | |
timeout connect 5000 | |
timeout client 50000 | |
timeout server 50000 |
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
defaults | |
mode tcp | |
option dontlognull | |
timeout connect 5000 | |
timeout client 50000 | |
timeout server 50000 |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
docker run -d -p 9000:9000 --name minio minio/minio server /export
docker logs minio
FROM alpine:edge | |
ARG GOSU_VERSION=1.10 | |
ARG TINI_VERSION=v0.16.1 | |
RUN set -x \ | |
&& apk --no-cache add curl gnupg openjdk8-jre git unzip bash coreutils ttf-dejavu openssh-client \ | |
&& curl -fsSL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" -o /bin/gosu \ | |
&& curl -fsSL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64.asc" -o /tmp/gosu.asc \ | |
&& export GNUPGHOME="$(mktemp -d)" \ | |
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \ |
{ | |
"Name": "demo", | |
"TaskTemplate": { | |
"ContainerSpec": { | |
"Image": "nginx:latest", | |
"Secrets": [ | |
{ | |
"File": { | |
"GID": "33", | |
"Mode": 384, |