File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
src/ci/docker/dist-x86_64-redox Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM ubuntu:16.04
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ g++ \
5
+ make \
6
+ file \
7
+ curl \
8
+ ca-certificates \
9
+ python2.7 \
10
+ git \
11
+ cmake \
12
+ sudo \
13
+ bzip2 \
14
+ xz-utils \
15
+ wget \
16
+ libssl-dev \
17
+ pkg-config \
18
+ software-properties-common \
19
+ apt-transport-https
20
+
21
+ # Install the cross compiler
22
+ RUN apt-key adv --batch --yes --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F && \
23
+ add-apt-repository -y 'deb https://static.redox-os.org/toolchain/apt /' && \
24
+ apt-get update && \
25
+ apt-get install -y x86-64-elf-redox-gcc
26
+
27
+ RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
28
+ dpkg -i dumb-init_*.deb && \
29
+ rm dumb-init_*.deb
30
+ ENTRYPOINT ["/usr/bin/dumb-init" , "--" ]
31
+
32
+ RUN curl -o /usr/local/bin/sccache \
33
+ https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-05-12-sccache-x86_64-unknown-linux-musl && \
34
+ chmod +x /usr/local/bin/sccache
35
+
36
+ ENV \
37
+ AR_x86_64_unknown_redox=x86_64-elf-redox-ar \
38
+ CC_x86_64_unknown_redox=x86_64-elf-redox-gcc \
39
+ CXX_x86_64_unknown_redox=x86_64-elf-redox-g++
40
+
41
+ ENV RUST_CONFIGURE_ARGS --target=x86_64-unknown-redox --enable-extended
42
+ ENV SCRIPT python2.7 ../x.py dist --target x86_64-unknown-redox
You can’t perform that action at this time.
0 commit comments