sbrl / Pepperminty-Wiki

A wiki in a box
https://peppermint.mooncarrot.space/
Mozilla Public License 2.0
178 stars 20 forks source link

Docker Release #161

Closed sunjam closed 5 years ago

sunjam commented 5 years ago

Hi, I'm wondering if there is a docker version of this wiki available.

sbrl commented 5 years ago

Hey, @sunjam!

Hey! As I mentioned in the Gitter chat, there isn't a docker release available yet. It's certainly something we can work on! I don't have much experience with Docker yet. Can you help, or point me towards some documentation?

Also, what's the use-case for a Dockerised version, out of curiosity?

SQL-enwiki commented 5 years ago

Agreed with not sure about what the use-case here would be, but - done. See: https://cloud.docker.com/repository/registry-1.docker.io/sqlatenwiki/peppermintywiki

sbrl commented 5 years ago

Hey, thanks @SQL-enwiki! After creating a Docker Hub account, that link loaded for me. How do I see the source code for that though? I can't seem to find a link anywhere.

SQL-enwiki commented 5 years ago

Hey, thanks @SQL-enwiki! After creating a Docker Hub account, that link loaded for me. How do I see the source code for that though? I can't seem to find a link anywhere.

Sure - here's the files I use, https://github.com/SQL-enwiki/peppermintydocker . I git clone peppermintywiki into ./webroot, and the update.sh script runs every day.

Most everything there is based on this guide: https://docs.docker.com/develop/develop-images/baseimages/

sbrl commented 5 years ago

Hey, awesome! Thanks for the hard work :-)

How do you suggest we make this the official Docker image? Shall I we put a link in the README?

sbrl commented 5 years ago

Just noticed that this pulls from master. Is there a way to use the latest release / tag?

Alternatively I can create a 'stable' branch that's always the latest release if need be. Need to look into some release automation there though.

sunjam commented 5 years ago

You could offer two docker options: Stable and Latest

sbrl commented 5 years ago

Sounds good!

For the stable one we can do something like this:

git checkout "$(git describe --abbrev=0 --tags)"

The only reason I bring it up is 'cause I occasionally leave master somewhat broken if I'm in the middle of something and don't have the time to finish it (currently working on interwiki links atm) :P

SQL-enwiki commented 5 years ago

I've got this sorted. There are two tags in the docker hub at the moment. One with the tag v0.17.1, and one tagged "master".

As more releases come out, it should auto-add the release version tag

sbrl commented 5 years ago

Awesome, thanks @SQL-enwiki :smiley_cat:

sbrl commented 5 years ago

I think we can safely close this issue for now.

Please open another one if there are any further issues :-)