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

Add data-only build process #246

Closed
AlexAxthelm opened this issue Feb 27, 2024 · 2 comments · Fixed by #247
Closed

Add data-only build process #246

AlexAxthelm opened this issue Feb 27, 2024 · 2 comments · Fixed by #247

Comments

@AlexAxthelm
Copy link
Collaborator

Now that we are publishing a data-less docker image that is otherwise what we want for CTM, we can improve speed in getting images to testing by preparing a second dockerfile which overwrites the (empty) pacta-data and templates.transition.monitor directories.

Note, that I am imagining this as a testing-only image, but which can be used to quickly get images up to the BETA platform

@cjyetman
Copy link
Member

I often test with the existing GHCR images, mounting in the templates and data, as per the README...

# Using Docker images pushed to GHCR automatically by GH Actions
``` {.bash}
tag_name=PR199
repos_directory=~/github/rmi-pacta/
data_folder=~/github/rmi-pacta/pacta-data
# if you have local clones of workflow.transition.monitor and
# templates.transition.monitor in the specified repos_directory above, you
# probably do not need to edit any options below unless you want to further
# customize things
image_name=ghcr.io/rmi-pacta/workflow.transition.monitor:$tag_name
portfolio_name="1234"
user_folder=${repos_directory}workflow.transition.monitor/working_dir
templates_folder=${repos_directory}templates.transition.monitor
docker run -ti --rm --network none \
--pull=always \
--mount type=bind,source=${user_folder},target=/bound/working_dir \
--mount type=bind,readonly,source=${data_folder},target=/pacta-data \
--mount type=bind,readonly,source=${templates_folder},target=/templates.transition.monitor \
$image_name \
/bound/bin/run-r-scripts "$portfolio_name"
```

@AlexAxthelm
Copy link
Collaborator Author

Yep. I'm basically extending that to include grabbing a dataset from AFS, and a branch from templates.transition.monitor, and baking that into a latest image that we can put on BETA.

AlexAxthelm added a commit that referenced this issue Feb 27, 2024
New image builds off public image but adds real data and report templates

Closes: #246
AlexAxthelm added a commit that referenced this issue Feb 27, 2024
cjyetman pushed a commit that referenced this issue Feb 27, 2024
New image builds off public image but adds real data and report
templates

Closes: #246
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants