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

Create Actions workflow for uploading container image to Harbor #355

Closed
1 task
VKTB opened this issue May 6, 2022 · 1 comment · Fixed by #368
Closed
1 task

Create Actions workflow for uploading container image to Harbor #355

VKTB opened this issue May 6, 2022 · 1 comment · Fixed by #368
Assignees

Comments

@VKTB
Copy link
Contributor

VKTB commented May 6, 2022

Description:
An Actions workflow needs to be created that will push the Docker container image to Harbor. The workflow from DataGateway can be used as a guide https://github.com/ral-facilities/datagateway/blob/feature/k8s-deployment/.github/workflows/docker-build.yml

Acceptance criteria:

  • Successful Harbor upload
@VKTB
Copy link
Contributor Author

VKTB commented Jun 17, 2022

Closed in #368

@VKTB VKTB closed this as completed Jun 17, 2022
VKTB added a commit that referenced this issue Aug 31, 2023
…sh Docker image to Harbor (#426)

* Set python image #354

* Upgrade pip #354

* Install Poetry #354

* Install a different version of setuptools #354

* Install Gunicorn #354

* Install the app dependencies #354

* Serve the app on a Gunicorn server #354

* Pin Poetry version #354

* Define Actions job for building and pushing Docker image to Harbor #355

* Configure job to only run after other jobs succeed #355

* Configure job to login to Harbor #355

* Configure job to extract Docker metadata #355

* Configure job to build image #355

* Configure job to push image to Harbor on pushes to k8s-deployment branch #355

* Add job documentation and TODOs #355

* Configure dependabot to maintain GH Actions dependencies #355

* Add TODO for branch name of push events #355

* Update Dockerfile and add entrypoint script

* Use specific python and alpine versions in the base image

* Pin python package versions in Dockerfile

* Use a cache mount to speed up pip and poetry

* Comment the RUN step

* Move things out of the datagateway-api-run directory

* Remove workaround that is no longer needed

* log_location value should not be quoted

* Only copy necessary files to build container

* Improve readability of RUN instructions

* Use a temp file instead of sed -i in entrypoint script

* Create a symlink to the installed python module

* Address TODOs

* Change default value of ICAT_CHECK_CERT ENV

* Upgrade and pin actions to commit SHAs

* ci(docker): bump actions/checkout to 3.5.3 in docker job

* Update README

---------

Co-authored-by: Alan Kyffin <alan.kyffin@stfc.ac.uk>
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 a pull request may close this issue.

1 participant