Skip to content

Instantly share code, notes, and snippets.

@jamielennox
Created November 29, 2016 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamielennox/368a38e2b8b93e9693a8346a1782f531 to your computer and use it in GitHub Desktop.
Save jamielennox/368a38e2b8b93e9693a8346a1782f531 to your computer and use it in GitHub Desktop.
version: '2'
services:
zuul-base:
build:
context: ../
dockerfile: docker/Dockerfile
volumes:
- "./etc:/etc/zuul"
version: '2'
services:
zuul-server:
extends:
file: common.yml
service: zuul-base
command: zuul-server -d -c /etc/zuul/zuul.conf
expose:
- 8001
- 36724
volumes:
- "./ssh:/var/lib/zuul/.ssh"
zuul-merger:
extends:
file: common.yml
service: zuul-base
command: zuul-merger -d -c /etc/zuul/zuul.conf
depends_on:
- zuul-server
volumes:
- "./ssh:/var/lib/zuul/.ssh"
FROM ubuntu:latest
MAINTAINER Jamie Lennox <jamielennox@gmail.com>
RUN apt-get update && \
apt-get install -y gcc git python2.7 python2.7-dev wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
wget -O- https://bootstrap.pypa.io/get-pip.py | python2.7
RUN groupadd -r zuul && \
useradd -r -g zuul -d /var/lib/zuul -m zuul && \
mkdir /var/log/zuul /var/lib/zuul/state /var/lib/zuul/merger && \
chown -R zuul: /var/log/zuul /var/lib/zuul/
VOLUME ["/etc/zuul"]
ADD . /opt/zuul
RUN pip install -e /opt/zuul/
USER zuul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment