Skip to content

Commit

Permalink
Use symbolator fork
Browse files Browse the repository at this point in the history
  • Loading branch information
zebreus committed Jun 10, 2023
1 parent 0645b54 commit 42b30d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ asciidoc:
seqdiag-version: 3.0.0
structurizr-version: 1.30.1
svgbob-version: 0.7.0
symbolator-version: 1.0.2
symbolator-version: 1.2.0
umlet-version: 15.1
vega-version: 5.24.0
vegalite-version: 5.7.0
Expand Down
16 changes: 7 additions & 9 deletions server/ops/docker/jdk11-jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,7 @@ FROM yuzutech/kroki-builder-erd:0.2.1.0 AS kroki-builder-static-erd
FROM ubuntu:jammy AS kroki-builder-static-symbolator

# Build from forked source because upstream is broken for the latest python3 versions
# The forks are also unmaintained, but at least they work
# Should not be a problem as symbolator is done
ARG SYMBOLATOR_SOURCE=git+https://github.com/hdl/pyHDLParser@e1153ace8ca1e25f9fb53350c41058ef8eb8dacf
ARG HDL_PARSER_SOURCE=git+https://github.com/hdl/symbolator.git@3f02d907d6beb0f4d034d396d462892388d4b511
ARG SYMBOLATOR_SOURCE=git+https://github.com/zebreus/symbolator.git@v1.2.0

RUN apt-get update && apt-get install --no-install-recommends --yes \
git \
Expand All @@ -177,13 +174,14 @@ RUN apt-get update && apt-get install --no-install-recommends --yes \

WORKDIR /build

RUN pip install --upgrade \
${SYMBOLATOR_SOURCE} \
${HDL_PARSER_SOURCE} \
nuitka
# Install latest pip and setuptools
RUN python3 -m pip install --upgrade pip setuptools
RUN python3 -m pip install --upgrade nuitka
# Install symbolator
RUN python3 -m pip install --upgrade ${SYMBOLATOR_SOURCE}

# Use nuitka to compile a static binary so we dont need python in the final image
RUN python3 -m nuitka --onefile /usr/local/bin/symbolator --include-module=gi.overrides.Pango --include-module=gi._gi_cairo
RUN python3 -m nuitka --onefile `which symbolator` --include-module=gi.overrides.Pango --include-module=gi._gi_cairo

## Pikchr
FROM ubuntu:jammy AS kroki-builder-static-pikchr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public SourceDecoder getSourceDecoder() {

@Override
public String getVersion() {
return "1.0.2";
return "1.2.0";
}

@Override
Expand Down

0 comments on commit 42b30d4

Please sign in to comment.