https://github.com/uber5/convoy-nfs-rancher
Use a docker-provided nfs service as container storage via convoy
https://github.com/uber5/convoy-nfs-rancher
Last synced: about 1 month ago
JSON representation
Use a docker-provided nfs service as container storage via convoy
- Host: GitHub
- URL: https://github.com/uber5/convoy-nfs-rancher
- Owner: Uber5
- Created: 2017-07-02T13:31:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T20:37:00.000Z (about 9 years ago)
- Last Synced: 2025-02-24T12:22:00.936Z (over 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# convoy-nfs-rancher
Use a docker-provided nfs service as container storage via convoy
# Usage
Given a mount command (e.g. `mount -t nfs -o rw 10.42.202.184:/gv1 /opt/convoy`)
and a mount point (e.g. `/opt/convoy`), add the following to `coreos.units` in
`/var/lib/coreos-install/user_data`:
```
- name: convoy-nfs.service
command: start
content: |
[Unit]
Description=Convoy NFS Daemon
[Service]
User=root
WorkingDirectory=/tmp
ExecStartPre=/usr/bin/mkdir -p /opt/bin
ExecStartPre=/usr/bin/curl -L -o /opt/bin/convoy-nfs-service.sh https://github.com/Uber5/convoy-nfs-rancher/releases/download/v0.1.0/convoy-nfs-service.sh
ExecStartPre=/usr/bin/chmod 755 /opt/bin/convoy-nfs-service.sh
ExecStart=/opt/bin/convoy-nfs-service.sh "mount -t nfs -o rw 10.42.202.184:/gv1 /opt/convoy" /opt/convoy
[Install]
WantedBy=multi-user.target
```