Skip to content

digabi/digabi2-drawio

Repository files navigation

digabi2-drawio

Dockerized drawio

Development

Run the following commands to initialize the development environment.

git submodule init
git submodule update

The development flow is roughly as follows

  1. Make your changes
  2. To test your changes, rebuild and tag the docker image by running docker build -t "863419159770.dkr.ecr.eu-north-1.amazonaws.com/drawio:v$(npm pkg get version | tr -d \")" .
  3. Restart the digabi2 docker compose to make sure that the new image is used.

Development release

To release a new development version of draw.io, run ./dev-release.sh <major|minor|patch|<semver>>. This will create a new git tag, and build and push a Docker image with that tag into our private ECR. Building and pushing to ECR happens in Github Actions. You can follow the progress of the workflow here. Once built and pushed, you can update the draw.io version apps-dev.json in the digabi2 repository to point to the new tag.

Release

To promote a development version of the image to production (i.e. release it to our public ECR) run ./release.sh. Choose the tag you want to promote to production, which will trigger a Github Actions workflow. The workflow will push the corresponding private image to our public ECR. You can follow the workflow progress here. After this has completed, update the draw.io version in apps-prod.json in the digabi2 repository to point to the newly released image tag.