This repository has been archived by the owner on Nov 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathDockerfile
45 lines (40 loc) · 1.77 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ubuntu:15.10
RUN apt-get update
RUN apt-get install -y --force-yes --no-install-recommends \
curl make git wget file \
python-dev python-pip stunnel \
g++ gcc libc6-dev \
gcc-4.7-arm-linux-gnueabi libc6-dev-armel-cross \
gcc-4.7-arm-linux-gnueabihf libc6-dev-armhf-cross \
gcc-4.8-aarch64-linux-gnu libc6-dev-arm64-cross \
gcc-4.8-powerpc-linux-gnu libc6-dev-powerpc-cross \
gcc-4.8-powerpc64le-linux-gnu libc6-dev-ppc64el-cross \
lib64gcc-4.8-dev-powerpc-cross libc6-dev-ppc64-powerpc-cross \
software-properties-common
RUN add-apt-repository ppa:angelsl/mips-cross && apt-get update
RUN apt-get install -y --force-yes --no-install-recommends \
gcc-5-mips-linux-gnu libc6-dev-mips-cross \
gcc-5-mipsel-linux-gnu libc6-dev-mipsel-cross
RUN \
for f in `ls /usr/bin/mips*-linux-*-*-5`; do \
ln -vs $f `echo $f | sed -e 's/-5$//'`; \
done && \
for f in `ls /usr/bin/*-linux-*-*-4.8`; do \
ln -vs $f `echo $f | sed -e 's/-4.8$//'`; \
done && \
for f in `ls /usr/bin/*-linux-*-*-4.7`; do \
ln -vs $f `echo $f | sed -e 's/-4.7$//'`; \
done
# Install rumprun cross compiler
WORKDIR /build
COPY linux-cross/build_rumprun.sh /build/
RUN /bin/bash build_rumprun.sh && rm -rf /build
# Install buildbot and prep it to run
RUN pip install buildbot-slave
RUN groupadd -r rustbuild && useradd -r -g rustbuild rustbuild
RUN mkdir /buildslave && chown rustbuild:rustbuild /buildslave
# When running this container, startup buildbot
WORKDIR /buildslave
USER rustbuild
COPY start-docker-slave.sh start-docker-slave.sh
ENTRYPOINT ["sh", "start-docker-slave.sh"]