Skip to content

Commit

Permalink
Update Dockerfile and docker-compose for webmonchow integration
Browse files Browse the repository at this point in the history
Upgraded Miniconda from 4.12.0 to 23.3.1-0 and revised webmonchow installation. Added health check for ActiveMQ in docker-compose to enhance service reliability.

Signed-off-by: Jose Borreguero <[email protected]>
  • Loading branch information
jmborr committed Aug 27, 2024
1 parent 9b52722 commit 5f3a7a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile.webmonchow
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
FROM continuumio/miniconda3:4.12.0

# Install conda-libmamba-solver
RUN conda update -n base -c defaults conda
# Miniconda with native Python 3.10
FROM continuumio/miniconda3:23.3.1-0
RUN conda install --yes -n base conda-libmamba-solver

# Install Python 3.10 and PostgreSQL using libmamba solver
RUN conda install --yes --solver=libmamba -c conda-forge python=3.10 postgresql=14

# Install webmonchow
RUN python -m pip install git+https://github.com/neutrons/webmonchow.git@next#egg=webmonchow
RUN conda install --yes --solver=libmamba -n base -c conda-forge -c neutrons postgresql=14 webmonchow=1.0.0

# Install webmonchow from a feature branch (only to test the latest changes in webmonchow)
# RUN conda install --yes --solver=libmamba -n base -c conda-forge postgresql=14
#RUN python -m pip install git+https://github.com/neutrons/webmonchow.git@next#egg=webmonchow

# Start the AMQ and PV generators when starting the container
CMD ["sh", "-c", "broadcast_pv & broadcast_amq --broker \"activemq:61613\" & wait"]
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ services:
condition: service_healthy
webmon:
condition: service_healthy
activemq:
condition: service_healthy

livedata:
restart: always
Expand Down

0 comments on commit 5f3a7a4

Please sign in to comment.