File tree Expand file tree Collapse file tree 5 files changed +81
-297
lines changed Expand file tree Collapse file tree 5 files changed +81
-297
lines changed Original file line number Diff line number Diff line change 24
24
matrix :
25
25
include :
26
26
# VERSIONS
27
+ - name : buster
28
+ variant : buster
29
+ - name : slim-buster
30
+ variant : buster/slim
27
31
- name : bullseye
28
32
variant : bullseye
29
33
- name : slim-bullseye
Original file line number Diff line number Diff line change 21
21
matrix :
22
22
include :
23
23
# VERSIONS
24
+ - name : buster
25
+ context : nightly/buster
26
+ platforms : linux/amd64,linux/arm/v7,linux/arm64,linux/386
27
+ tags : |
28
+ nightly-buster
29
+ - name : slim-buster
30
+ context : nightly/buster/slim
31
+ platforms : linux/amd64,linux/arm/v7,linux/arm64,linux/386
32
+ tags : |
33
+ nightly-buster-slim
24
34
- name : bullseye
25
35
context : nightly/bullseye
26
36
platforms : linux/amd64,linux/arm/v7,linux/arm64,linux/386
Original file line number Diff line number Diff line change
1
+ FROM buildpack-deps:buster
2
+
3
+ LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust
4
+
5
+ ENV RUSTUP_HOME=/usr/local/rustup \
6
+ CARGO_HOME=/usr/local/cargo \
7
+ PATH=/usr/local/cargo/bin:$PATH \
8
+ RUST_VERSION=1.79.0
9
+
10
+ RUN set -eux; \
11
+ dpkgArch="$(dpkg --print-architecture)" ; \
12
+ case "${dpkgArch##*-}" in \
13
+ amd64) rustArch='x86_64-unknown-linux-gnu' ; rustupSha256='6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d' ;; \
14
+ armhf) rustArch='armv7-unknown-linux-gnueabihf' ; rustupSha256='3c4114923305f1cd3b96ce3454e9e549ad4aa7c07c03aec73d1a785e98388bed' ;; \
15
+ arm64) rustArch='aarch64-unknown-linux-gnu' ; rustupSha256='1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2' ;; \
16
+ i386) rustArch='i686-unknown-linux-gnu' ; rustupSha256='0a6bed6e9f21192a51f83977716466895706059afb880500ff1d0e751ada5237' ;; \
17
+ *) echo >&2 "unsupported architecture: ${dpkgArch}" ; exit 1 ;; \
18
+ esac; \
19
+ url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init" ; \
20
+ wget "$url" ; \
21
+ echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
22
+ chmod +x rustup-init; \
23
+ ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; \
24
+ rm rustup-init; \
25
+ chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
26
+ rustup --version; \
27
+ cargo --version; \
28
+ rustc --version;
Original file line number Diff line number Diff line change
1
+ FROM debian:buster-slim
2
+
3
+ LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust
4
+
5
+ ENV RUSTUP_HOME=/usr/local/rustup \
6
+ CARGO_HOME=/usr/local/cargo \
7
+ PATH=/usr/local/cargo/bin:$PATH \
8
+ RUST_VERSION=1.79.0
9
+
10
+ RUN set -eux; \
11
+ apt-get update; \
12
+ apt-get install -y --no-install-recommends \
13
+ ca-certificates \
14
+ gcc \
15
+ libc6-dev \
16
+ wget \
17
+ ; \
18
+ dpkgArch="$(dpkg --print-architecture)" ; \
19
+ case "${dpkgArch##*-}" in \
20
+ amd64) rustArch='x86_64-unknown-linux-gnu' ; rustupSha256='6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d' ;; \
21
+ armhf) rustArch='armv7-unknown-linux-gnueabihf' ; rustupSha256='3c4114923305f1cd3b96ce3454e9e549ad4aa7c07c03aec73d1a785e98388bed' ;; \
22
+ arm64) rustArch='aarch64-unknown-linux-gnu' ; rustupSha256='1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2' ;; \
23
+ i386) rustArch='i686-unknown-linux-gnu' ; rustupSha256='0a6bed6e9f21192a51f83977716466895706059afb880500ff1d0e751ada5237' ;; \
24
+ *) echo >&2 "unsupported architecture: ${dpkgArch}" ; exit 1 ;; \
25
+ esac; \
26
+ url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init" ; \
27
+ wget "$url" ; \
28
+ echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
29
+ chmod +x rustup-init; \
30
+ ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; \
31
+ rm rustup-init; \
32
+ chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
33
+ rustup --version; \
34
+ cargo --version; \
35
+ rustc --version; \
36
+ apt-get remove -y --auto-remove \
37
+ wget \
38
+ ; \
39
+ rm -rf /var/lib/apt/lists/*;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments