-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: vsoch <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM ghcr.io/rse-ops/flux-conda:mamba | ||
|
||
# docker compose build | ||
# docker compose up -d | ||
# docker exec -it <merlin container> bash | ||
# command with flux: flux start --test-size=4 | ||
# merlin run feature_demo/feature_demo.yaml | ||
# merlin run-workers feature_demo/feature_demo.yaml | ||
|
||
# workdir: /workflow | ||
|
||
USER root | ||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install \ | ||
curl \ | ||
redis \ | ||
libbz2-dev \ | ||
liblzma-dev \ | ||
libcurl4-openssl-dev \ | ||
libncurses5-dev \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Wrappers to ensure we source the mamba environment! | ||
USER fluxuser | ||
WORKDIR /workflow | ||
ENV PATH=$PATH:/home/fluxuser/.local/bin | ||
|
||
# Merlin from pip doesn't have flux completely implemented | ||
RUN git clone --depth 1 https://github.com/LLNL/merlin /tmp/merlin && \ | ||
cd /tmp/merlin && \ | ||
pip install . | ||
|
||
RUN merlin config --broker redis && \ | ||
rm /home/fluxuser/.merlin/app.yaml | ||
|
||
# Install spellbuild | ||
RUN git clone --depth 1 https://github.com/LLNL/merlin-spellbook /tmp/spellbook && \ | ||
cd /tmp/spellbook && \ | ||
pip install . | ||
|
||
# Updated app yaml | ||
COPY ./merlinu/app.yaml /home/fluxuser/.merlin/app.yaml | ||
COPY ./merlinu/rabbit.pass /home/fluxuser/.merlin/rabbit.pass | ||
|
||
# Entrypoint to keep container running! | ||
ENTRYPOINT ["tail", "-f", "/dev/null"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters