mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
First attempt at building a docker image
This commit is contained in:
parent
721e086b33
commit
400855d707
3 changed files with 26 additions and 0 deletions
|
@ -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
7
docker-image-build-task.sh
Executable 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/"
|
14
docker/servo-x86_64-linux/Dockerfile
Normal file
14
docker/servo-x86_64-linux/Dockerfile
Normal 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}"
|
Loading…
Add table
Add a link
Reference in a new issue