Skip to content

Commit

Permalink
Merge pull request #319 from asciidoctor/updatecli_76bad28f077b4b3950…
Browse files Browse the repository at this point in the history
…821c3d4ca2a66f6d63710041462e2a9c79e17f06629a7c

Bump Alpine Linux Version to 3.17.0
  • Loading branch information
dduportal authored Jan 5, 2023
2 parents 58e7a01 + bf5568f commit 5359054
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG alpine_version=3.16.3
ARG alpine_version=3.17.0
FROM alpine:${alpine_version} AS base

ARG asciidoctor_version=2.0.18
Expand Down Expand Up @@ -46,10 +46,10 @@ RUN apk add --no-cache ruby \
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Haskell build for: erd
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Alpine 3.16 is the last known working version for building erd (dynamic linking)
FROM alpine:3.16 AS erd-builder

FROM base AS build-haskell

## Always use the latest Cabal (and dependencies) versions available for the current Alpine distribution
## Always use the latest dependencies available for the current Alpine distribution
# hadolint ignore=DL3018
RUN apk add --no-cache \
alpine-sdk \
Expand All @@ -70,7 +70,6 @@ RUN apk add --no-cache \
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Final image
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

FROM main-minimal AS main
RUN echo "assemble comprehensive main image" # keep here to help --cache-from along

Expand Down Expand Up @@ -139,7 +138,7 @@ RUN apk add --no-cache \
seqdiag \
&& apk del -r --no-cache .pythonmakedepends

COPY --from=build-haskell root/.cabal/bin/erd /bin/
COPY --from=erd-builder /root/.cabal/bin/erd /bin/

WORKDIR /documents
VOLUME /documents
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ PANDOC_VERSION ?= 2.10.1

all: build test README

build: asciidoctor-minimal.build build-haskell.build asciidoctor.build
build: asciidoctor-minimal.build erd-builder.build asciidoctor.build

%.build:
docker buildx bake $(*) --load --set '*.cache-to=""' --print
docker buildx bake $(*) --load --set '*.cache-to=""'

docker-cache: asciidoctor-minimal.docker-cache build-haskell.docker-cache asciidoctor.docker-cache
docker-cache: asciidoctor-minimal.docker-cache erd-builder.docker-cache asciidoctor.docker-cache

%.docker-cache:
docker buildx bake $(*) --print
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.16.3
:ALPINE_VERSION: 3.17.0
:ASCIIDOCTOR_VERSION: 2.0.18
:ASCIIDOCTOR_CONFLUENCE_VERSION: 0.0.2
:ASCIIDOCTOR_PDF_VERSION: 2.3.4
Expand Down
10 changes: 5 additions & 5 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ variable "IMAGE_NAME" {
group "all" {
targets = [
"asciidoctor-minimal",
"build-haskell",
"erd-builder",
"asciidoctor"
]
}
Expand All @@ -31,15 +31,15 @@ target "asciidoctor-minimal" {
}

// This image is only used for intermediate steps
target "build-haskell" {
target "erd-builder" {
dockerfile = "Dockerfile"
context = "."
target = "build-haskell"
target = "erd-builder"
cache-from = [
"${CACHE_REGISTRY_PREFIX}/build-haskell:cache",
"${CACHE_REGISTRY_PREFIX}/erd-builder:cache",
]
cache-to = [
"${CACHE_REGISTRY_PREFIX}/build-haskell:cache",
"${CACHE_REGISTRY_PREFIX}/erd-builder:cache",
]
}

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.16.3
ALPINE_VERSION=3.17.0
ASCIIDOCTOR_VERSION=2.0.18
ASCIIDOCTOR_CONFLUENCE_VERSION=0.0.2
ASCIIDOCTOR_PDF_VERSION=2.3.4
Expand Down

0 comments on commit 5359054

Please sign in to comment.