This file contains hidden or 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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("hello world") | |
} |
This file contains hidden or 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
[[snippets]] | |
description = "Find source files matching pattern in content" | |
command = "find . -type f -name '<name=*>' -exec grep -Hn <pattern> {} \\;" | |
output = "" | |
[[snippets]] | |
description = "List opened ports and owner process (OSX)" | |
command = "sudo lsof -PiTCP -sTCP:LISTEN" | |
output = "" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
OlderNewer