Dockerized http://mediagoblin.org/ (forked from dachary/mediagoblin-docker) for testing translation in development version
Loic Dachary bf3e793a90 in Dokku save persistent data | 8 lat temu | |
---|---|---|
Dockerfile | 8 lat temu | |
LICENSE | 8 lat temu | |
README.md | 8 lat temu | |
docker-entrypoint.sh | 8 lat temu | |
docker-nginx.conf | 8 lat temu |
All data are lost when the container is stopped.
sudo docker run -p 8080:80 dachary/mediagoblin
www-browser http://localhost:8080
The default user is admin, password admin.
The image is built locally, there is no dependency to the Docker registry. All data are lost when the container is stopped.
git clone https://notabug.org/dachary/mediagoblin-docker.git
sudo docker build -t mediagoblin-demo mediagoblin-docker
sudo docker run -p 8080:80 mediagoblin-docker
www-browser http://localhost:8080
The default user is admin, password admin.
The data is preserved in /srv/mediagoblin.
git clone https://notabug.org/dachary/mediagoblin-docker.git
sudo docker build -t mediagoblin-demo mediagoblin-docker
sudo mkdir /srv/mediagoblin
sudo docker --name mediagoblin run -p 8080:80 \
-v /srv/mediagoblin:/var/lib/mediagoblin \
mediagoblin-docker
www-browser http://localhost:8080
The default user is admin, password admin.
After installing Dokku, follow the Deploying to Dokku instructions to create the MediaGoblin v0.8.1 app. The following example is based on Dokku installed at gmg.the.re and creates http://loic.gmg.the.re/.
dokku apps:create loic
mkdir /srv/loic
dokku docker-options:add loic deploy "-v /srv/loic:/var/lib/mediagoblin"
git clone -b v0.8.1 https://notabug.org/dachary/mediagoblin-docker.git
cd mediagoblin-docker
git remote add dokku dokku@gmg.the.re:loic
git push dokku v0.8.1:master
www-browser http://loic.gmg.the.re/
To upgrade, remove the app and create a new one after pulling the desired MediaGoblin version.
dokku --force apps:destroy loic
git fetch origin
git checkout -b v0.9.0 v0.9.0
git push dokku v0.9.0:master
If the data is preserved in /srv/mediagoblin as described above, upgrade by stopping the container and rebulding the image with the latest stable version.
sudo docker stop mediagoblin
rm -fr mediagoblin-docker
git clone https://notabug.org/dachary/mediagoblin-docker.git
sudo docker build -t mediagoblin-demo mediagoblin-docker
sudo docker --name mediagoblin run -p 8080:80 \
-v /srv/mediagoblin:/var/lib/mediagoblin \
mediagoblin-docker
www-browser http://localhost:8080
The git repository has one branch per stable version. The master branch is always the latest stable, not the MediaGoblin development branch. This is to make it so PaaS like Dokku get the latest stable by default instead of the unstable development version.
Publish a new version:
version=0.8.1
git checkout -b v$version v$version
docker login
docker build -t dachary/mediagoblin:$version .
docker push dachary/mediagoblin:$version
Publish the latest:
docker build -t dachary/mediagoblin .
docker push dachary/mediagoblin