Skip to content

feat: delegated-init support for Fly projects #997

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 7 commits into from
Jun 12, 2024
Merged

Conversation

tomashley
Copy link
Contributor

@tomashley tomashley commented Jun 7, 2024

What kind of change does this PR introduce?

Feature: Installs salt in the all-in-one Docker container used in Fly.io projects. Enables a delegated entry point for the container.

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Add any other context or screenshots.%


# only extract a valid archive
if [[ $(tar -tzf $DELEGATED_ARCHIVE_PATH) ]]; then
# TODO: (tom) Only extract newer tar archives
Copy link
Member

Choose a reason for hiding this comment

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

Could we save the filemtime of the last extracted tarball in a persistent file and compare if current tarball filemtime is different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have solved the time issue by adding a touch to the entryscript at build time
We could only be changing salt files, but this file will always definitively be in the archive.

@tomashley tomashley force-pushed the tom/delegated-init branch from e89b132 to ccac5b8 Compare June 11, 2024 13:06
@tomashley tomashley requested a review from a team as a code owner June 12, 2024 10:12
@tomashley tomashley merged commit 156a6d7 into develop Jun 12, 2024
8 of 10 checks passed
@tomashley tomashley deleted the tom/delegated-init branch June 12, 2024 10:23
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.

2 participants