-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5fa4bb
commit 6954018
Showing
2 changed files
with
14 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file | ||
# Ignore all files which are not go type | ||
!**/*.go | ||
!**/*.mod | ||
!**/*.sum |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
FROM centos:7 | ||
FROM ubuntu:20.04 | ||
|
||
WORKDIR /nebula-agent | ||
|
||
COPY bin/agent . | ||
|
||
CMD ["./agent", "--agent", "127.0.0.1:8888", "--meta", "127.0.0.1:9559"] | ||
RUN mkdir -p /usr/local/nebula/bin | ||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | ||
&& echo "Asia/Shanghai" > /etc/timezone | ||
RUN apt-get -qq update \ | ||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl \ | ||
&& apt-get clean all | ||
ADD bin/agent /usr/local/bin/agent | ||
ADD db_playback /usr/local/nebula/bin/db_playback |