10 Commits
0.1.0 ... 0.2.0

Author SHA1 Message Date
acc2f9f6a6 build(version): bump version 0.1.0 → 0.2.0 2023-05-21 06:08:15 +00:00
Jon
323b5087cd Merge branch 'non-specific-development' into 'development'
chore: non specific development

See merge request nofusscomputing/projects/docker-buildx-qemu!4
2023-05-21 05:49:59 +00:00
Jon
e49f78f712 docs(readme): added usage within gitlab-ci
!4
2023-05-21 13:32:33 +09:30
Jon
d352f0e899 feat(build): use debian slim
!4
2023-05-21 02:42:21 +09:30
Jon
5f80d34f4e chore: cleanup
!4
2023-05-21 02:12:01 +09:30
Jon
692457da01 ci(gitlab-ci): update to current HEAD
!4
2023-05-21 02:01:15 +09:30
Jon
a00cfd60b8 ci: remove qemu from image
!4
2023-05-21 01:36:01 +09:30
Jon
698002d9f4 fix(qemu): segfault on arm no longer occurs
qemu was segfaulting with:
```
    Processing triggers for libc-bin (2.31-13+deb11u6) ...
    qemu: uncaught target signal 11 (Segmentation fault) - core dumped
    Segmentation fault (core dumped)
    qemu: uncaught target signal 11 (Segmentation fault) - core dumped
    Segmentation fault (core dumped)
    dpkg: error processing package libc-bin (--configure):
    installed libc-bin package post-installation script subprocess returned error exit status 139
    ```
so qemu was removed from the image

!4
2023-05-20 15:02:44 +09:30
Jon
8ddf6194c4 fix(docker): removed spt for armv7 and i386
docker-ce-cli not available for architecture

!4
2023-05-20 14:56:02 +09:30
Jon
06b65d9919 ci: update to current gitlab-ci project dev head
incorporates changes from nofusscomputing/projects/gitlab-ci!17

!4
2023-05-15 13:44:15 +09:30
7 changed files with 75 additions and 42 deletions

View File

@ -4,4 +4,4 @@ commitizen:
name: cz_conventional_commits
tag_format: $major.$minor.$patch$prerelease
update_changelog_on_bump: true
version: 0.1.0
version: 0.2.0

View File

@ -5,7 +5,7 @@ include:
ref: development
file:
- .gitlab-ci_common.yaml
- type/docker-image.gitlab-ci.yaml
- template/docker-image.gitlab-ci.yaml
variables:
@ -17,7 +17,14 @@ variables:
#JOB_STOP_GIT_PUSH_MIRROR: 'disable for testing'
#JOB_STOP_GITLAB_RELEASE: 'disable for testing'
DOCKER_IMAGE_BUILD_TARGET_PLATFORMS: "linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6"
DOCKER_IMAGE_BUILD_TARGET_PLATFORMS: "linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64,linux/arm/v7"
# Package docker-ce-cli is not available for:
# - linux/arm/v6
# - linux/386
DOCKER_IMAGE_PUBLISH_NAME: $CI_PROJECT_NAME
DOCKER_IMAGE_PUBLISH_REGISTRY: docker.io/nofusscomputing
DOCKER_IMAGE_PUBLISH_URL: https://hub.docker.com/r/nofusscomputing/$DOCKER_IMAGE_PUBLISH_NAME

View File

@ -1,3 +1,24 @@
## 0.2.0 (2023-05-21)
### Bug Fixes
- **qemu**: [698002d9](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/commit/698002d9f48f7ca1f033aeec2fc848646f177e6d) - segfault on arm no longer occurs [ [!4](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/merge_requests/4) ]
- **docker**: [8ddf6194](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/commit/8ddf6194c41a0f0991d7a66b9730f77c64c99c68) - removed spt for armv7 and i386 [ [!4](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/merge_requests/4) ]
### Continious Integration
- **gitlab-ci**: [692457da](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/commit/692457da01e5efa149ddbe16a3415880e3b60beb) - update to current HEAD [ [!4](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/merge_requests/4) ]
- [a00cfd60](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/commit/a00cfd60b887a0354638c97608b513f4cdafacd7) - remove qemu from image [ [!4](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/merge_requests/4) ]
- [06b65d99](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/commit/06b65d9919a6f0007cc347a75de6ab805635a4a9) - update to current gitlab-ci project dev head [ [!17](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/merge_requests/17) [!4](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/merge_requests/4) ]
### Documentaton / Guides
- **readme**: [e49f78f7](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/commit/e49f78f712ea84f7d411e8916b1a7f8b87b26e22) - added usage within gitlab-ci [ [!4](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/merge_requests/4) ]
### Features
- **build**: [d352f0e8](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/commit/d352f0e899d5da43a23ebe25167718f947149cf4) - use debian slim [ [!4](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu/-/merge_requests/4) ]
## 0.1.0 (2023-05-15)
### Bug Fixes

View File

@ -1,37 +0,0 @@
FROM debian
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update && apt --fix-broken install \
&& apt install -y libc-bin locales-all
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
git \
gnupg2 \
software-properties-common \
python3 \
python3-pip || true
# Install Docker and qemu
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
add-apt-repository "deb https://download.docker.com/linux/debian $(lsb_release -cs) stable" && \
apt-get update && apt-get install -y \
docker-buildx-plugin \
docker-ce-cli \
binfmt-support \
qemu-user-static || true
# Write version file
RUN printf "$(docker --version | perl -pe 's/^.*\s(\d+\.\d+\.\d+.*),.*$/$1/')_$(docker buildx version | perl -pe 's/^.*v?(\d+\.\d+\.\d+).*$/$1/')" > /version && \
cat /version
RUN echo "[DEBUG] why arm64 reports no docker 'which docker'=[$(which docker)]"

View File

@ -28,7 +28,7 @@ This project is hosted on [gitlab](https://gitlab.com/nofusscomputing/projects/d
**Development Branch**
![Gitlab build status - development](https://img.shields.io/badge/dynamic/json?color=ff782e&label=Build&query=0.status&url=https%3A%2F%2Fgitlab.com%2Fapi%2Fv4%2Fprojects%2F45926238%2Fpipelines%3Fref%3Ddevelopment&logo=gitlab&style=plastic) ![branch release version](https://img.shields.io/badge/dynamic/yaml?color=ff782e&logo=gitlab&style=plastic&label=Release&query=%24.commitizen.version&url=https%3A//gitlab.com/nofusscomputing/projects/docker-buildx-qemu-%2Fraw%2Fdevelopment%2F.cz.yaml)
![Gitlab build status - development](https://img.shields.io/badge/dynamic/json?color=ff782e&label=Build&query=0.status&url=https%3A%2F%2Fgitlab.com%2Fapi%2Fv4%2Fprojects%2F45926238%2Fpipelines%3Fref%3Ddevelopment&logo=gitlab&style=plastic) ![branch release version](https://img.shields.io/badge/dynamic/yaml?color=ff782e&logo=gitlab&style=plastic&label=Release&query=%24.commitizen.version&url=https%3A//gitlab.com/nofusscomputing/projects/docker-buildx-qemu%2F-%2Fraw%2Fdevelopment%2F.cz.yaml)
----
<br>
@ -45,6 +45,23 @@ links:
> This is a fork of https://gitlab.com/gdunstone/docker-buildx-qemu, which appears to be a fork of a fork. anyhow, updates are required. Credit to original and derivitive devs/contributors for getting it to the stage they had!!
This docker image enables building of multi-architecture docker builds. It's designed to run within a CI environment.
To use this image within Gitlab CI/CD Pipelines the following as a minimum is required within your `gitlab-ci.yaml` file, specifically the `before_script` section of your `docker buildx build` job:
``` yaml
before_script:
# see: https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/1861
# on why this `docker run` is required. without it multiarch support doesnt work.
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- update-binfmts --display
- update-binfmts --enable # Important: Ensures execution of other binary formats is enabled in the kernel
- docker buildx create --driver=docker-container --driver-opt image=moby/buildkit:v0.11.6 --use
- docker buildx inspect --bootstrap
```
When the above is added to the `before_script` section of the docker container build job, Gitlab CI has been initialized for multi-architecture builds.
## Contributing
All contributions for this project must conducted from [Gitlab](https://gitlab.com/nofusscomputing/projects/docker-buildx-qemu).

25
dockerfile Normal file
View File

@ -0,0 +1,25 @@
FROM --platform=$TARGETPLATFORM debian:11.7-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
git \
gnupg2 \
software-properties-common \
python3 \
python3-pip
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
add-apt-repository "deb https://download.docker.com/linux/debian $(lsb_release -cs) stable" && \
add-apt-repository "deb http://deb.debian.org/debian bullseye-backports main" && \
apt-get update && apt-get install -y \
docker-buildx-plugin \
docker-ce-cli \
binfmt-support=2.2.1-1+deb11u1 \
qemu-user-static=1:7.2+dfsg-7~bpo11+1