Skip to content

Commit

Permalink
Merge branch 'main' into updatecli_d703d803ec0ea242b66ee372acf214fcd4…
Browse files Browse the repository at this point in the history
…abade946cf14232f44924688be4daf
  • Loading branch information
dduportal authored Jan 16, 2024
2 parents cd3b59b + 28344a0 commit 7014b4d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
36 changes: 23 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Golang version defined in https://github.com/kaishuu0123/erd-go/blob/${ERD_VERSION}/go.mod#L3
ARG ERD_GOLANG_BUILDER_TAG=1.15-alpine
ARG A2S_GOLANG_BUILDER_TAG=1.20-alpine3.18
ARG alpine_version=3.18.5
ARG alpine_version=3.19.0
FROM alpine:${alpine_version} AS base

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down Expand Up @@ -69,7 +69,6 @@ RUN apk add --no-cache \
openjdk17-jre \
python3 \
py3-cairo \
py3-pillow \
py3-setuptools \
ruby-bigdecimal \
# Required for asciidoctor-epub
Expand Down Expand Up @@ -134,19 +133,30 @@ RUN apk add --no-cache --virtual .rubymakedepends \
"asciidoctor-reducer:${ASCIIDOCTOR_REDUCER_VERSION}" \
&& apk del -r --no-cache .rubymakedepends

# Specific pipx environement variables to ensure binaries (and docs, etc.) are available for all users
# See https://github.com/pypa/pipx/blob/main/docs/installation.md#installation-options
ENV PIPX_HOME=/opt/pipx
ENV PIPX_BIN_DIR=/usr/local/bin
ENV PIPX_MAN_DIR=/usr/local/share/man

## Always use the latest dependencies versions available for the current Alpine distribution
# hadolint ignore=DL3018,DL3013
RUN apk add --no-cache --virtual .pythonmakedepends \
build-base \
freetype-dev \
python3-dev \
py3-pip \
&& pip3 install --no-cache-dir \
actdiag \
'blockdiag[pdf]' \
nwdiag \
seqdiag \
&& apk del -r --no-cache .pythonmakedepends
RUN apk add --no-cache \
pipx \
py3-pip \
&& apk add --no-cache --virtual .pythonmakedepends \
build-base \
freetype-dev \
python3-dev \
&& for pipx_app in \
actdiag \
'blockdiag[pdf]' \
nwdiag \
seqdiag \
;do pipx install --system-site-packages --pip-args='--no-cache-dir' "${pipx_app}"; \
# Pin pillow to 9.5.0 as per https://github.com/asciidoctor/docker-asciidoctor/pull/403#issuecomment-1894323894
pipx runpip "$(echo "$pipx_app" | cut -d'[' -f1)" install Pillow==9.5.0; done \
&& apk del -r --no-cache .pythonmakedepends

COPY --from=a2s-builder /app/a2s /usr/local/bin/
COPY --from=erd-builder /app/erd-go /usr/local/bin/
Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:ALPINE_VERSION: 3.18.5
:ALPINE_VERSION: 3.19.0
:ASCIIDOCTOR_VERSION: 2.0.20
:ASCIIDOCTOR_CONFLUENCE_VERSION: 0.0.2
:ASCIIDOCTOR_PDF_VERSION: 2.3.10
Expand Down
2 changes: 1 addition & 1 deletion tests/asciidoctor.bats
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bats

TMP_GENERATION_DIR="${BATS_TEST_DIRNAME}/tmp"
ALPINE_VERSION=3.18.5
ALPINE_VERSION=3.19.0
ASCIIDOCTOR_VERSION=2.0.20
ASCIIDOCTOR_CONFLUENCE_VERSION=0.0.2
ASCIIDOCTOR_PDF_VERSION=2.3.10
Expand Down

0 comments on commit 7014b4d

Please sign in to comment.