MoinMoin in Production on CoreOS - Part5: Data Volume Container
Posted on
Previously I deployed plain MoinMoin CoreOS instance on IDCF Cloud. Next thing should I do is to serve with data volume contaner. Without fleet it is easy to backup and restore using docker-backup. Considering how difficult it is to write fleet unit files for me, it would take time to practice. I think I'm ready to face the day.
Previously I deployed plain MoinMoin CoreOS instance on IDCF Cloud. Next thing should I do is to serve with data volume contaner. Without fleet it is easy to backup and restore using docker-backup. Considering how difficult it is to write fleet unit files for me, it would take time to practice. I think I’m ready to face the day.
ExecStartPre directive
First thing that comes to my mind is to use ExecStartPre directive. In the ExecStartPre directive it could be started data volume container.
ExecStartPre=/usr/bin/docker pull busybox ExecStartPre=/usr/bin/docker run -v /usr/local/share/moin/data/pages --name wiki-vol busybox true ExecStart=/usr/bin/docker run --name moin --volumes-from wiki-vol -p 80:80 10.1.1.32:5000/moin
I wonder what I should do to restore MoinMoin backuped tar.gz into data volume container?
moin.service
I prepended many ExecStartPre directives preparing data volume container. Fortunately this attempt was successful.