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 the issues with the permissions of the Docker scripts on Windows #9906

Merged
merged 3 commits into from
Oct 11, 2023
Merged

Fix the issues with the permissions of the Docker scripts on Windows #9906

merged 3 commits into from
Oct 11, 2023

Conversation

jp-tosca
Copy link
Contributor

@jp-tosca jp-tosca commented Sep 12, 2023

What this PR does / why we need it:

When starting the containers on Windows configbaker-1 is able to connect to the DV-API and retrieve the version at "dataverse:8080/api/info/version" but when it tries to run the init.sh script it shows the following error:

"/scripts/bootstrap/dev/init.sh: line 10: /scripts/bootstrap/base/setup-all.sh: Permission denied"

Which issue(s) this PR closes:

Special notes for your reviewer:

The first solution was to add the chmod to the init.sh script, this also works but I consider this being a better solution since:

  1. The permissions are done before execution
  2. There is already logic setting permissions on this file, so it makes sense to put them in the same place.

There is a line that set up permissions for scripts before this, but I didn't want to modify or move it since it is not clear that these permissions are necessary before the point the scripts are copied to ${SCRIPT_DIR}/bootstrap/base/. I left this code intact and added RUN chmod +x ${BOOTSTRAP_DIR}//.sh after the scripts were copied into the base folder.

Suggestions on how to test this:

Download the original version on windows (tested and working on windows 10).

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No

Is there a release notes update needed for this change?:

N/A

Additional documentation:

N/A

@pdurbin pdurbin changed the title Fixes the issues with the permissions of the docker scripts on Window… Fixes the issues with the permissions of the Docker scripts on Windows Sep 12, 2023
@pdurbin
Copy link
Member

pdurbin commented Sep 12, 2023

@jp-tosca thanks for the pull request! I added it to the agenda of Thursday's Containerization Working Group meeting: https://ct.gdcc.io

@pdurbin
Copy link
Member

pdurbin commented Sep 13, 2023

@jp-tosca jp-tosca changed the title Fixes the issues with the permissions of the Docker scripts on Windows Fix the issues with the permissions of the Docker scripts on Windows Sep 22, 2023
… 2023-09-21. Deleting the duplicated chmod and moving the bootstrap script copy to be executed before the chmod.
@pdurbin pdurbin added the Component: Containers Anything related to cloudy Dataverse, shipped in containers. label Sep 22, 2023
@pdurbin pdurbin added this to Ready for Review ⏩ in IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) via automation Oct 5, 2023
@poikilotherm poikilotherm added the Size: 0.5 A percentage of a sprint. 0.35 hours label Oct 10, 2023
Copy link
Contributor

@poikilotherm poikilotherm left a comment

Choose a reason for hiding this comment

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

Looks good to me, thx for the PR @jp-tosca !

(Layers are not in perfect order, but the drawbacks are negligible.)

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for Review ⏩ to Ready for QA ⏩ Oct 10, 2023
@kcondon kcondon self-assigned this Oct 11, 2023
@kcondon kcondon merged commit 8228d53 into IQSS:develop Oct 11, 2023
5 of 6 checks passed
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for QA ⏩ to Done 🚀 Oct 11, 2023
@pdurbin pdurbin added this to the 6.1 milestone Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Containers Anything related to cloudy Dataverse, shipped in containers. Size: 0.5 A percentage of a sprint. 0.35 hours
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

configbaker setup-all.sh perms [Win]
4 participants