Skip to content

Commit 8f539ef

Browse files
committed
Merge branch 'master' into rewrite-tool-entry
2 parents 07fbbb4 + 7043596 commit 8f539ef

7 files changed

+24
-52
lines changed

docker/Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
TARGETS := rust ubuntu centos
1+
TARGETS := rust ubuntu
22

33
all: build
44
build: $(foreach TARGET,$(TARGETS),build/$(TARGET))
@@ -10,14 +10,8 @@ build/rust:
1010
build/ubuntu:
1111
$(MAKE) -f ubuntu.mk build
1212

13-
build/centos:
14-
$(MAKE) -f centos.mk build
15-
1613
push/rust: build/rust
1714
$(MAKE) -f rust.mk push
1815

1916
push/ubuntu: build/ubuntu
2017
$(MAKE) -f ubuntu.mk push
21-
22-
push/centos: build/centos
23-
$(MAKE) -f centos.mk push

docker/centos.mk

Lines changed: 0 additions & 3 deletions
This file was deleted.

docker/common.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
TOP := $(shell git rev-parse --show-toplevel)
22
HERE := $(TOP)/docker
33

4-
REGISTRY := ghcr.io/rust-math/intel-mkl-src
4+
REGISTRY := ghcr.io/rust-math/intel-mkl-src
55
RUST_VERSION := 1.56.0
6+
PATCH_VERSION := 1
67

78
all: build
89

910
build:
1011
docker build $(HERE) \
1112
--build-arg "RUST_VERSION=$(RUST_VERSION)" \
12-
-t $(REGISTRY)/$(TARGET):$(RUST_VERSION) \
13+
-t $(REGISTRY)/$(TARGET):$(RUST_VERSION)-$(PATCH_VERSION) \
1314
-f $(TARGET).Dockerfile
1415

1516
push: build
16-
docker push $(REGISTRY)/$(TARGET):$(RUST_VERSION)
17+
docker push $(REGISTRY)/$(TARGET):$(RUST_VERSION)-$(PATCH_VERSION)

docker/intel-mkl.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
/opt/intel/lib/intel64
2+
/opt/intel/lib/intel64_lin
13
/opt/intel/mkl/lib/intel64
24
/opt/intel/mkl/lib/intel64_lin

docker/mkl-centos.Dockerfile

Lines changed: 0 additions & 23 deletions
This file was deleted.

docker/mkl-rust.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ RUN ldconfig
2626
ENV PKG_CONFIG_PATH /opt/intel/mkl/bin/pkgconfig
2727
RUN sed -i "s/MKLROOT/prefix/g" ${PKG_CONFIG_PATH}/*.pc
2828

29-
# Setup basic rust development tools
3029
WORKDIR /src
30+
RUN chmod -R a+w /src
31+
32+
# Setup basic rust development tools
3133
RUN cargo install cargo-tarpaulin
3234
RUN rustup component add rustfmt clippy

docker/mkl-ubuntu.Dockerfile

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
1-
# Ubuntu with official apt install procedure
1+
# Ubuntu 20.04 with apt
22

3-
FROM ubuntu:18.04
3+
FROM ubuntu:20.04
4+
5+
# workaround for tzdata
6+
ENV DEBIAN_FRONTEND=noninteractive
47

58
RUN apt update \
69
&& apt install -y \
710
apt-utils \
811
curl \
12+
gcc \
913
gnupg \
14+
intel-mkl \
1015
libssl-dev \
1116
pkg-config \
1217
&& apt-get clean \
1318
&& rm -rf /var/lib/apt/lists/*
1419

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-
2520
# Setup Rust
2621
# From official setting in https://github.com/rust-lang/docker-rust
2722
ARG RUST_VERSION
2823
ENV RUSTUP_HOME=/usr/local/rustup
2924
ENV CARGO_HOME=/usr/local/cargo
3025
ENV PATH=/usr/local/cargo/bin:$PATH
3126
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
3427

3528
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

0 commit comments

Comments
 (0)