Copy config under a volume for Docker (similar to a ConfigMap for K8S). #914
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
in progress
invalid
question
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/stack-orchestrator#914
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "telackey/configdata"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This emulates the K8S ConfigMap behavior on Docker by using a regular volume.
If a directory exists under
config/
which matches a named volume, the contents will be copied to the volume oncreate
(provided the destination volume is empty). That is, rather than a ConfigMap, it is essentially a "config volume".For example, with a compose file like:
And a directory:
After
laconic-so deploy create --spec-file caddy.yml --deployment-dir /srv/caddy
there will be:Mounted at
/etc/caddy
Copy config under a volume for Docker too (similar to a configmap).to Copy config under a volume for Docker (similar to a ConfigMap for K8S).