-
Notifications
You must be signed in to change notification settings - Fork 12
Replace old image deployer with new one #344
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4a51b4a
Remove image cleaner
pdmars be3ac44
Swap old image deployer service and timer with new image deployer app…
pdmars 09bfdfe
pass auth via env vars
msherman64 6c59f1c
set permissions to secure secrets
msherman64 794ecbe
correct the object store bucket url
msherman64 5ef1821
use public url
msherman64 1386457
Move cleanup to separate tasks, check if files exist before removing
pdmars cf43722
Fix docs for new image deploy service
pdmars File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
--- | ||
chameleon_image_tools_docker_image: ghcr.io/chameleoncloud/chameleon_image_tools:latest | ||
chameleon_image_tools_config_dir: /etc/chameleon_image_tools | ||
|
||
hide_image_age_in_month: 12 | ||
delete_image_age_in_month: 18 | ||
chameleon_image_tools_docker_image: ghcr.io/chameleoncloud/chameleon_site_tools:sha-384af41 | ||
chameleon_image_tools_config_dir: /etc/hammers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
roles/chameleon_image_tools/templates/chameleon-image-clean.j2
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
roles/chameleon_image_tools/templates/chameleon-image-deploy.j2
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
roles/chameleon_image_tools/templates/chameleon-image-deploy.service.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Chameleon Image Deployer | ||
After=docker.service | ||
Requires=docker.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/bin/docker run --rm --net=host \ | ||
-v "{{ chameleon_image_tools_config_dir }}:{{ chameleon_image_tools_config_dir }}:ro" \ | ||
{{ chameleon_image_tools_docker_image }} \ | ||
image_deployer --site {{ chameleon_image_tools_config_dir }}/site.yaml | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
9 changes: 9 additions & 0 deletions
9
roles/chameleon_image_tools/templates/chameleon-image-deploy.timer.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=Run Chameleon Image Deployer daily | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.