Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dockerfile #43

Merged
merged 2 commits into from
Aug 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM ubuntu:20.04

ENV LOGROTATE_ROTATE=5 \
LOGROTATE_SIZE=100M \
TZ=Asia/Shanghai

RUN mkdir -p /usr/local/nebula/bin \
&& mkdir -p /usr/local/certs
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl cron logrotate \
&& apt-get clean all

ENV LOGROTATE_ROTATE= \
LOGROTATE_SIZE=

COPY bin/agent /usr/local/bin/agent
COPY db_playback /usr/local/nebula/bin/db_playback
COPY logrotate.sh /logrotate.sh
Expand Down