Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add Dockerfile.ci and docker-compose.ci.yml
This provides a base image for CI systems to use.
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |