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

update Dockerfile for smart-cache-enterprise #18

Merged
merged 2 commits into from
May 29, 2024

Conversation

sapirgila
Copy link
Contributor

No description provided.

chown -R gs_user:0 ${GS_HOME} &&\
chmod -R 0775 /opt/gigaspaces

COPY --chmod=075 entrypoint.sh /opt/entrypoint.sh
Copy link
Collaborator

@denomolo denomolo May 29, 2024

Choose a reason for hiding this comment

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

This is kind of wrong. This is better:

COPY entrypoint.sh /opt/entrypoint.sh
RUN chown -R gs_user:0 ${GS_HOME} &&\
   chmod -R 0755 /opt/gigaspaces

chown -R gs_user:0 ${GS_HOME}
ADD entrypoint.sh /opt/entrypoint.sh
chown -R gs_user:0 ${GS_HOME} &&\
chmod -R 0775 /opt/gigaspaces
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is bad because it gives everyone in the GID rwx permissions

@sapirgila sapirgila merged commit 6cae761 into master May 29, 2024
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