Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Sleepy Data Container
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael A. Smith committed Oct 31, 2014
1 parent f24dd84 commit cc9a66c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -49,6 +49,5 @@ The file share container creates a CIFS share for the Magento directory.

## Known issues

- `exec: "echo": executable file not found in $PATH`: see [Fig issue 514](https://github.com/docker/fig/issues/514). In short: don't restart the data container, you don't need to. (Just `fig up <name>` the particular service you need to restart.)
- Speed: The CIFS share is a little slow. I tried to set up an NFS share, but couldn't get it working. Taking pull requests for faster shares.
- Disappearing data: Don't panic - if you try something like `docker cp` or `docker export` on the _data_ container it will appear unchanged. The data is safe (in fact, the data is still on the host machine even if you delete the container, as long as you don't `docker rm -v` it.) Try something like `docker run --volumes-from magento_data_1 debian tar x /srv/magento > export.tar` to get a snapshot of your data. (Although it might be easier just to use the share.)
10 changes: 7 additions & 3 deletions data/Dockerfile
Expand Up @@ -2,7 +2,11 @@
FROM scratch
MAINTAINER Michael A. Smith <msmith3@ebay.com>
COPY . /
# Hack for https://github.com/docker/fig/pull/517
COPY true-asm /bin/echo
VOLUME ["/srv/magento", "/var/lib/mysql"]
# From https://github.com/tianon/dockerfiles/tree/master/true
# All credit to them for the tiny executable
ENTRYPOINT ["/true-asm"]
# Executables this small
# Thanks to tianon
# Haiku by way of credit
# https://github.com/tianon/dockerfiles
ENTRYPOINT ["/sleeping-beauty"]
Binary file added data/sleeping-beauty
Binary file not shown.

0 comments on commit cc9a66c

Please sign in to comment.