Skip to content

HYRAX-2041: Change bes installation destination to match legacy RPM installation paths#1277

Merged
hannahilea merged 19 commits intomasterfrom
hr/prefix-fix-1
Mar 19, 2026
Merged

HYRAX-2041: Change bes installation destination to match legacy RPM installation paths#1277
hannahilea merged 19 commits intomasterfrom
hr/prefix-fix-1

Conversation

@hannahilea
Copy link
Copy Markdown
Contributor

@hannahilea hannahilea commented Mar 16, 2026

Description

Fix HYRAX-2041

Tasks

  • Ticket exists and is linked in title
  • Tests added/updated
  • Dead code removed
  • No TODOs added

@hannahilea hannahilea marked this pull request as draft March 16, 2026 17:26
@hannahilea hannahilea changed the title Revert expected bes paths in bes_core by setting $prefix to '/' Change bes installation destination to match legacy RPM installation paths Mar 17, 2026
@hannahilea hannahilea changed the title Change bes installation destination to match legacy RPM installation paths HYRAX-2041: Change bes installation destination to match legacy RPM installation paths Mar 18, 2026
export BUILD_VERSION_TAG="opendap/${DOCKER_NAME}:${BES_VERSION}-${DIST}"
echo "Tagging image with BES version: ${BUILD_VERSION_TAG}"
docker tag ${SNAPSHOT_IMAGE_TAG} ${BUILD_VERSION_TAG}
# Uncomment the following to push a test image for a non-test-deploy pull request
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

intentionally leaving this commented out section in; i've needed to do something similar a few times recently, and it's nice to have. i don't think it's worth adding in a whole separate flag variable for it.

fi

ENV USER="bes_user"
ENV BES_USER="bes_user"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

tiny nicety while we're in here touching this code.

@hannahilea
Copy link
Copy Markdown
Contributor Author

Corresponding hyrax-docker changes here: OPENDAP/hyrax-docker#142

We shouldn't merge this PR until that PR is otherwise ready to be merged immediately after.

--build-arg BES_BUILD_NUMBER="$BES_BUILD_NUMBER" \
--tag "${SNAPSHOT_IMAGE_TAG}" \
--build-context aws_downloads="$AWS_DOWNLOADS_DIR/" \
--progress=plain $DOCKER_DEV_FLAGS \
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removes some extraneous logging

Copy link
Copy Markdown
Contributor

@ndp-opendap ndp-opendap left a comment

Choose a reason for hiding this comment

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

Excellent!
Release the hounds!

Dockerfile Outdated
RUN echo "Sanity check: CPPFLAGS=$CPPFLAGS LDFLAGS=$LDFLAGS prefix=$PREFIX" \
&& ./configure --disable-dependency-tracking \
--with-dependencies="${PREFIX}/deps" \
--with-dependencies="${DEPS_PREFIX}/deps" \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Using the {} decorations unambiguously identifies the env vars but is not really needed unless there is some parsing conflict with the rest of the expression. I used to use the {} decorations everywhere. But overtime I have come to think that they make things harder to read so I am slowly removing them where possible. YMMV!
This is not a change request, just me mentioning where I've been heading.

Examples

This:

    --with-dependencies="${DEPS_PREFIX}/deps" \

Can be simplified to:

    --with-dependencies="$DEPS_PREFIX/deps" \

But this:

    --with-dependencies="${DEPS_PREFIX}my_deps" \

Cannot be simplified to:

    --with-dependencies="$DEPS_PREFIXmy_deps" \

Because the parser can't disambiguate the env variable name in the last expression.

Copy link
Copy Markdown
Member

@jgallagher59701 jgallagher59701 left a comment

Choose a reason for hiding this comment

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

I'm sure I'm missing some of the details, but it looks good. Merge.

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@hannahilea hannahilea merged commit 9d5ccfb into master Mar 19, 2026
6 checks passed
@hannahilea hannahilea deleted the hr/prefix-fix-1 branch March 19, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants