You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a part of the deployment instructions with the platform infra, folks are instructed to set enable_command_execution to true because when the service starts in the container, it tries to write to the container filesystem. When deployed to ECS this is not allowed (by default). The enable_command_execution happens to disable this read-only requirement in ECS as a side effect, but has other implications as well that are not appropriate for all environments.
The platform infra may get a more targeted read-only filesystem toggle, but even then, it would be nicer if the Rails template could just work more "out of the box" and not require the write access to its container system.
Implementation
Determine if such a thing is possible. Implement if so.
Seems like when Rails/puma try to right a pidfile on startup. And also possibly general temporary file handling, as by default Rails stores temporary files in a relative tmp directory. Quoting a note made elsewhere about the tmp file handling:
A few different options are available for using data volumes and we should do a little research and refer to how we solved this problem on past projects to decide on the right solution.
Context
As a part of the deployment instructions with the platform infra, folks are instructed to set
enable_command_execution
totrue
because when the service starts in the container, it tries to write to the container filesystem. When deployed to ECS this is not allowed (by default). Theenable_command_execution
happens to disable this read-only requirement in ECS as a side effect, but has other implications as well that are not appropriate for all environments.The platform infra may get a more targeted read-only filesystem toggle, but even then, it would be nicer if the Rails template could just work more "out of the box" and not require the write access to its container system.
Implementation
Determine if such a thing is possible. Implement if so.
Seems like when Rails/puma try to right a pidfile on startup. And also possibly general temporary file handling, as by default Rails stores temporary files in a relative
tmp
directory. Quoting a note made elsewhere about the tmp file handling:The easiest option, since this is just for tmp files/ephemeral, might be to use bind mounts. See https://stackoverflow.com/a/79264666 for an example.
The text was updated successfully, but these errors were encountered: