Permalink
Browse files

Add Dockerfile.ci and docker-compose.ci.yml

This provides a base image for CI systems to use.
  • Loading branch information...
grosskur committed Jul 31, 2015
1 parent b60f673 commit 583c665e94bea020329e3193500a04e1e9941bf0
Showing with 58 additions and 0 deletions.
  1. +47 −0 Dockerfile.ci
  2. +11 −0 docker-compose.ci.yml
View
@@ -0,0 +1,47 @@
FROM ubuntu:14.04
MAINTAINER Alan Grosskurth <code@alan.grosskurth.ca>
RUN \
locale-gen en_US.UTF-8 && \
apt-get update && \
env DEBIAN_FRONTEND=noninteractive apt-get -q -y install --no-install-recommends \
build-essential \
ca-certificates \
curl \
git-core \
libbz2-dev \
libcurl4-openssl-dev \
liblzma-dev \
libncurses5-dev \
libpq-dev \
libreadline-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
pkg-config \
zlib1g-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV \
PATH=/opt/local/python/bin:"$PATH"
RUN \
mkdir -p /tmp/src /opt/local/python && \
cd /tmp/src && \
curl -fsLS -O https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz && \
curl -fsLS -O https://bootstrap.pypa.io/get-pip.py && \
echo '1cd3730781b91caf0fa1c4d472dc29274186480161a150294c42ce9b5c5effc0 Python-2.7.10.tar.xz' | sha256sum -c && \
tar -xJf Python-2.7.10.tar.xz && \
cd /tmp/src/Python-2.7.10 && \
env LDFLAGS='-Wl,-rpath=/opt/local/python/lib' \
./configure --enable-shared --prefix=/opt/local/python && \
make && \
make install && \
ldconfig && \
cd /tmp/src && \
/opt/local/python/bin/python get-pip.py && \
cd /tmp && \
rm -rf /tmp/src
WORKDIR /app
View
@@ -0,0 +1,11 @@
app:
build: .
dockerfile: Dockerfile.ci
volumes:
- ./:/app
- /usr/bin/buildkite-agent:/usr/bin/buildkite-agent
environment:
- BUILDKITE_AGENT_ACCESS_TOKEN
- BUILDKITE_JOB_ID
- BUILDKITE_BUILD_ID
- BUILDKITE_BUILD_NUMBER

0 comments on commit 583c665

Please sign in to comment.