Last active
May 26, 2017 04:31
-
-
Save lox/59462ec5e15204ef5138ff13460a2573 to your computer and use it in GitHub Desktop.
A basic repo that can be cloned for Buildkite Tests
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: | |
await: | |
build: . | |
depends_on: | |
- wordpress | |
command: "-vv tcp4://wordpress:80" | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: wordpress | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: wordpress | |
wordpress: | |
depends_on: | |
- db | |
image: wordpress:latest | |
ports: | |
- "80" | |
restart: always | |
environment: | |
WORDPRESS_DB_HOST: db:3306 | |
WORDPRESS_DB_PASSWORD: wordpress | |
volumes: | |
db_data: |
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 alpine:3.3 | |
RUN apk --update --no-cache add curl && \ | |
curl -Lfs https://github.com/betalo-sweden/await/releases/download/v0.4.0/await-linux-amd64 -o /bin/await && \ | |
chmod +x /bin/await | |
ENTRYPOINT ["/bin/await"] |
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 | |
set -eu | |
cleanup() { | |
docker-compose kill || true | |
docker-compose rm --force -v || true | |
docker-compose down -v || true | |
} | |
trap cleanup EXIT | |
export COMPOSE_PROJECT_NAME="helloworld$$" | |
docker-compose up -d await | |
docker-compose scale await=10 | |
sleep 10 | |
docker-compose ps | |
docker-compose logs await |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment