Skip to content

Commit 157feb6

Browse files
committed
1)
only build arm64 reverted this commit genuinetools#15 and functionality is not same as amd64 2) make docker.sock hunting optional include genuinetools#25
1 parent 916c9a8 commit 157feb6

File tree

4 files changed

+34
-761
lines changed

4 files changed

+34
-761
lines changed

.goosarch

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
linux/amd64
21
linux/arm64

.goreleaser.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ builds:
55
goos:
66
- linux
77
goarch:
8-
- amd64
8+
#- amd64
99
- arm64
1010
dockers:
1111
# - image_templates: ["ghcr.io/patrickdung/amicontained-build/:{{ .Version }}"]
12-
- image_templates: ["ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-amd64"]
13-
use: buildx
14-
dockerfile: Dockerfile-build
15-
build_flag_templates:
16-
- --platform=linux/amd64
17-
- --label=org.opencontainers.image.title={{ .ProjectName }}
18-
- --label=org.opencontainers.image.description={{ .ProjectName }}
19-
- --label=org.opencontainers.image.url=https://github.com/genuinetools/amicontained
20-
- --label=org.opencontainers.image.source=https://github.com/patrickdung/amicontained-build
21-
- --label=org.opencontainers.image.version={{ .Version }}
22-
- --label=org.opencontainers.image.created={{ .Date }}
23-
- --label=org.opencontainers.image.revision={{ .FullCommit }}
24-
- --label=org.opencontainers.image.licenses=MIT
12+
#- image_templates: ["ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-amd64"]
13+
# use: buildx
14+
# dockerfile: Dockerfile-build
15+
# build_flag_templates:
16+
# - --platform=linux/amd64
17+
# - --label=org.opencontainers.image.title={{ .ProjectName }}
18+
# - --label=org.opencontainers.image.description={{ .ProjectName }}
19+
# - --label=org.opencontainers.image.url=https://github.com/genuinetools/amicontained
20+
# - --label=org.opencontainers.image.source=https://github.com/patrickdung/amicontained-build
21+
# - --label=org.opencontainers.image.version={{ .Version }}
22+
# - --label=org.opencontainers.image.created={{ .Date }}
23+
# - --label=org.opencontainers.image.revision={{ .FullCommit }}
24+
# - --label=org.opencontainers.image.licenses=MIT
2525
- image_templates: ["ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-arm64"]
2626
use: buildx
2727
dockerfile: Dockerfile-build
@@ -38,7 +38,7 @@ dockers:
3838
docker_manifests:
3939
- name_template: ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}
4040
image_templates:
41-
- ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-amd64
41+
# - ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-amd64
4242
- ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-arm64
4343
nfpms:
4444
- maintainer: https://github.com/patrickdung/amicontained-build

README.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# amicontained-build
22

3-
- This repo is experimental. It aims to build working containers for ARM64.
4-
Use it at your own risk.
3+
- This repo is experimental.
4+
- It aims to build ARM64 containers for https://github.com/genuinetools/amicontained/[amicontained]
5+
- Due to https://github.com/genuinetools/amicontained/pull/15/commits[adding the checking seccomp filter function], the arm64 build is not working for the offical repo >=0.46.
6+
This repo reverted the comment so the checking of blocked seccomp function does not work.
7+
- Use it at your own risk.

0 commit comments

Comments
 (0)