Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Amazon Linux 2 builder image #7

Merged
merged 1 commit into from
Aug 21, 2020
Merged

Add Amazon Linux 2 builder image #7

merged 1 commit into from
Aug 21, 2020

Conversation

ewbankkit
Copy link
Owner

Closes #6.

$ make image_al2
docker build --file Dockerfile.al2 --tag rust:1.45.2-amazonlinux2.0.20200722.0 .
Sending build context to Docker daemon  109.6kB
Step 1/5 : FROM amazonlinux:2.0.20200722.0
2.0.20200722.0: Pulling from library/amazonlinux
37373184fe69: Pull complete 
Digest: sha256:2c99363fc74d3a39f02365b964e73cceb2b2524c00e9977e16680156e2f79ee8
Status: Downloaded newer image for amazonlinux:2.0.20200722.0
 ---> ba2cc467a2bc
Step 2/5 : LABEL maintainer="Kit Ewbank <Kit_Ewbank@hotmail.com>"
 ---> Running in 66a06cafa558
Removing intermediate container 66a06cafa558
 ---> c19e3a0de36d
Step 3/5 : ENV RUSTUP_HOME=/usr/local/rustup     CARGO_HOME=/usr/local/cargo     PATH=/usr/local/cargo/bin:$PATH     RUST_VERSION=1.45.2
 ---> Running in 4690c3c2cb6b
Removing intermediate container 4690c3c2cb6b
 ---> f6b2124d1ff1
Step 4/5 : RUN curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --profile minimal --default-toolchain $RUST_VERSION -y;     chmod -R a+w $RUSTUP_HOME $CARGO_HOME;     rustup --version;     cargo --version;     rustc --version;
 ---> Running in 847261dfb5c5
info: downloading installer
info: profile set to 'minimal'
info: default host triple is x86_64-unknown-linux-gnu
info: syncing channel updates for '1.45.2-x86_64-unknown-linux-gnu'
info: latest update on 2020-08-03, rust version 1.45.2 (d3fb005a3 2020-07-31)
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: Defaulting to 500.0 MiB unpack ram
info: installing component 'rust-std'
info: installing component 'rustc'

info: default toolchain set to '1.45.2'
  1.45.2 installed - rustc 1.45.2 (d3fb005a3 2020-07-31)


Rust is installed now. Great!

To get started you need Cargo's bin directory (/usr/local/cargo/bin) in your 
PATH
environment variable.

To configure your current shell run source /usr/local/cargo/env
rustup 1.22.1 (b01adbbc3 2020-07-08)
cargo 1.45.1 (f242df6ed 2020-07-22)
rustc 1.45.2 (d3fb005a3 2020-07-31)
Removing intermediate container 847261dfb5c5
 ---> 0a8ccc44c5e2
Step 5/5 : WORKDIR /volume
 ---> Running in b458859ad548
Removing intermediate container b458859ad548
 ---> dec77cbebf9d
Successfully built dec77cbebf9d
Successfully tagged rust:1.45.2-amazonlinux2.0.20200722.0
docker tag rust:1.45.2-amazonlinux2.0.20200722.0 ewbankkit/rust-amazonlinux:1.45.2-2.0.20200722.0
$ make push_al2
docker build --file Dockerfile.al2 --tag rust:1.45.2-amazonlinux2.0.20200722.0 .
Sending build context to Docker daemon  109.6kB
Step 1/5 : FROM amazonlinux:2.0.20200722.0
 ---> ba2cc467a2bc
Step 2/5 : LABEL maintainer="Kit Ewbank <Kit_Ewbank@hotmail.com>"
 ---> Using cache
 ---> c19e3a0de36d
Step 3/5 : ENV RUSTUP_HOME=/usr/local/rustup     CARGO_HOME=/usr/local/cargo     PATH=/usr/local/cargo/bin:$PATH     RUST_VERSION=1.45.2
 ---> Using cache
 ---> f6b2124d1ff1
Step 4/5 : RUN curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --profile minimal --default-toolchain $RUST_VERSION -y;     chmod -R a+w $RUSTUP_HOME $CARGO_HOME;     rustup --version;     cargo --version;     rustc --version;
 ---> Using cache
 ---> 0a8ccc44c5e2
Step 5/5 : WORKDIR /volume
 ---> Using cache
 ---> dec77cbebf9d
Successfully built dec77cbebf9d
Successfully tagged rust:1.45.2-amazonlinux2.0.20200722.0
docker tag rust:1.45.2-amazonlinux2.0.20200722.0 ewbankkit/rust-amazonlinux:1.45.2-2.0.20200722.0
docker push ewbankkit/rust-amazonlinux:1.45.2-2.0.20200722.0
The push refers to repository [docker.io/ewbankkit/rust-amazonlinux]
46caf8a6ddd5: Pushed 
6528b9020b9a: Pushed 
50c3cd231426: Mounted from library/amazonlinux 
1.45.2-2.0.20200722.0: digest: sha256:bc5636b1ada09a0f060a1e41952a6b562b4f33253c69fe274dedc7eea5731ce0 size: 949

@ewbankkit ewbankkit self-assigned this Aug 21, 2020
@ewbankkit ewbankkit merged commit 8623aa2 into master Aug 21, 2020
@ewbankkit ewbankkit deleted the issue-6 branch August 21, 2020 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Amazon Linux 2 builder image
1 participant