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
PID = ./app.pid | |
GO_FILES = $(wildcard *.go) | |
serve: start | |
@fswatch -x -o --event Created --event Updated --event Renamed -r -e '.*' -i '\.go$$' . | xargs -n1 -I{} make restart || make kill | |
kill: | |
@kill `cat $(PID)` || true | |
before: |
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
#cloud-config | |
write_files: | |
- path: /tmp/startup.sh | |
permissions: 0755 | |
content: | | |
#!/bin/bash | |
sleep 10 | |
export JENKINS_URL='http://master' | |
export USER='user:api_key' | |
export LABELS='{{properties['buildName']}}' |
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
def buildId = env.BUILD_NUMBER | |
def maxRunner = 10 | |
def envName = "${env.JOB_NAME}".toLowerCase().replaceAll(~/[^-a-z0-9]/, '-').take(50) + "-${buildId}" | |
def gitCommit = "" | |
def prepareDbAndRun = [:] | |
for (int i = 1; i <= maxRunner; i++) { | |
def runner = i | |
prepareDbAndRun["Specs-${runner}"] = { | |
node(envName) { |
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
resources: | |
- name: {{properties['buildName']}}-tpl | |
properties: | |
description: '' | |
properties: | |
disks: | |
- autoDelete: true | |
boot: true | |
deviceName: boot | |
initializeParams: |
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
def buildId = env.BUILD_NUMBER | |
def maxRunner = 15 | |
def envName = "${env.JOB_NAME}-${buildId}".toLowerCase().replaceAll(~/[^-a-z0-9]/, '-') | |
def gitCommit = "" | |
def prepareDbAndRun = [:] | |
for (int i = 1; i <= maxRunner; i++) { | |
def runner = i | |
prepareDbAndRun["runner${runner}"] = { | |
node(envName) { |
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
#!/bin/bash | |
docker swarm init --advertise-addr eth0 | |
docker run --rm -it \ | |
--name ucp \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
docker/ucp install \ | |
--admin-username admin --admin-password password \ | |
--force-insecure-tcp --san pwd${INSTANCE_IP}-443.host3.labs.play-with-docker.com |
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
#!/bin/sh | |
export GITHUB_APP_ID=XXXX | |
export GITHUB_API_SECRET=XXXX | |
export SENTRY_EMAIL_USER=xXXX | |
export SENTRY_EMAIL_PASSWORD=XXXXX | |
export SENTRY_SERVER_EMAIL="[email protected]" | |
export SENTRY_EMAIL_HOST=smtp.mandrillapp.com | |
export POSTGRES_PASSWORD=XXXX |
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: '2' | |
services: | |
dev: | |
build: | |
context: . | |
dockerfile: config/docker/Dockerfile.dev | |
ports: | |
- 4000:4000 | |
ci: | |
build: |
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
bash-4.3# apk add --update --no-cache python build-base curl ruby-json | |
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | |
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | |
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | |
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | |
fetch http://nl.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | |
fetch http://nl.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | |
OK: 248 MiB in 61 packages | |
bash-4.3# cat test.cpp |
NewerOlder