Staged Docker build script

This commit is contained in:
2016-08-10 18:27:27 +02:00
parent 8fc1f8b31d
commit 881cb6bc40
16 changed files with 217 additions and 95 deletions

16
docker/1_base/base.docker Executable file
View File

@@ -0,0 +1,16 @@
FROM ubuntu:16.04
MAINTAINER Francesco Siddi <francesco@blender.org>
RUN apt-get update && apt-get install -qyy \
-o APT::Install-Recommends=false -o APT::Install-Suggests=false \
python-pip libffi6 openssl ffmpeg
RUN mkdir -p /data/git/pillar \
&& mkdir -p /data/storage \
&& mkdir -p /data/config \
&& mkdir -p /data/venv \
&& mkdir -p /data/wheelhouse
RUN pip install virtualenv
RUN virtualenv /data/venv
RUN . /data/venv/bin/activate && pip install -U pip && pip install wheel

3
docker/1_base/build.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
docker build -t pillar_base -f base.docker .;