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 volume directive to ECS Dockerfile #40

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

NovemberTang
Copy link
Contributor

What does this change?

AWS FSBP ECS.5 states that root container filesystems must be readonly. We can specify particular directories as exceptions to this by using ephemeral volumes such as bind mounts. Specifying a VOLUME in the Dockerfile, means that when we intantiate a container using this image, we can set the directory specified by the VOLUME command as a mount point, and it's contents will not be erased.

How to test

We have tested this by running this container with a mount point at /init, and have verified that it is able to run as normal, indicating the files were not destroyed when the volume was mounted.

How can we measure success?

We see fewer ECS.5 failures, as we no longer need root filesystem write access to make changes to the /init folder

@NovemberTang NovemberTang requested a review from a team as a code owner April 24, 2024 14:19
@NovemberTang NovemberTang merged commit b8f54bd into main Apr 24, 2024
4 checks passed
@NovemberTang NovemberTang deleted the nt-ac/add-volume-directive-to-ecs branch April 24, 2024 14:21
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