Operations and updates
| Command | Effect |
|---|---|
make up |
Starts the container in the background. |
make down |
Stops the container. |
make restart |
Restarts the container. |
make logs |
Follows the logs. |
make pull |
Pulls the latest published image. |
make build |
Builds the image locally, tagged :latest and :<VERSION>. |
make push |
Publishes :<VERSION> then :latest to the registry (requires docker login). |
make release |
make build then make push. |
make clean |
Stops the container and removes any volumes. |
make test-build |
Builds the app without Docker (npm run build). |
make dev |
Starts the development server. |
The default published image is hub.unionlibertaireanarchiste.org/militant/militant-visio. To publish elsewhere: make release IMAGE=registry.example.org/you/militant-visio. To run another image: MILITANT_VISIO_IMAGE=... make up.
Updating and publishing the image
Section titled “Updating and publishing the image”Updating an instance
Section titled “Updating an instance”git pullmake pullmake upPublishing a new version (maintainers)
Section titled “Publishing a new version (maintainers)”- Update the number in
VERSION,public/version.txtandpackage.json, plusCHANGELOG.md,RELEASE_NOTES.mdand thedocs/assets/badges/version.svgbadge. - Check:
npm testthennpm run build. - Log in to the registry:
docker login hub.unionlibertaireanarchiste.org. - Publish:
make release. The:<VERSION>and:latesttags point to the same image.