Skip to content

Commit

Permalink
Merge pull request #31 from MegaByte875/docker_image
Browse files Browse the repository at this point in the history
  • Loading branch information
kqzh authored Feb 13, 2023
2 parents f5fa4bb + 6954018 commit 87f067c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
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
15 changes: 9 additions & 6 deletions Dockerfile
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

0 comments on commit 87f067c

Please sign in to comment.