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

Adjust "sed" expressions so we can bind-mount the configuration file #160

Merged
merged 1 commit into from
Oct 1, 2018

Conversation

tianon
Copy link
Member

@tianon tianon commented Oct 1, 2018

This allows the file to be rewritten in-place even in the face of a bind mount (assuming permissions, etc).

This is related to #58 and #142, among others.

(See also docker-library/docs#1317.)

@tianon
Copy link
Member Author

tianon commented Oct 1, 2018

For reference, here's the error message when using a bind-mounted cassandra.yaml:

sed: cannot rename /etc/cassandra/sedQDEWd0: Device or resource busy

This allows the file to be rewritten in-place even in the face of a bind mount (assuming permissions, etc).
@yosifkit yosifkit merged commit 16adc22 into docker-library:master Oct 1, 2018
@yosifkit yosifkit deleted the yaml branch October 1, 2018 23:36
tianon added a commit to infosiftr/stackbrew that referenced this pull request Oct 1, 2018
- `busybox`: 1.29.3, Buildroot 2018.08, Alpine 3.8
- `cassandra`: fix `cassandra.yaml` modification (docker-library/cassandra#160), `chown` fixes (docker-library/cassandra#158)
- `ghost`: `chown` fixes (docker-library/ghost#153)
- `julia`: 1.0.1
- `mariadb`: `chown` fixes (MariaDB/mariadb-docker#203)
- `mongo`: `chown` fixes (docker-library/mongo#305)
- `openjdk`: Oracle variants (docker-library/openjdk#235), 11 GA
- `owncloud`: `chown` fixes (docker-library/owncloud#105)
- `percona`: `chown` fixes (docker-library/percona#69)
- `php`: 7.3.0RC2
- `rabbitmq`: `chown` fixes (docker-library/rabbitmq#281)
- `redis`: `chown` fixes (redis/docker-library-redis#166)
- `redmine`: `chown` fixes (docker-library/redmine#128)
- `ruby`: Alpine thread stack size fix (docker-library/ruby#237)
- `tomcat`: add JRE 11, remove EOL Tomcat 8.0 (docker-library/tomcat#133)
@lewisdiamond
Copy link

Note that this doesn't solve all the problems. If the configuration is mounted as read-only, it will fail.

@tianon
Copy link
Member Author

tianon commented Oct 3, 2018

Sure, but that's where -Dcassandra.config=xxx comes in (or --entrypoint cassandra).

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.

None yet

3 participants