Skip to content

Conversation

@bziemons
Copy link
Member

@bziemons bziemons commented Jan 9, 2026

Also changed ADD to COPY and fixed chown (just me linting the file).

Fixes #466

@bziemons bziemons requested a review from 0xquark January 9, 2026 09:39
Copy link
Member

@0xquark 0xquark left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@bziemons
Copy link
Member Author

bziemons commented Jan 9, 2026

@bari12 probably worth a re-release of 39 for rucio-clients or hotfix release on docker hub

Comment on lines -46 to +48
ADD --chown=user:user rucio.default.cfg /opt/user/rucio.default.cfg
ADD init_rucio.sh /etc/profile.d/rucio_init.sh
ADD --chown=user;user ./entrypoint.sh /opt/user/entrypoint.sh
COPY --chown=user:user rucio.default.cfg /opt/user/rucio.default.cfg
COPY init_rucio.sh /etc/profile.d/rucio_init.sh
COPY --chown=user:user ./entrypoint.sh /opt/user/entrypoint.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should be a different commit as it doesn't fall under the scope of fixing tools path in the clients init script

Copy link
Member Author

@bziemons bziemons Jan 9, 2026

Choose a reason for hiding this comment

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

couldn't test without the chown fix. I think some amount of linting is fine, this is not changing the applied logic.

Copy link
Contributor

Choose a reason for hiding this comment

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

I understand, but I would argue that this does not count as linting since ADD and COPY are two different commands

Copy link
Member Author

Choose a reason for hiding this comment

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

They are different commands, but similar and I believe the similarity is a flaw in the Dockerfile reference. Without going into too much detail: The resulting logic in this change is the same and to clarify that we want to copy and not extract any files, COPY is more specific here.

Copy link
Contributor

Choose a reason for hiding this comment

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

From those docs:

ADD and COPY are functionally similar

I would argue that "functionally similar" implies that there might potentially be a difference in functionality, and thus should be considered a functional change, even if we expect the functionality to remain the same in this case.

Even if this were not a functional change, this is still a different change compared to "Fix tools path in clients init script", so in my opinion it should be in a different commit

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.

init_rucio.sh for rucio client container needs update for v39.0.0

3 participants