This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dockerfile_for_local_execution] Intial test version
Docker file for running bootstrap in a container, so that the process of installing dependent libraries is simplified. * Added README on how to run things in the container
- Loading branch information
1 parent
ef86a54
commit cce973f
Showing
3 changed files
with
60 additions
and
2 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 @@ | ||
.git |
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 WebOps MoJ <webops@digital.justice.gov.uk> | ||
|
||
# Support tools for building Python apps | ||
# - build-essential | ||
# - python-dev | ||
# - python-setuptools | ||
# | ||
# Specific packages required for the app to work | ||
# - git | ||
# - libgit2-dev | ||
# - libffi-dev | ||
# - libyaml-dev | ||
# Specific packages for libgit2: | ||
# - cmake | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential python-dev python-setuptools \ | ||
git libgit2-dev libffi-dev libyaml-dev \ | ||
cmake | ||
|
||
# Install libgit2 - http://www.pygit2.org/install.html | ||
RUN mkdir /tmp/libgit2 | ||
WORKDIR /tmp/libgit1 | ||
ADD https://github.com/libgit2/libgit2/archive/v0.22.0.tar.gz /tmp/libgit1/ | ||
RUN tar zxf v0.22.0.tar.gz | ||
# Perform the build | ||
WORKDIR /tmp/libgit1/libgit2-0.22.0 | ||
RUN cmake . | ||
RUN make | ||
RUN make install | ||
|
||
WORKDIR / | ||
RUN easy_install pip | ||
|
||
# Copy and work on just the requirements.txt file, so that the 'pip install' step is cacheable | ||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip install -r /tmp/requirements.txt | ||
|
||
# Cleanup | ||
RUN rm -rf /tmp/libgit2 | ||
RUN rm -rf /var/lib/apt/lists/* | ||
RUN rm -fr *Release* *Sources* *Packages* | ||
RUN truncate -s 0 /var/log/*log | ||
|
||
WORKDIR /usr/src/bootstrap_cfn | ||
COPY . /usr/src/bootstrap_cfn |
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