Skip to content

Add a MUSL image #45

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

Merged
merged 2 commits into from
Sep 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
68 changes: 0 additions & 68 deletions .metadata-lib

This file was deleted.

9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ language: bash
services: docker

env:
- VERSION=1.37.0 VARIANT=buster/slim
- VERSION=1.37.0 VARIANT=buster
- VERSION=1.37.0 VARIANT=stretch/slim
#VERSIONS
- VERSION=1.37.0 VARIANT=stretch
- VERSION=1.37.0 VARIANT=stretch/slim
- VERSION=1.37.0 VARIANT=buster
- VERSION=1.37.0 VARIANT=buster/slim
- VERSION=1.37.0 VARIANT=alpine3.10
#VERSIONS

install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
Expand Down
22 changes: 22 additions & 0 deletions 1.37.0/alpine3.10/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM alpine:3.10

RUN apk add --no-cache \
ca-certificates \
gcc

ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=1.37.0

RUN set -eux; \
url="https://static.rust-lang.org/rustup/archive/1.19.0/x86_64-unknown-linux-musl/rustup-init"; \
wget "$url"; \
echo "b535be813cd89000044764806f569a8c1428417d4226f16ee9993867f0c4ea4e *rustup-init" | sha256sum -c -; \
chmod +x rustup-init; \
./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION; \
rm rustup-init; \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
rustup --version; \
cargo --version; \
rustc --version;
22 changes: 22 additions & 0 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM alpine:%%TAG%%

RUN apk add --no-cache \
ca-certificates \
gcc

ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=%%RUST-VERSION%%

RUN set -eux; \
url="https://static.rust-lang.org/rustup/archive/%%RUSTUP-VERSION%%/x86_64-unknown-linux-musl/rustup-init"; \
wget "$url"; \
echo "%%RUSTUP-SHA256%% *rustup-init" | sha256sum -c -; \
chmod +x rustup-init; \
./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION; \
rm rustup-init; \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
rustup --version; \
cargo --version; \
rustc --version;
109 changes: 0 additions & 109 deletions generate-stackbrew-library.sh

This file was deleted.

56 changes: 0 additions & 56 deletions update.sh

This file was deleted.

Loading