-
Notifications
You must be signed in to change notification settings - Fork 991
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Push Docker images as part of the release workflow (#1037)
- Loading branch information
1 parent
f39bfbb
commit b5c3486
Showing
5 changed files
with
107 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM gcr.io/distroless/static:latest | ||
|
||
ARG TARGETOS TARGETARCH | ||
COPY build/$TARGETOS-$TARGETARCH/nebula /nebula | ||
COPY build/$TARGETOS-$TARGETARCH/nebula-cert /nebula-cert | ||
|
||
VOLUME ["/config"] | ||
|
||
ENTRYPOINT ["/nebula"] | ||
# Allow users to override the args passed to nebula | ||
CMD ["-config", "/config/config.yml"] |
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,24 @@ | ||
# NebulaOSS/nebula Docker Image | ||
|
||
## Building | ||
|
||
From the root of the repository, run `make docker`. | ||
|
||
## Running | ||
|
||
To run the built image, use the following command: | ||
|
||
``` | ||
docker run \ | ||
--name nebula \ | ||
--network host \ | ||
--cap-add NET_ADMIN \ | ||
--volume ./config:/config \ | ||
--rm \ | ||
nebulaoss/nebula | ||
``` | ||
|
||
A few notes: | ||
|
||
- The `NET_ADMIN` capability is necessary to create the tun adapter on the host (this is unnecessary if the tun device is disabled.) | ||
- `--volume ./config:/config` should point to a directory that contains your `config.yml` and any other necessary files. |
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