Skip to content
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

fix Entrypoint to use Base image entrypoint #206

Closed
wants to merge 3 commits into from

Conversation

cgruver
Copy link
Contributor

@cgruver cgruver commented Dec 12, 2024

This PR is a fix for eclipse-che/che#23281

This PR also removes the run of stow during the build. Running stow during the image build creates /home/user/.config resulting in .config being owned by root.

.config being owned by root breaks podman v5+

Copy link

openshift-ci bot commented Dec 12, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cgruver

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


# Create symbolic links from /home/tooling/ -> /home/user/
RUN stow . -t /home/user/ -d /home/tooling/ --no-folding

Copy link
Collaborator

Choose a reason for hiding this comment

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

To be on the safer side, instead of removing the stow call, could we instead add .config in the stow ignore file here?

We have the stow call here to move certain /home/tooling folders (example) to /home/user.

The stow call might not be entirely necessary since the binaries installed under /home/tooling are being added to the PATH anyways. I'll have to investigate more to be sure whether the stow call can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need the stow call during build? I don't think that it does anything useful that isn't done when it runs in the entrypoint.sh

You'll see that exact same syntax is run in entrypoint.sh. When it runs there, it runs as the user not root.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dkwon17 I restored the stow command in the Dockerfile.

@dkwon17
Copy link
Collaborator

dkwon17 commented Dec 12, 2024

The build fails because the latest version of gopls (which was released yesterday) is incompatible with the latest available version of go available in the ubi-9-appstream-rpms repo, I've made this PR to fix the gopls version to fix the build: #207

@cgruver
Copy link
Contributor Author

cgruver commented Dec 13, 2024

The build fails because the latest version of gopls (which was released yesterday) is incompatible with the latest available version of go available in the ubi-9-appstream-rpms repo, I've made this PR to fix the gopls version to fix the build: #207

I will close this PR and resubmit with the latest from main

@cgruver cgruver closed this Dec 13, 2024
@cgruver
Copy link
Contributor Author

cgruver commented Dec 13, 2024

Superseded by #208

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.

2 participants