You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by do...@apache.org on 2021/08/23 13:45:25 UTC
[incubator-inlong] branch master updated: [INLONG-1466][agent] fix
the snappy error for agent (#1467)
This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 4011c05 [INLONG-1466][agent] fix the snappy error for agent (#1467)
4011c05 is described below
commit 4011c05171e1a21fa2f6aa036f5f149fce18da6c
Author: dockerzhang <do...@apache.org>
AuthorDate: Mon Aug 23 21:45:21 2021 +0800
[INLONG-1466][agent] fix the snappy error for agent (#1467)
Co-authored-by: dockerzhang <do...@tencent.com>
---
inlong-agent/agent-docker/Dockerfile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/inlong-agent/agent-docker/Dockerfile b/inlong-agent/agent-docker/Dockerfile
index 363678b..a56c52a 100644
--- a/inlong-agent/agent-docker/Dockerfile
+++ b/inlong-agent/agent-docker/Dockerfile
@@ -18,15 +18,17 @@
#
FROM openjdk:8-jdk-alpine
# add tarball from target output
+RUN apk add --no-cache java-snappy
+WORKDIR /opt/inlong-agent
ARG AGENT_TARBALL
ADD ${AGENT_TARBALL} /opt/inlong-agent
+RUN cp /usr/share/java/snappy-java.jar lib/snappy-java-*.jar
EXPOSE 8008
ENV MANAGER_OPENAPI_IP=127.0.0.1
ENV MANAGER_OPENAPI_PORT=8082
ENV DATAPROXY_IP=127.0.0.1
ENV DATAPROXY_PORT=46801
ENV ETH_NETWORK=eth0
-WORKDIR /opt/inlong-agent
ADD agent-docker.sh bin/
RUN chmod +x bin/agent-docker.sh
CMD ["bin/agent-docker.sh"]