Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a blog post for v1.10 #3346

Merged
merged 18 commits into from
Sep 15, 2023
Merged
Prev Previous commit
Next Next commit
Build arm/v6 images
  • Loading branch information
AlekSi committed Sep 14, 2023
commit 2c66762de6da90653d5a8515c37ac73e964a2041
6 changes: 3 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ tasks:
- task: docker-build
vars:
FILE: all-in-one
PLATFORM: linux/amd64,linux/arm64 # no mongosh for arm/v7
PLATFORM: linux/amd64,linux/arm64 # no mongosh for arm/v6 and arm/v7
OUTPUT: type=image,push=true

# TODO https://github.com/FerretDB/FerretDB/issues/2212
Expand All @@ -509,7 +509,7 @@ tasks:
- task: docker-build
vars:
FILE: development
PLATFORM: linux/amd64,linux/arm64,linux/arm/v7
PLATFORM: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
OUTPUT: type=image,push=true

# TODO https://github.com/FerretDB/FerretDB/issues/2212
Expand All @@ -519,7 +519,7 @@ tasks:
- task: docker-build
vars:
FILE: production
PLATFORM: linux/amd64,linux/arm64,linux/arm/v7
PLATFORM: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
OUTPUT: type=image,push=true

packages:
Expand Down
5 changes: 3 additions & 2 deletions build/docker/all-in-one.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ARG LABEL_COMMIT

# build stage

FROM ghcr.io/ferretdb/golang:1.21.1-1 AS all-in-one-build
FROM ghcr.io/ferretdb/golang:1.21.1-2 AS all-in-one-build

ARG LABEL_VERSION
ARG LABEL_COMMIT
Expand All @@ -38,12 +38,13 @@ RUN --mount=type=cache,target=/cache \
ENV GOPROXY https://proxy.golang.org

ENV CGO_ENABLED=1
ENV GOARM=7

# do not raise it without providing a v1 build because v2+ is problematic
# for some virtualization platforms and older hardware
ENV GOAMD64=v1

# leave GOARM unset for autodetection

# TODO https://github.com/FerretDB/FerretDB/issues/2170
# That command could be run only once by using a separate stage;
# see https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
Expand Down
5 changes: 3 additions & 2 deletions build/docker/development.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ARG LABEL_COMMIT

# build stage

FROM ghcr.io/ferretdb/golang:1.21.1-1 AS development-build
FROM ghcr.io/ferretdb/golang:1.21.1-2 AS development-build

ARG LABEL_VERSION
ARG LABEL_COMMIT
Expand All @@ -38,12 +38,13 @@ RUN --mount=type=cache,target=/cache \
ENV GOPROXY https://proxy.golang.org

ENV CGO_ENABLED=1
ENV GOARM=7

# do not raise it without providing a v1 build because v2+ is problematic
# for some virtualization platforms and older hardware
ENV GOAMD64=v1

# leave GOARM unset for autodetection

# TODO https://github.com/FerretDB/FerretDB/issues/2170
# That command could be run only once by using a separate stage;
# see https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
Expand Down
5 changes: 3 additions & 2 deletions build/docker/production.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ARG LABEL_COMMIT

# build stage

FROM ghcr.io/ferretdb/golang:1.21.1-1 AS production-build
FROM ghcr.io/ferretdb/golang:1.21.1-2 AS production-build

ARG LABEL_VERSION
ARG LABEL_COMMIT
Expand All @@ -36,12 +36,13 @@ RUN --mount=type=cache,target=/cache \
ENV GOPROXY https://proxy.golang.org

ENV CGO_ENABLED=0
ENV GOARM=7

# do not raise it without providing a v1 build because v2+ is problematic
# for some virtualization platforms and older hardware
ENV GOAMD64=v1

# leave GOARM unset for autodetection

# TODO https://github.com/FerretDB/FerretDB/issues/2170
# That command could be run only once by using a separate stage;
# see https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
Expand Down