This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stretch-slim | |
RUN apt-get update && \ | |
apt-get install -y nginx wget && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN wget https://github.com/jpillora/webproc/releases/download/0.2.2/webproc_linux_amd64.gz && \ | |
zcat webproc_linux_amd64.gz > /webproc && \ | |
rm -f webproc_linux_amd64.gz && \ | |
chmod +x /webproc | |
ENTRYPOINT ["/webproc", "--config", "/etc/nginx/nginx.conf,/etc/nginx/sites-enabled/default", "--"] | |
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- build | |
- test | |
- docker | |
build: | |
stage: build | |
image: openjdk:8-jdk-alpine | |
artifacts: | |
untracked: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull openjdk:8-jdk-alpine | |
docker pull openjdk:8-jre-alpine | |
docker pull gitlab/gitlab-runner:alpine | |
docker pull gitlab/gitlab-ce:latest | |
docker pull gitlab/dind | |
docker pull debian:stretch-slim | |
docker pull bretfisher/netshoot | |
docker pull nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull busybox:latest | |
docker pull lukaszlach/clock:latest | |
docker pull debian:stretch | |
docker pull debian:stretch-slim | |
docker pull nginx | |
docker pull nginx:1.15 | |
docker pull golang:1.9-alpine | |
docker pull registry:2 | |
docker pull bretfisher/netshoot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull openjdk:8-jdk-alpine | |
docker pull openjdk:8-jre-alpine | |
docker pull gitlab/gitlab-runner:alpine | |
docker pull gitlab/gitlab-ce:latest | |
docker pull gitlab/dind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -ex | |
docker -v | |
docker-compose -v | |
make -v | |
vim --version | |
curl --version | |
docker pull busybox:latest | |
docker pull lukaszlach/clock:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
orca: | |
image: lukaszlach/orca | |
container_name: orca | |
ports: ["8080:8080"] | |
depends_on: ["mysql"] | |
environment: ["ORCA_MYSQL=mysql:3306"] | |
mysql: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Infoshare 2019 VPS | |
# curl -sSfL lach.dev/is19-vps-sh | bash | |
curl -sSfL get.docker.com | bash | |
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
apt-get install -y \ | |
bash curl wget make jq net-tools procps htop vim git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VPS_ID=123 | |
docker run -d --name orca-tunnel --restart always \ | |
-p 4040:4040 \ | |
-p 5000:5000 \ | |
-p 8000:8000 -p 8080:8080 -p 8081:8081 -p 8443:8443 \ | |
-p 9000:9000 \ | |
-p 10080:10080 \ | |
-e SSH_USER=d -e SSH_PASSWORD=docker -e SSH_PORT=80 \ | |
lukaszlach/orca-tunnel "vps$VPS_ID.cmd.cat" 4040 5000 8000 8080 8081 8443 9000 10080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sSfL https://gist.githubusercontent.com/lukaszlach/c0fdb7a728cdea632db1aebbbff3f6d6/raw/gcp-uw.sh | bash | |
cd / | |
wget -O gotty.tar.gz https://github.com/yudai/gotty/releases/download/v2.0.0-alpha.3/gotty_2.0.0-alpha.3_linux_amd64.tar.gz | |
tar zxvf gotty.tar.gz | |
cd /home/d | |
/gotty -w -c 'docker:' --reconnect /usr/bin/sudo -u d bash -l & |
OlderNewer