File tree 7 files changed +24
-52
lines changed
7 files changed +24
-52
lines changed Original file line number Diff line number Diff line change 1
- TARGETS := rust ubuntu centos
1
+ TARGETS := rust ubuntu
2
2
3
3
all : build
4
4
build : $(foreach TARGET,$(TARGETS ) ,build/$(TARGET ) )
@@ -10,14 +10,8 @@ build/rust:
10
10
build/ubuntu :
11
11
$(MAKE ) -f ubuntu.mk build
12
12
13
- build/centos :
14
- $(MAKE ) -f centos.mk build
15
-
16
13
push/rust : build/rust
17
14
$(MAKE ) -f rust.mk push
18
15
19
16
push/ubuntu : build/ubuntu
20
17
$(MAKE ) -f ubuntu.mk push
21
-
22
- push/centos : build/centos
23
- $(MAKE ) -f centos.mk push
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
TOP := $(shell git rev-parse --show-toplevel)
2
2
HERE := $(TOP ) /docker
3
3
4
- REGISTRY := ghcr.io/rust-math/intel-mkl-src
4
+ REGISTRY := ghcr.io/rust-math/intel-mkl-src
5
5
RUST_VERSION := 1.56.0
6
+ PATCH_VERSION := 1
6
7
7
8
all : build
8
9
9
10
build :
10
11
docker build $(HERE ) \
11
12
--build-arg " RUST_VERSION=$( RUST_VERSION) " \
12
- -t $(REGISTRY ) /$(TARGET ) :$(RUST_VERSION ) \
13
+ -t $(REGISTRY ) /$(TARGET ) :$(RUST_VERSION ) - $( PATCH_VERSION ) \
13
14
-f $(TARGET ) .Dockerfile
14
15
15
16
push : build
16
- docker push $(REGISTRY ) /$(TARGET ) :$(RUST_VERSION )
17
+ docker push $(REGISTRY ) /$(TARGET ) :$(RUST_VERSION ) - $( PATCH_VERSION )
Original file line number Diff line number Diff line change
1
+ /opt/intel/lib/intel64
2
+ /opt/intel/lib/intel64_lin
1
3
/opt/intel/mkl/lib/intel64
2
4
/opt/intel/mkl/lib/intel64_lin
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ RUN ldconfig
26
26
ENV PKG_CONFIG_PATH /opt/intel/mkl/bin/pkgconfig
27
27
RUN sed -i "s/MKLROOT/prefix/g" ${PKG_CONFIG_PATH}/*.pc
28
28
29
- # Setup basic rust development tools
30
29
WORKDIR /src
30
+ RUN chmod -R a+w /src
31
+
32
+ # Setup basic rust development tools
31
33
RUN cargo install cargo-tarpaulin
32
34
RUN rustup component add rustfmt clippy
Original file line number Diff line number Diff line change 1
- # Ubuntu with official apt install procedure
1
+ # Ubuntu 20.04 with apt
2
2
3
- FROM ubuntu:18.04
3
+ FROM ubuntu:20.04
4
+
5
+ # workaround for tzdata
6
+ ENV DEBIAN_FRONTEND=noninteractive
4
7
5
8
RUN apt update \
6
9
&& apt install -y \
7
10
apt-utils \
8
11
curl \
12
+ gcc \
9
13
gnupg \
14
+ intel-mkl \
10
15
libssl-dev \
11
16
pkg-config \
12
17
&& apt-get clean \
13
18
&& rm -rf /var/lib/apt/lists/*
14
19
15
- # Install MKL
16
- # https://software.intel.com/content/www/us/en/develop/articles/installing-intel-free-libs-and-python-apt-repo.html
17
- RUN curl -sfL https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB | apt-key add -
18
- RUN curl -sfL https://apt.repos.intel.com/setup/intelproducts.list -o /etc/apt/sources.list.d/intelproducts.list
19
-
20
- RUN apt update \
21
- && apt install -y intel-mkl-2020.0.088 \
22
- && apt-get clean \
23
- && rm -rf /var/lib/apt/lists/*
24
-
25
20
# Setup Rust
26
21
# From official setting in https://github.com/rust-lang/docker-rust
27
22
ARG RUST_VERSION
28
23
ENV RUSTUP_HOME=/usr/local/rustup
29
24
ENV CARGO_HOME=/usr/local/cargo
30
25
ENV PATH=/usr/local/cargo/bin:$PATH
31
26
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain ${RUST_VERSION}
32
- # this may concern security issue for production use, but this container is designed for development use.
33
- RUN chmod -R a+w $RUSTUP_HOME $CARGO_HOME
34
27
35
28
WORKDIR /src
36
- RUN chmod -R a+w /src
29
+
30
+ # this may concern security issue for production use, but this container is designed for development use.
31
+ RUN chmod -R a+w $RUSTUP_HOME $CARGO_HOME /src
32
+
33
+ # Setup basic rust development tools
34
+ RUN cargo install cargo-tarpaulin
35
+ RUN rustup component add rustfmt clippy
You can’t perform that action at this time.
0 commit comments