First attempt at building a docker image

This commit is contained in:
Simon Sapin 2018-09-06 18:48:40 +02:00
parent 721e086b33
commit 400855d707
3 changed files with 26 additions and 0 deletions

View file

@ -70,6 +70,11 @@ def create_task(name, command, artifacts=None, dependencies=None, env=None, cach
print("Scheduled %s: %s" % (name, task_id)) print("Scheduled %s: %s" % (name, task_id))
return task_id return task_id
create_task(
"docker image build task",
"./docker-image-build-task.sh servo-x86_64-linux",
)
build_task = create_task( build_task = create_task(
"build task", "build task",
"./build-task.sh", "./build-task.sh",

7
docker-image-build-task.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
image=$1
apt-get update
apt-get install -y --no-install-recommends docker.io
docker build -t "$image" "./docker/$image/"

View file

@ -0,0 +1,14 @@
FROM ubuntu:bionic-20180821
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
curl \
ca-certificates \
python2.7 \
g++ \
&& \
rm -rf /var/lib/apt/lists/* && \
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
ENV PATH="/root/.cargo/bin:${PATH}"