forked from confluentinc/ksql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG DOCKER_UPSTREAM_REGISTRY
ARG DOCKER_UPSTREAM_TAG
FROM ${DOCKER_UPSTREAM_REGISTRY}confluentinc/cp-base-new:${DOCKER_UPSTREAM_TAG}
ARG PROJECT_VERSION
ARG ARTIFACT_ID
USER root
# target directory must be one of the projects that ksql-run-class sets on the KSQL_CLASSPATH,
# of which the artifact ID (ksqldb-docker) is not one. thus the workaround of using ksqldb-rest-app
ADD --chown=appuser:appuser target/${ARTIFACT_ID}-${PROJECT_VERSION}-package/share/java/${ARTIFACT_ID}/* /usr/share/java/ksqldb-rest-app/
ADD --chown=appuser:appuser target/${ARTIFACT_ID}-${PROJECT_VERSION}-package/bin/* /usr/bin/
ADD --chown=appuser:appuser target/${ARTIFACT_ID}-${PROJECT_VERSION}-package/bin/docker/* /usr/bin/docker/
ADD --chown=appuser:appuser target/${ARTIFACT_ID}-${PROJECT_VERSION}-package/etc/* /etc/ksqldb/
ADD --chown=appuser:appuser target/${ARTIFACT_ID}-${PROJECT_VERSION}-package/share/doc/* /usr/share/doc/${ARTIFACT_ID}/
RUN echo "===> Installing confluent-hub..." \
&& wget http://client.hub.confluent.io/confluent-hub-client-latest.tar.gz \
&& tar xf confluent-hub-client-latest.tar.gz \
&& rm confluent-hub-client-latest.tar.gz
RUN chmod +x /usr/bin/docker/configure
RUN chmod +x /usr/bin/docker/run
USER appuser
CMD ["/usr/bin/docker/run"]