Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Add Dockerfile to repository #389

Merged
merged 2 commits into from
Jul 29, 2013
Merged

Conversation

pstuifzand
Copy link

Add Dockerfile. This allows people to call docker build github.com/WardCunningham/Smallest-Federated-Wiki. This will build the image from which you can run the federated wiki software. It exposes port 1111 to a random port on the host.

Speedup don't install development and test gems in Dockerfile
@pstuifzand
Copy link
Author

It works at the moment for docker build github.com/pstuifzand/Smallest-Federated-Wiki. This is quite a bit easier than following the installation instructions from the Readme. At the moment it only creates a new server. It keeps the changes, but you should start from the later image not from the Dockerfile itself if you want to stop and restart the server.

WardCunningham added a commit that referenced this pull request Jul 29, 2013
Add Dockerfile to repository
@WardCunningham WardCunningham merged commit 8f6b801 into WardCunningham:master Jul 29, 2013
@WardCunningham
Copy link
Owner

Thanks for pointing out this capability and offering this config file.

Where would be a good place to host a sfw site using this mechanism? How would one install updates without losing the flat-file database?

@pstuifzand
Copy link
Author

I have to say that I'm still trying out Docker and learning about it. I thought it was really cool to see that it was so easy to create a Dockerfile for SFW. I was as easy as writing down the installation instructions.

I don't know about hosting. I used it locally on my home development machine. I guess that in the future it becomes easier to host it online.

At the moment the following seems to be how to save the flat-file database.

Starting docker run with the -v <dir> flag will make

a volume, which means that it will persist between starts of the container. In the newer releases there is also a "VOLUME" keyword for the Dockerfile which builds this into the image.

Rebuilding the image from GitHub will create an updated image and starting this new image with -volumes-from will use the volumes from an earlier container, as shown in this example: http://docs.docker.io/en/latest/examples/couchdb_data_volumes/

@pstuifzand
Copy link
Author

Not really. Docker is a great tool, but not quite there yet for me. I'd like to run it on Debian, but I would need to upgrade kernels to make the best use of it.

I only installed the wiki locally on my computer (running Ubuntu) to try it out a bit. I don't have a specific use for it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants