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 container image #41

Merged
merged 4 commits into from
May 18, 2022
Merged

Conversation

DrackThor
Copy link
Contributor

I've split the old PR #39 into two new PRs, this one contains the Docker image - #40 contains the HELM chart.
Maybe we need to sort out some merge conflicts in the README.md since I've modified it in both PRs.

This image installs a specific version of artifactory-cleanup, handed to the image as the build argument VERSION.
A little bash script is executed at startup to check if all necessary information is provided, this then also starts artifactory-cleanup

Feedback is most welcome! 😄

docker/Dockerfile Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated

To use the container image you first have to build it.
This assumes you have `docker` installed on your system.
In case you have setup your Artifactory with self-signed certificates, place all certificates of the chain of trust into the `container/certificates/` folder.
Copy link
Member

Choose a reason for hiding this comment

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

Any details should be placed after "common usage" section, the first thing people want to see - a bash command how to run the docker.
Let's move self-signed certificated info to the bottom of this section

container/certificates/ shouldn't it be docker/certificates?

It there a way how to add these certificates in docker run command not in build? It'd be better

README.md Outdated Show resolved Hide resolved
docker/run.sh Outdated Show resolved Hide resolved
Daniel Drack and others added 2 commits May 17, 2022 09:20
- certificates are now installed during container start, not in build step
- renamed "destroy mode" env variable to ARTIFACTORY_DESTROY_MODE_ENABLED
- rearranged README.md file

 Changes to be committed:
	modified:   README.md
	modified:   docker/Dockerfile
	modified:   docker/run.sh
@allburov
Copy link
Member

@DrackThor thank you! I'm going to adjust Dockerfile a bit, I think we should install artifactory-cleanup from the current directory, not pypi.
It'll allow users to change artifactory-cleanup and build they own version quickly

@allburov allburov merged commit 969a56d into devopshq:master May 18, 2022
@allburov
Copy link
Member

Docker image was released!
https://hub.docker.com/repository/docker/devopshq/artifactory-cleanup

@DrackThor thank you for your patience and efforts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants