mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 04:32:15 +01:00
feat: support armhf & i386 architectures (#355)
This commit is contained in:
2
Makefile
2
Makefile
@@ -125,7 +125,7 @@ godoc: ## Run a webserver with Gotenberg godoc (go get golang.org/x/tools/cmd/go
|
|||||||
godoc -http=:6060
|
godoc -http=:6060
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: ## Build the Gotenberg's Docker image for linux/amd64 and linux/arm64 platforms, then push it to a Docker repository
|
release: ## Build the Gotenberg's Docker image for many platforms, then push it to a Docker repository
|
||||||
./scripts/release.sh \
|
./scripts/release.sh \
|
||||||
$(GOLANG_VERSION) \
|
$(GOLANG_VERSION) \
|
||||||
$(GOTENBERG_VERSION) \
|
$(GOTENBERG_VERSION) \
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ ARG NOTO_COLOR_EMOJI_VERSION
|
|||||||
ARG PDFTK_VERSION
|
ARG PDFTK_VERSION
|
||||||
|
|
||||||
# Script for installing either Google Chrome stable on amd64 architecture or
|
# Script for installing either Google Chrome stable on amd64 architecture or
|
||||||
# Chromium on arm64 architecture.
|
# Chromium on other architectures.
|
||||||
# See https://github.com/gotenberg/gotenberg/issues/328.
|
# See https://github.com/gotenberg/gotenberg/issues/328.
|
||||||
COPY build/install-chromium.sh /tmp/install-chromium.sh
|
COPY build/install-chromium.sh /tmp/install-chromium.sh
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ docker buildx build \
|
|||||||
--build-arg PDFTK_VERSION="$PDFTK_VERSION" \
|
--build-arg PDFTK_VERSION="$PDFTK_VERSION" \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
--platform linux/arm64 \
|
--platform linux/arm64 \
|
||||||
|
--platform linux/arm/v7 \
|
||||||
|
--platform linux/386 \
|
||||||
-t "$DOCKER_REPOSITORY/gotenberg:latest" \
|
-t "$DOCKER_REPOSITORY/gotenberg:latest" \
|
||||||
-t "$DOCKER_REPOSITORY/gotenberg:${SEMVER[0]}" \
|
-t "$DOCKER_REPOSITORY/gotenberg:${SEMVER[0]}" \
|
||||||
-t "$DOCKER_REPOSITORY/gotenberg:${SEMVER[0]}.${SEMVER[1]}" \
|
-t "$DOCKER_REPOSITORY/gotenberg:${SEMVER[0]}.${SEMVER[1]}" \
|
||||||
@@ -39,6 +41,8 @@ docker buildx build \
|
|||||||
--build-arg GOTENBERG_VERSION="$GOTENBERG_VERSION" \
|
--build-arg GOTENBERG_VERSION="$GOTENBERG_VERSION" \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
--platform linux/arm64 \
|
--platform linux/arm64 \
|
||||||
|
--platform linux/arm/v7 \
|
||||||
|
--platform linux/386 \
|
||||||
-t "$DOCKER_REPOSITORY/gotenberg:latest-cloudrun" \
|
-t "$DOCKER_REPOSITORY/gotenberg:latest-cloudrun" \
|
||||||
-t "$DOCKER_REPOSITORY/gotenberg:${SEMVER[0]}-cloudrun" \
|
-t "$DOCKER_REPOSITORY/gotenberg:${SEMVER[0]}-cloudrun" \
|
||||||
-t "$DOCKER_REPOSITORY/gotenberg:${SEMVER[0]}.${SEMVER[1]}-cloudrun" \
|
-t "$DOCKER_REPOSITORY/gotenberg:${SEMVER[0]}.${SEMVER[1]}-cloudrun" \
|
||||||
|
|||||||
Reference in New Issue
Block a user