-
-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[client] Add rootless container and fix client routes in netstack mode (
- Loading branch information
Showing
5 changed files
with
116 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,6 +179,51 @@ dockers: | |
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "[email protected]" | ||
|
||
- image_templates: | ||
- netbirdio/netbird:{{ .Version }}-rootless-amd64 | ||
ids: | ||
- netbird | ||
goarch: amd64 | ||
use: buildx | ||
dockerfile: client/Dockerfile-rootless | ||
build_flag_templates: | ||
- "--platform=linux/amd64" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "[email protected]" | ||
- image_templates: | ||
- netbirdio/netbird:{{ .Version }}-rootless-arm64v8 | ||
ids: | ||
- netbird | ||
goarch: arm64 | ||
use: buildx | ||
dockerfile: client/Dockerfile-rootless | ||
build_flag_templates: | ||
- "--platform=linux/arm64" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "[email protected]" | ||
- image_templates: | ||
- netbirdio/netbird:{{ .Version }}-rootless-arm | ||
ids: | ||
- netbird | ||
goarch: arm | ||
goarm: 6 | ||
use: buildx | ||
dockerfile: client/Dockerfile-rootless | ||
build_flag_templates: | ||
- "--platform=linux/arm" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "[email protected]" | ||
|
||
- image_templates: | ||
- netbirdio/relay:{{ .Version }}-amd64 | ||
ids: | ||
|
@@ -377,6 +422,18 @@ docker_manifests: | |
- netbirdio/netbird:{{ .Version }}-arm | ||
- netbirdio/netbird:{{ .Version }}-amd64 | ||
|
||
- name_template: netbirdio/netbird:{{ .Version }}-rootless | ||
image_templates: | ||
- netbirdio/netbird:{{ .Version }}-rootless-arm64v8 | ||
- netbirdio/netbird:{{ .Version }}-rootless-arm | ||
- netbirdio/netbird:{{ .Version }}-rootless-amd64 | ||
|
||
- name_template: netbirdio/netbird:rootless-latest | ||
image_templates: | ||
- netbirdio/netbird:{{ .Version }}-rootless-arm64v8 | ||
- netbirdio/netbird:{{ .Version }}-rootless-arm | ||
- netbirdio/netbird:{{ .Version }}-rootless-amd64 | ||
|
||
- name_template: netbirdio/relay:{{ .Version }} | ||
image_templates: | ||
- netbirdio/relay:{{ .Version }}-arm64v8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM alpine:3.21.0 | ||
|
||
COPY netbird /usr/local/bin/netbird | ||
|
||
RUN apk add --no-cache ca-certificates \ | ||
&& adduser -D -h /var/lib/netbird netbird | ||
WORKDIR /var/lib/netbird | ||
USER netbird:netbird | ||
|
||
ENV NB_FOREGROUND_MODE=true | ||
ENV NB_USE_NETSTACK_MODE=true | ||
ENV NB_CONFIG=config.json | ||
ENV NB_DAEMON_ADDR=unix://netbird.sock | ||
|
||
ENTRYPOINT [ "/usr/local/bin/netbird", "up" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters