Skip to content

Commit 2821c53

Browse files
Updates to get arm64 and amd64 builds working in parallel
1 parent b9a017f commit 2821c53

File tree

5 files changed

+29
-25
lines changed

5 files changed

+29
-25
lines changed

Dockerfile-build-debian

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARG GIT_BRANCH=master
1010
ARG GIT_TAG
1111
ARG TARGETARCH
1212
ARG POSTGRES_VERSION=15
13-
ARG BOOST_VER=1.81-dev
13+
ARG BOOST_VER=1.81
1414

1515
RUN apt-get update &&\
1616
apt-get install -y --no-install-recommends \
@@ -22,6 +22,7 @@ RUN apt-get update &&\
2222
sqlite3\
2323
libsqlite3-dev\
2424
libboost$BOOST_VER\
25+
libboost$BOOST_VER-dev\
2526
libboost-system$BOOST_VER\
2627
libboost-thread$BOOST_VER\
2728
libboost-serialization$BOOST_VER\

Dockerfile-java-debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM debian:bookworm
55
LABEL maintainer="Tim Dudgeon<[email protected]>"
66

77
ARG TARGETARCH
8-
ARG BOOST_VER=1.81.0
8+
ARG BOOST_VER=1.74.0
99

1010
RUN apt-get update &&\
1111
apt-get upgrade -y &&\

build-centos.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ source params.sh
1212

1313
# build RDKit
1414
docker build --no-cache -f Dockerfile-build-centos\
15+
--platform $ARCH --push \
1516
-t $BASE/rdkit-build-centos:$DOCKER_TAG\
16-
--build-arg RDKIT_BRANCH=$GIT_BRANCH .
17+
--build-arg GIT_REPO=$GIT_REPO\
18+
--build-arg GIT_BRANCH=$GIT_BRANCH\
19+
--build-arg GIT_TAG=$GIT_TAG .
1720

1821
# copy the packages
1922
rm -rf artifacts/centos/$DOCKER_TAG
@@ -26,14 +29,14 @@ docker run -it --rm -u $(id -u)\
2629

2730
# build image for python
2831
docker build --no-cache -f Dockerfile-python3-centos\
32+
--platform $ARCH --push \
2933
-t $BASE/rdkit-python3-centos:$DOCKER_TAG\
3034
--build-arg TAG=$DOCKER_TAG .
3135
echo "Built image ${BASE}/rdkit-python3-centos:$DOCKER_TAG"
3236

3337
# build image for java
3438
docker build --no-cache -f Dockerfile-java-centos\
39+
--platform $ARCH --push \
3540
-t $BASE/rdkit-java-centos:$DOCKER_TAG\
3641
--build-arg TAG=$DOCKER_TAG .
3742
echo "Built image ${BASE}/rdkit-java-centos:$DOCKER_TAG"
38-
39-

build-debian.sh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,25 @@ docker run -it --rm -u $(id -u)\
2424
$BASE/rdkit-build-debian:$DOCKER_TAG bash -c 'cp /rdkit/build/*.deb /tohere/debs && cp /rdkit/Code/JavaWrappers/gmwrapper/org.RDKit.jar /rdkit/Code/JavaWrappers/gmwrapper/libGraphMolWrap.so /rdkit/Code/JavaWrappers/gmwrapper/javadoc.tgz /tohere/java'
2525

2626
# build image for python3 on debian
27-
#docker buildx build $DBO -f Dockerfile-python3-debian \
28-
# --platform linux/arm64,linux/amd64 --push \
29-
# -t $BASE/rdkit-python3-debian:$DOCKER_TAG \
30-
# --build-arg DOCKER_TAG=$DOCKER_TAG .
31-
#echo "Built image ${BASE}/rdkit-python3-debian:$DOCKER_TAG"
32-
#
33-
## build image for java on debian
34-
#docker buildx build $DBO -f Dockerfile-java-debian \
35-
# --platform linux/arm64,linux/amd64 --push \
36-
# -t $BASE/rdkit-java-debian:$DOCKER_TAG \
37-
# --build-arg DOCKER_TAG=$DOCKER_TAG .
38-
#echo "Built image ${BASE}/rdkit-java-debian:$DOCKER_TAG"
39-
#
40-
## build image for tomcat on debian
41-
#docker buildx build $DBO -f Dockerfile-tomcat-debian \
42-
# --platform linux/amd64 --push \
43-
# -t $BASE/rdkit-tomcat-debian:$DOCKER_TAG \
44-
# --build-arg DOCKER_TAG=$DOCKER_TAG .
45-
#echo "Built image ${BASE}/rdkit-tomcat-debian:$DOCKER_TAG"
27+
docker buildx build $DBO -f Dockerfile-python3-debian \
28+
--platform linux/arm64,linux/amd64 --push \
29+
-t $BASE/rdkit-python3-debian:$DOCKER_TAG \
30+
--build-arg DOCKER_TAG=$DOCKER_TAG .
31+
echo "Built image ${BASE}/rdkit-python3-debian:$DOCKER_TAG"
32+
33+
build image for java on debian
34+
docker buildx build $DBO -f Dockerfile-java-debian \
35+
--platform linux/arm64,linux/amd64 --push \
36+
-t $BASE/rdkit-java-debian:$DOCKER_TAG \
37+
--build-arg DOCKER_TAG=$DOCKER_TAG .
38+
echo "Built image ${BASE}/rdkit-java-debian:$DOCKER_TAG"
39+
40+
# build image for tomcat on debian
41+
docker buildx build $DBO -f Dockerfile-tomcat-debian \
42+
--platform linux/arm64,linux/amd64 --push \
43+
-t $BASE/rdkit-tomcat-debian:$DOCKER_TAG \
44+
--build-arg DOCKER_TAG=$DOCKER_TAG .
45+
echo "Built image ${BASE}/rdkit-tomcat-debian:$DOCKER_TAG"
4646

4747
# build image for postgresql cartridge on debian
4848
docker buildx build $DBO -f Dockerfile-cartridge-debian \

params.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export DOCKER_TAG=Release_2020_03
22
export GIT_REPO=https://github.com/rdkit/rdkit.git
3-
export GIT_BRANCH=Release_2020_03
3+
export GIT_BRANCH=Release_2023_03
44
unset GIT_TAG
55

66
export BASE=nmunro

0 commit comments

Comments
 (0)