-
Notifications
You must be signed in to change notification settings - Fork 55
Introduce file staging delegation via JSON staging manifest #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kysrpex
wants to merge
13
commits into
galaxyproject:master
Choose a base branch
from
kysrpex:offline_collector
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ac33bf3
Replace types-pkg-resources with types-setuptools
mvdbeek 098ef6d
Draft of JSON manifest collector
mvdbeek f0a4677
Discriminate input from output in staging manifest
mvdbeek 1cf6b5c
Implement output collection
mvdbeek f924f1a
Track file_type in transfer action
mvdbeek d8cf083
Include only inputs in staging manifest
mvdbeek 3b4577d
Change base image in coexecutor Dockerfile
kysrpex f217ea2
Build Pulsar wheel in coexecutor Dockerfile
kysrpex 7c8371a
Move `get_pulsar_app_config()` and `_ensure_manager_config()` from `C…
mvdbeek 337dde1
Construct staging and output manifests from `FileStager` and `Results…
kysrpex 3282e2f
Disable whole directory transfers for `JsonTransferAction`
kysrpex 496185e
Calculate staging manifest path from action description
kysrpex ce2c6f8
Add comment at the top of collect_output_manifest.py
kysrpex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,41 +1,60 @@ | ||
FROM conda/miniconda3 | ||
FROM python:3.12-bookworm | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
ENV PIP_ROOT_USER_ACTION=ignore | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PULSAR_CONFIG_CONDA_PREFIX /usr/local | ||
|
||
# set up Galaxy Depot repository (provides SLURM DRMAA packages for Debian Buster and newer releases) | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends ca-certificates curl gnupg \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* \ | ||
&& curl -fsSL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x18381AC8832160AF" | gpg --dearmor -o /etc/apt/trusted.gpg.d/galaxy-depot.gpg \ | ||
&& echo "deb https://depot.galaxyproject.org/apt/ $(bash -c '. /etc/os-release; echo ${VERSION_CODENAME:-bookworm}') main" | tee /etc/apt/sources.list.d/galaxy-depot.list | ||
|
||
# set up Debian Bullseye repository (and use it only for libslurm36, needed by slurm-drmaa1, and slurm) | ||
RUN echo "deb http://deb.debian.org/debian/ bullseye main" > /etc/apt/sources.list.d/bullseye.list && \ | ||
cat <<EOF > /etc/apt/preferences.d/bullseye.pref | ||
Package: * | ||
Pin: release n=bullseye | ||
Pin-Priority: -1 | ||
|
||
Package: libslurm36, slurm | ||
Pin: release n=bullseye | ||
Pin-Priority: 100 | ||
EOF | ||
|
||
# set up CVMFS repository | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends lsb-release wget \ | ||
&& wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb \ | ||
&& dpkg -i cvmfs-release-latest_all.deb && rm -f cvmfs-release-latest_all.deb | ||
|
||
# wget, gcc, pip - to build and install Pulsar. | ||
# bzip2 for Miniconda. | ||
# TODO: pycurl stuff... | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends apt-transport-https \ | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
# Install CVMFS client | ||
&& apt-get install -y --no-install-recommends lsb-release wget \ | ||
&& wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb \ | ||
&& dpkg -i cvmfs-release-latest_all.deb \ | ||
&& rm -f cvmfs-release-latest_all.deb \ | ||
cvmfs cvmfs-config-default \ | ||
# Install packages | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends gcc \ | ||
libcurl4-openssl-dev \ | ||
cvmfs cvmfs-config-default \ | ||
slurm-llnl slurm-drmaa-dev \ | ||
bzip2 \ | ||
gcc libcurl4-openssl-dev \ | ||
munge libmunge-dev slurm slurm-drmaa-dev \ | ||
bzip2 \ | ||
# Install Pulsar Python requirements | ||
&& pip install --no-cache-dir -U pip \ | ||
&& pip install --no-cache-dir drmaa wheel kombu pykube pycurl \ | ||
webob psutil PasteDeploy pyyaml paramiko \ | ||
# Remove build deps and cleanup | ||
&& apt-get -y remove gcc wget lsb-release \ | ||
&& apt-get -y autoremove \ | ||
&& apt-get autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* /var/log/dpkg.log \ | ||
&& /usr/sbin/create-munge-key | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /var/log/dpkg.log | ||
|
||
ADD pulsar_app-*-py2.py3-none-any.whl / | ||
|
||
ADD pulsar_app-*-py2.py3-none-any.whl /pulsar_app-*-py2.py3-none-any.whl | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN pip install --upgrade setuptools && pip install pyOpenSSL --upgrade && pip install cryptography --upgrade | ||
RUN pip install --no-cache-dir /pulsar_app-*-py2.py3-none-any.whl[galaxy_extended_metadata] && rm /pulsar_app-*-py2.py3-none-any.whl | ||
RUN pip install --no-cache-dir --upgrade setuptools pyOpenSSL cryptography | ||
RUN pip install --no-cache-dir "$(echo /pulsar_app-*-py2.py3-none-any.whl)"[galaxy_extended_metadata] && rm /pulsar_app-*-py2.py3-none-any.whl | ||
RUN pip install --upgrade 'importlib-metadata<5.0' | ||
RUN _pulsar-configure-galaxy-cvmfs | ||
RUN _pulsar-conda-init --conda_prefix=/pulsar_dependencies/conda |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmchilton commented:
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am assuming "Miniconda" is not required in the base image because I saw line 60 (the last line):
RUN _pulsar-conda-init --conda_prefix=/pulsar_dependencies/conda
. It looks like it installs Miniconda, thus it should make it to the Docker image without needing to put it in the base image. But I am not familiar with Pulsar so I am not sure if line 60 actually has an effect equivalent to including it in the base image.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About the SLURM stuff, it is not needed for this use case but it was already in the old Dockerfile (it is needed for other use cases).
Because I am changing the base image to Debian Bookworm, the changes are required not to break the build with the new base image (that's why the whole commit has the title "Change base image in coexecutor Dockerfile").
slurm-drmaa1
is not available on the Debian repos anymore for Bookworm (it has to be installed from the Galaxy Depot). The latest version ofslurm-drmaa1
available in the Galaxy depot (1.1.4) requires a librarylibslurm36
from Debian Bullseye. There exists a new version 1.1.5 oflibslurm-drmaa1
on GitHub that maybe works on Bookworm without libraries from Bullseye, but @natefoo has not published a Debian package yet.