Skip to content

Commit 5a1af1a

Browse files
Updated build instructions to build arch specific debs
1 parent 90f0f8d commit 5a1af1a

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

Dockerfile-cartridge-debian

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ LABEL maintainer="Tim Dudgeon<[email protected]>"
1010
ENV PG_MAJOR=15
1111
ENV BOOST_VER=1.81.0
1212
ARG DOCKER_TAG=latest
13+
ARG TARGETARCH
1314

1415
RUN apt-get update &&\
1516
apt-get upgrade -y &&\
@@ -37,9 +38,9 @@ RUN apt-get update &&\
3738
apt-get clean -y
3839

3940
COPY\
40-
artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Runtime.deb\
41-
artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Python.deb\
42-
artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-PgSQL.deb\
41+
artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Runtime_${TARGETARCH}.deb\
42+
artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Python_${TARGETARCH}.deb\
43+
artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-PgSQL_${TARGETARCH}.deb\
4344
/tmp/
4445
RUN dpkg -i /tmp/*.deb && rm -f /tmp/*.deb
4546

Dockerfile-java-debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN apt-get update &&\
2727
ARG DOCKER_TAG=latest
2828

2929
COPY artifacts/debian/$DOCKER_TAG/java/* /rdkit/gmwrapper/
30-
COPY artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Runtime.deb /tmp/
30+
COPY artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Runtime_${TARGETARCH}.deb /tmp/
3131
RUN dpkg -i /tmp/*.deb && rm -f /tmp/*.deb
3232
WORKDIR /
3333

Dockerfile-python3-debian

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

77
ARG BOOST_VER=1.81.0
8+
ARG TARGETARCH
89

910
RUN apt-get update &&\
1011
apt-get upgrade -y &&\
@@ -35,7 +36,7 @@ RUN apt-get update &&\
3536

3637
ARG DOCKER_TAG=latest
3738

38-
COPY artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Runtime.deb artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Python.deb /tmp/
39+
COPY artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Runtime_${TARGETARCH}.deb artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Python_${TARGETARCH}.deb /tmp/
3940
RUN dpkg -i /tmp/*.deb && rm -f /tmp/*.deb
4041

4142
ENV RDBASE=/usr/share/RDKit

Dockerfile-tomcat-debian

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
FROM informaticsmatters/tomcat:8.5-jre11
55
LABEL maintainer="Tim Dudgeon<[email protected]>"
66

7+
ARG TARGETARCH
8+
79
USER root
810

911
RUN apt-get update &&\
@@ -24,7 +26,7 @@ RUN apt-get update &&\
2426
ARG DOCKER_TAG=latest
2527

2628
COPY artifacts/debian/$DOCKER_TAG/java/* /rdkit/gmwrapper/
27-
COPY artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Runtime.deb /tmp/
29+
COPY artifacts/debian/$DOCKER_TAG/debs/RDKit-*-Linux-Runtime_${TARGETARCH}.deb /tmp/
2830
RUN dpkg -i /tmp/*.deb && rm -f /tmp/*.deb
2931

3032
USER 501

build-debian.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ source params.sh
88

99
# build RDKit
1010
docker buildx build $DBO -f Dockerfile-build-debian \
11-
--platform linux/arm64,linux/amd64 --push \
11+
--platform linux/arm64,linux/amd64 \
12+
--push \
1213
-t $BASE/rdkit-build-debian:$DOCKER_TAG \
1314
--build-arg GIT_REPO=$GIT_REPO\
1415
--build-arg GIT_BRANCH=$GIT_BRANCH\
@@ -26,28 +27,32 @@ docker run -it --rm -u $(id -u)\
2627

2728
# build image for python3 on debian
2829
docker buildx build $DBO -f Dockerfile-python3-debian \
29-
--platform linux/arm64,linux/amd64 --push \
30+
--platform linux/arm64,linux/amd64 \
31+
--push \
3032
-t $BASE/rdkit-python3-debian:$DOCKER_TAG \
3133
--build-arg DOCKER_TAG=$DOCKER_TAG .
3234
echo "Built image ${BASE}/rdkit-python3-debian:$DOCKER_TAG"
3335

3436
# build image for java on debian
3537
docker buildx build $DBO -f Dockerfile-java-debian \
36-
--platform linux/arm64,linux/amd64 --push \
38+
--platform linux/arm64,linux/amd64 \
39+
--push \
3740
-t $BASE/rdkit-java-debian:$DOCKER_TAG \
3841
--build-arg DOCKER_TAG=$DOCKER_TAG .
3942
echo "Built image ${BASE}/rdkit-java-debian:$DOCKER_TAG"
4043

4144
# build image for tomcat on debian
4245
docker buildx build $DBO -f Dockerfile-tomcat-debian \
43-
--platform linux/arm64,linux/amd64 --push \
46+
--platform linux/arm64,linux/amd64 \
47+
--push \
4448
-t $BASE/rdkit-tomcat-debian:$DOCKER_TAG \
4549
--build-arg DOCKER_TAG=$DOCKER_TAG .
4650
echo "Built image ${BASE}/rdkit-tomcat-debian:$DOCKER_TAG"
4751

4852
# build image for postgresql cartridge on debian
4953
docker buildx build $DBO -f Dockerfile-cartridge-debian \
50-
--platform linux/arm64,linux/amd64 --push \
54+
--platform linux/arm64,linux/amd64 \
55+
--push \
5156
-t $BASE/rdkit-cartridge-debian:$DOCKER_TAG \
5257
--build-arg DOCKER_TAG=$DOCKER_TAG .
5358
echo "Built image ${BASE}/rdkit-cartridge-debian:$DOCKER_TAG"

0 commit comments

Comments
 (0)