File tree 2 files changed +42
-0
lines changed
2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ services: docker
4
4
env :
5
5
- VERSION=1.25.0 VARIANT=stretch/slim
6
6
- VERSION=1.25.0 VARIANT=stretch
7
+ - VERSION=1.25.0 VARIANT=jessie/slim
7
8
- VERSION=1.25.0 VARIANT=jessie
8
9
9
10
install :
Original file line number Diff line number Diff line change
1
+ FROM debian:jessie-slim
2
+
3
+ ENV RUSTUP_HOME=/usr/local/rustup \
4
+ CARGO_HOME=/usr/local/cargo \
5
+ PATH=/usr/local/cargo/bin:$PATH \
6
+ RUST_VERSION=1.25.0
7
+
8
+ RUN set -eux; \
9
+ apt-get update; \
10
+ apt-get install -y --no-install-recommends \
11
+ ca-certificates \
12
+ gcc \
13
+ libc6-dev \
14
+ wget \
15
+ ; \
16
+ \
17
+ # this "case" statement is generated via "update.sh"
18
+ dpkgArch="$(dpkg --print-architecture)" ; \
19
+ case "${dpkgArch##*-}" in \
20
+ amd64) rustArch='x86_64-unknown-linux-gnu' ; rustupSha256='c9837990bce0faab4f6f52604311a19bb8d2cde989bea6a7b605c8e526db6f02' ;; \
21
+ armhf) rustArch='armv7-unknown-linux-gnueabihf' ; rustupSha256='297661e121048db3906f8c964999f765b4f6848632c0c2cfb6a1e93d99440732' ;; \
22
+ arm64) rustArch='aarch64-unknown-linux-gnu' ; rustupSha256='a68ac2d400409f485cb22756f0b3217b95449884e1ea6fd9b70522b3c0a929b2' ;; \
23
+ i386) rustArch='i686-unknown-linux-gnu' ; rustupSha256='27e6109c7b537b92a6c2d45ac941d959606ca26ec501d86085d651892a55d849' ;; \
24
+ *) echo >&2 "unsupported architecture: ${dpkgArch}" ; exit 1 ;; \
25
+ esac; \
26
+ \
27
+ url="https://static.rust-lang.org/rustup/archive/1.11.0/${rustArch}/rustup-init" ; \
28
+ wget "$url" ; \
29
+ echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
30
+ chmod +x rustup-init; \
31
+ ./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION; \
32
+ rm rustup-init; \
33
+ chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
34
+ rustup --version; \
35
+ cargo --version; \
36
+ rustc --version; \
37
+ \
38
+ apt-get remove -y --auto-remove \
39
+ wget \
40
+ ; \
41
+ rm -rf /var/lib/apt/lists/*;
You can’t perform that action at this time.
0 commit comments