Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Dockerfile.rocky9
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,33 @@ RUN if [ "$WITH_GIT" = "True" ]; then \
echo "migrid version: ${MIG_SVN_REPO} trunk ${MIG_SVN_REV}" > ./active-migrid-version.txt; \
fi;

# With the repository available, we have access to definitions and scripts
# within it. As such, we can gather any dependencies defined there.

RUN if [ -e "$MIG_ROOT/envhelp/scripts/expand_sources.py" ]; then \
"$MIG_ROOT/envhelp/scripts/expand_sources.py" --use-wget; fi

# In a per-feature requirements file future, we will have something generic
# across the features here. For now, perform one-off logic to arrange for a
# package of migrid UX that we can install; then do so.

USER root
ENV FEATURE_MIGUX="$MIG_ROOT/mig/install/requirements/migux-requirements.txt"
RUN if [ -e "$FEATURE_MIGUX" ]; then \
python3 -m pip install dumb-pypi; \
dumb-pypi \
--package-list "$MIG_ROOT/envhelp/staging/.packages.lst" \
--packages-url='../..' \
--output-dir "$MIG_ROOT/envhelp/staging"; \
python3 -m pip install \
-r "$FEATURE_MIGUX" \
--extra-index-url="$MIG_ROOT/envhelp/staging/simple"; \
fi
USER $USER

RUN if [ -e "$MIG_ROOT/mig/install/postinstall/migux-postinstall" ]; then \
"$MIG_ROOT/mig/install/postinstall/migux-postinstall"; fi

# NOTE: we manually need to enable modern grid_webdavs.py here for now.
# Replace any existing symlink with one to the 3.x script.
RUN rm -f ${MIG_ROOT}/mig/server/grid_webdavs.py ; \
Expand Down Expand Up @@ -1315,6 +1342,10 @@ RUN cp generated-confs/MiGserver.conf $MIG_ROOT/mig/server/ \
&& cp generated-confs/static-skin.css $MIG_ROOT/mig/images/ \
&& cp generated-confs/index.html $MIG_ROOT/state/user_home/

# With the configuration in hand, prime any configured templates
RUN python3 -m mig.lib.templates prime \
Copy link
Copy Markdown
Contributor

@rasmunk rasmunk Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting, that merging ucphhpc/migrid-sync#210 into migrid-sync is required before this is supported

-c $MIG_ROOT/mig/server/MiGserver.conf

# Site conf for js helpers including status page and auth options on index page
RUN [ -e "$MIG_ROOT/mig/images/site-conf-${DOMAIN}.js" ] || \
cp -a $MIG_ROOT/mig/images/site-conf-${EMULATE_FQDN}.js \
Expand Down
Loading