Skip to content

Commit

Permalink
[#434] Expose Docker build option for iRODS package version.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Dec 4, 2023
1 parent 5a26354 commit c332d34
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 5 additions & 1 deletion docker-test-framework/4-3/Dockerfile.consumer
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ RUN sed --in-place --regexp-extended "s/(\/\/)(archive\.ubuntu)/\1nl.\2/" /etc/a
RUN apt-get update && \
apt-get install -y sudo wget less lsb-release apt-transport-https netcat gnupg2

ARG irods_package_version=4.3.1-0~focal
RUN wget -qO - https://packages.irods.org/irods-signing-key.asc | apt-key add -; \
echo "deb [arch=amd64] https://packages.irods.org/apt/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/renci-irods.list; \
apt-get update && \
apt-get install -y irods-runtime irods-icommands irods-server
apt-get install -y \
irods-runtime=${irods_package_version} \
irods-icommands=${irods_package_version} \
irods-server=${irods_package_version}

EXPOSE 1247 1248

Expand Down
9 changes: 6 additions & 3 deletions docker-test-framework/4-3/Dockerfile.provider
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ RUN apt-get update && \
ADD db_commands.txt /
RUN service postgresql start && su - postgres -c 'psql -f /db_commands.txt'

ARG irods_package_version=4.3.1-0~focal
RUN wget -qO - https://packages.irods.org/irods-signing-key.asc | apt-key add -; \
echo "deb [arch=amd64] https://packages.irods.org/apt/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/renci-irods.list; \
apt-get update && \
apt-get install -y irods-runtime irods-icommands irods-server irods-database-plugin-postgres
apt-get install -y \
irods-runtime=${irods_package_version} \
irods-icommands=${irods_package_version} \
irods-server=${irods_package_version} \
irods-database-plugin-postgres=${irods_package_version}

EXPOSE 1247 1248

Expand All @@ -29,5 +34,3 @@ ADD testsetup-consortium.sh /
RUN chmod +x /testsetup-consortium.sh
RUN chmod u+x /start_provider.sh
ENTRYPOINT ["./start_provider.sh"]


9 changes: 4 additions & 5 deletions docker-test-framework/4-3/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
build:
context: .
dockerfile: Dockerfile.provider
args:
irods_package_version: 4.3.1-0~focal
hostname: icat.example.org
networks:
irodsnet:
Expand Down Expand Up @@ -34,6 +36,8 @@ services:
build:
context: .
dockerfile: Dockerfile.consumer
args:
irods_package_version: 4.3.1-0~focal
hostname: resource1.example.org
networks:
irodsnet:
Expand All @@ -45,8 +49,3 @@ services:
networks:
irodsnet:
driver: bridge





0 comments on commit c332d34

Please sign in to comment.