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 update install scripts #600

Merged
merged 10 commits into from
Oct 16, 2023
Merged

Fix update install scripts #600

merged 10 commits into from
Oct 16, 2023

Conversation

Robert108
Copy link
Collaborator

This PR uses the install scripts inside the Dockerfile which both deletes repeated code and creates a quick way of validating the install scripts since they now will be executed every time the docker image is build.

It also splits the install script into two to make use of the Docker image layer caching.

A new user entry point script is created in the root folder called setup_atos.sh

@Robert108
Copy link
Collaborator Author

I have added the docker build as a check here to see if it is reasonable to build it every time a commit is made in a PR towards dev.

Copy link
Contributor

@samuelthoren samuelthoren left a comment

Choose a reason for hiding this comment

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

Approved by me, but I think someone with more experience with Docker than me should also approve before merging!

@@ -3,6 +3,8 @@ name: Docker Image CI
on:
push:
branches: [ "dev*" ]
pull_request:
branches: [ "dev" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add the master branch here too?

@Robert108 Robert108 requested a review from sepast October 11, 2023 11:45
Copy link
Collaborator

@victorjarlow victorjarlow left a comment

Choose a reason for hiding this comment

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

Good idea to consolidate the installation into one place (setup_atos.sh) instead of having it both in scripts and in dockerfile!

scripts/install_atos.sh Outdated Show resolved Hide resolved
scripts/install_deps.sh Outdated Show resolved Hide resolved
setup_atos.sh Outdated Show resolved Hide resolved
scripts/install_atos.sh Show resolved Hide resolved
scripts/install_deps.sh Show resolved Hide resolved
@Robert108 Robert108 merged commit d877322 into dev Oct 16, 2023
1 check passed
@Robert108 Robert108 deleted the fix_update_install_scripts branch October 16, 2023 13:09
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.

3 participants