Skip to content

Commit

Permalink
1)
Browse files Browse the repository at this point in the history
only build arm64
reverted this commit genuinetools#15
and functionality is not same as amd64
2)
make docker.sock hunting optional
include genuinetools#25
  • Loading branch information
patrickdung committed Jan 27, 2022
1 parent 916c9a8 commit 157feb6
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 761 deletions.
1 change: 0 additions & 1 deletion .goosarch
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
linux/amd64
linux/arm64
30 changes: 15 additions & 15 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ builds:
goos:
- linux
goarch:
- amd64
#- amd64
- arm64
dockers:
# - image_templates: ["ghcr.io/patrickdung/amicontained-build/:{{ .Version }}"]
- image_templates: ["ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-amd64"]
use: buildx
dockerfile: Dockerfile-build
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/genuinetools/amicontained
- --label=org.opencontainers.image.source=https://github.com/patrickdung/amicontained-build
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
#- image_templates: ["ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-amd64"]
# use: buildx
# dockerfile: Dockerfile-build
# build_flag_templates:
# - --platform=linux/amd64
# - --label=org.opencontainers.image.title={{ .ProjectName }}
# - --label=org.opencontainers.image.description={{ .ProjectName }}
# - --label=org.opencontainers.image.url=https://github.com/genuinetools/amicontained
# - --label=org.opencontainers.image.source=https://github.com/patrickdung/amicontained-build
# - --label=org.opencontainers.image.version={{ .Version }}
# - --label=org.opencontainers.image.created={{ .Date }}
# - --label=org.opencontainers.image.revision={{ .FullCommit }}
# - --label=org.opencontainers.image.licenses=MIT
- image_templates: ["ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-arm64"]
use: buildx
dockerfile: Dockerfile-build
Expand All @@ -38,7 +38,7 @@ dockers:
docker_manifests:
- name_template: ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}
image_templates:
- ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-amd64
# - ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-amd64
- ghcr.io/patrickdung/amicontained-build/:{{ .Tag }}-arm64
nfpms:
- maintainer: https://github.com/patrickdung/amicontained-build
Expand Down
7 changes: 5 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# amicontained-build

- This repo is experimental. It aims to build working containers for ARM64.
Use it at your own risk.
- This repo is experimental.
- It aims to build ARM64 containers for https://github.com/genuinetools/amicontained/[amicontained]
- 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.
This repo reverted the comment so the checking of blocked seccomp function does not work.
- Use it at your own risk.
Loading

0 comments on commit 157feb6

Please sign in to comment.