From 6954018ec1e2e7c1ccd1ec1d08cf0369a1847464 Mon Sep 17 00:00:00 2001 From: "kevin.qiao" Date: Mon, 13 Feb 2023 19:10:23 +0800 Subject: [PATCH] update image --- .dockerignore | 5 +++++ Dockerfile | 15 +++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..243f81a --- /dev/null +++ b/.dockerignore @@ -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 diff --git a/Dockerfile b/Dockerfile index ccef7de..5a6dd3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +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