Skip to content

Instantly share code, notes, and snippets.

@webdeb
webdeb / OTP - Dockerfile
Last active September 21, 2017 06:42
Dockerfile for releases
FROM alpine:3.5
ARG APP
EXPOSE 5000
EXPOSE 4369
ENV PORT=5000 \
MIX_ENV=prod
RUN apk --no-cache add ncurses openssl
@webdeb
webdeb / gitlab phoenix build & test pipeline
Created May 1, 2017 00:09
DinD pipeline to build & test phoenix applications
image: docker:latest
variables:
PWD: $(pwd)
BUILD_BOX: webdeb/phx-dev
DATA_BOX: build_data_$CI_PROJECT_ID_$CI_BUILD_REF
stages:
- build
- test
@webdeb
webdeb / gitlab-run.alias
Created April 29, 2017 14:52
gitlab-runner alias
alias gitlab-run='gitlab-runner exec docker --docker-volumes "/var/run/docker.sock:/var/run/docker.sock" --docker-privileged'