Skip to content

Add a "-p" option to all mkdir commands#94

Merged
kowh-ai merged 4 commits intomainfrom
All-mkdir-commands-should-use--p
Dec 2, 2024
Merged

Add a "-p" option to all mkdir commands#94
kowh-ai merged 4 commits intomainfrom
All-mkdir-commands-should-use--p

Conversation

@kowh-ai
Copy link
Copy Markdown
Contributor

@kowh-ai kowh-ai commented Nov 28, 2024

This should be good practice especially if using the ONBUILD Docker command

@kowh-ai
Copy link
Copy Markdown
Contributor Author

kowh-ai commented Nov 28, 2024

@wardi - this PR may fix the 2 issues ckan-docker-base #192 and ckan-docker #93 however I'm scratching my head as to what exactly is going on as the 2 issues are using the alpine images and although they did significantly change with simplify repo change the build instructions in the Dockerfile did not change...much

Copy link
Copy Markdown
Member

@avdata99 avdata99 left a comment

Choose a reason for hiding this comment

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

I assume only ONBUILD commands requires the -p param and we can skip the others

Copy link
Copy Markdown
Contributor

@duttonw duttonw left a comment

Choose a reason for hiding this comment

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

It does not hurt to have the -p on all mkdir, so that it also handles parents being created if missed prior (as well as if already existing)

@kowh-ai
Copy link
Copy Markdown
Contributor Author

kowh-ai commented Nov 29, 2024

Yes, I think getting rid of all ONBUILD instructions is a good idea

@amercader
Copy link
Copy Markdown
Member

This looks good, @kowh-ai can you:

@kowh-ai kowh-ai merged commit bf7446f into main Dec 2, 2024
@kowh-ai kowh-ai deleted the All-mkdir-commands-should-use--p branch December 2, 2024 09:33
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.

4 participants