Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG IMAGE
FROM ${IMAGE}
USER root
# The JVM trusts its own cacerts, fixed when the JDK was built, not the system store.
RUN apt-get update \
&& apt-get install -y --only-upgrade ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth \
"$JAVA_HOME/lib/security/cacerts" \
&& ! grep -q MIICTjCCAdOgAwIBAgIKPPYHqWhwDtqLhDAKBggqhkjOPQQDAzBr /etc/ssl/certs/ca-certificates.crt \
&& keytool -list -v -cacerts -storepass changeit > /tmp/cacerts.txt \
&& ! grep -q 'CN=emSign ECC Root CA - G3' /tmp/cacerts.txt \
&& rm /tmp/cacerts.txt
USER tomcat
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ affiliated with or endorsed by draw.io Ltd, which owns the draw.io name and logo

## Image and Container Runtime

The package runs draw.io's official image unmodified, with its own entrypoint, in one
subcontainer.
The package runs draw.io's official image, with its own entrypoint, in one
subcontainer. The root `Dockerfile` upgrades its CA store and rebuilds Java's `cacerts`
from it, a temporary layer that comes out once upstream ships an image whose Java no
longer trusts emSign ECC Root CA - G3.

| Property | Value |
| ------------- | ---------------------------------------------------------------- |
| Image | `jgraph/drawio`, upstream, unmodified |
| Image | `jgraph/drawio`, upstream, plus the CA-store layer |
| Architectures | x86_64, aarch64 |
| Entrypoint | upstream `docker-entrypoint.sh`, then Tomcat (`catalina.sh run`) |
| User | the image's `tomcat` user |
Expand Down
4 changes: 2 additions & 2 deletions UPDATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ a rebuild of the same version picks up the newer bytes.

## Applying the bump

1. Set `images.drawio.source.dockerTag` in `startos/manifest/index.ts` to
`jgraph/drawio:X.Y.Z`.
1. Set the `IMAGE` build arg of `images.drawio.source.dockerBuild` in
`startos/manifest/index.ts` to `jgraph/drawio:X.Y.Z`.
2. In `startos/versions/current.ts`, set `version` to `X.Y.Z:0` and rewrite the
release notes for the new range, linking the upstream releases page.
3. Check the upstream entrypoint for changed environment variables before
Expand Down
4 changes: 3 additions & 1 deletion startos/manifest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export const manifest = setupManifest({
volumes: ['startos'],
images: {
drawio: {
source: { dockerTag: 'jgraph/drawio:32.5.5' },
source: {
dockerBuild: { buildArgs: { IMAGE: 'jgraph/drawio:32.5.5' } },
},
arch: ['x86_64', 'aarch64'],
},
},
Expand Down
13 changes: 6 additions & 7 deletions startos/versions/current.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { IMPOSSIBLE, VersionInfo } from '@start9labs/start-sdk'

export const current = VersionInfo.of({
version: '32.5.5:0',
version: '32.5.5:1',
releaseNotes: {
en_US:
'Updated draw.io to 32.5.5. Replace All now works across All Pages, and the SQL, animation, WebCola, Freemind import, F5 rack, flow and edge connection plugins are removed. Full list of changes: https://github.com/jgraph/drawio/blob/v32.5.5/ChangeLog',
'Stops trusting certificates from a compromised certificate authority (eMudhra).',
es_ES:
'draw.io actualizado a 32.5.5. Reemplazar todo ahora funciona en Todas las páginas, y se eliminan los complementos SQL, animación, WebCola, importación de Freemind, rack F5, flujo y conexión de aristas. Lista completa de cambios: https://github.com/jgraph/drawio/blob/v32.5.5/ChangeLog',
'Deja de confiar en los certificados de una autoridad de certificación comprometida (eMudhra).',
de_DE:
'draw.io auf 32.5.5 aktualisiert. Alle ersetzen funktioniert jetzt über Alle Seiten, und die Plugins SQL, Animation, WebCola, Freemind-Import, F5-Rack, Flow und Kantenverbindung wurden entfernt. Vollständige Liste der Änderungen: https://github.com/jgraph/drawio/blob/v32.5.5/ChangeLog',
'Vertraut Zertifikaten einer kompromittierten Zertifizierungsstelle (eMudhra) nicht mehr.',
pl_PL:
'Zaktualizowano draw.io do 32.5.5. Zamień wszystkie działa teraz na Wszystkie strony, a wtyczki SQL, animacji, WebCola, importu Freemind, szafy F5, przepływu i połączeń krawędzi zostały usunięte. Pełna lista zmian: https://github.com/jgraph/drawio/blob/v32.5.5/ChangeLog',
fr_FR:
'draw.io mis à jour vers la version 32.5.5. Tout remplacer fonctionne désormais sur Toutes les pages, et les plugins SQL, animation, WebCola, import Freemind, baie F5, flux et connexion des liens sont supprimés. Liste complète des changements : https://github.com/jgraph/drawio/blob/v32.5.5/ChangeLog',
'Przestaje ufać certyfikatom przejętego urzędu certyfikacji (eMudhra).',
fr_FR: `Ne fait plus confiance aux certificats d'une autorité de certification compromise (eMudhra).`,
},
migrations: {
up: async ({ effects }) => {},
Expand Down
Loading