-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from chenyukang/add-aarch64
add aarch64
- Loading branch information
Showing
4 changed files
with
137 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM arm64v8/ubuntu | ||
|
||
RUN set -eux; \ | ||
apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
build-essential \ | ||
gcc \ | ||
g++ \ | ||
libc6-dev \ | ||
wget \ | ||
git \ | ||
pkg-config \ | ||
libclang-dev \ | ||
clang; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH \ | ||
RUSTUP_VERSION=1.26.0 \ | ||
RUSTUP_SHA256=673e336c81c65e6b16dcdede33f4cc9ed0f08bde1dbe7a935f113605292dc800 \ | ||
RUST_ARCH=aarch64-unknown-linux-gnu \ | ||
OPENSSL_VERSION=3.1.3 \ | ||
OPENSSL_SHA256=f0316a2ebd89e7f2352976445458689f80302093788c466692fb2a188b2eacf6 | ||
|
||
RUN set -eux; \ | ||
url="https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz"; \ | ||
wget --no-check-certificate "$url"; \ | ||
echo "${OPENSSL_SHA256} *openssl-${OPENSSL_VERSION}.tar.gz" | sha256sum -c -; \ | ||
tar -xzf "openssl-${OPENSSL_VERSION}.tar.gz"; \ | ||
cd openssl-${OPENSSL_VERSION}; \ | ||
./config no-shared no-zlib -fPIC -DOPENSSL_NO_SECURE_MEMORY; \ | ||
make; \ | ||
make install; \ | ||
cd ..; \ | ||
rm -rf openssl-${OPENSSL_VERSION} openssl-${OPENSSL_VERSION}.tar.gz | ||
|
||
|
||
RUN set -eux; \ | ||
url="https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${RUST_ARCH}/rustup-init"; \ | ||
wget "$url"; \ | ||
echo "${RUSTUP_SHA256} *rustup-init" | sha256sum -c -; \ | ||
chmod +x rustup-init | ||
|
||
ENV RUST_VERSION=1.71.1 | ||
|
||
RUN set -eux; \ | ||
./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; \ | ||
openssl version; | ||
|
||
RUN git config --global --add safe.directory /ckb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM arm64v8/ubuntu | ||
|
||
RUN set -eux; \ | ||
apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
build-essential \ | ||
gcc \ | ||
g++ \ | ||
libc6-dev \ | ||
wget \ | ||
git \ | ||
pkg-config \ | ||
libclang-dev \ | ||
clang; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH \ | ||
RUSTUP_VERSION=%%RUSTUP_VERSION%% \ | ||
RUSTUP_SHA256=%%RUSTUP_SHA256%% \ | ||
RUST_ARCH=%%RUST_ARCH%% \ | ||
OPENSSL_VERSION=%%OPENSSL_VERSION%% \ | ||
OPENSSL_SHA256=%%OPENSSL_SHA256%% | ||
|
||
RUN set -eux; \ | ||
url="https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz"; \ | ||
wget --no-check-certificate "$url"; \ | ||
echo "${OPENSSL_SHA256} *openssl-${OPENSSL_VERSION}.tar.gz" | sha256sum -c -; \ | ||
tar -xzf "openssl-${OPENSSL_VERSION}.tar.gz"; \ | ||
cd openssl-${OPENSSL_VERSION}; \ | ||
./config no-shared no-zlib -fPIC -DOPENSSL_NO_SECURE_MEMORY; \ | ||
make; \ | ||
make install; \ | ||
cd ..; \ | ||
rm -rf openssl-${OPENSSL_VERSION} openssl-${OPENSSL_VERSION}.tar.gz | ||
|
||
|
||
RUN set -eux; \ | ||
url="https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${RUST_ARCH}/rustup-init"; \ | ||
wget "$url"; \ | ||
echo "${RUSTUP_SHA256} *rustup-init" | sha256sum -c -; \ | ||
chmod +x rustup-init | ||
|
||
ENV RUST_VERSION=%%RUST_VERSION%% | ||
|
||
RUN set -eux; \ | ||
./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; \ | ||
openssl version; | ||
|
||
RUN git config --global --add safe.directory /ckb |
b06078a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@doitian Since we have aarch64's Dockerfile now, I think we should create a new tag:
rust-1.71.1-openssl-3.1.3
, and publish these new docker image to docker hub