diff options
author | Guobiao Mo <guobiaomo@chinamobile.com> | 2020-01-06 17:11:43 -0800 |
---|---|---|
committer | Vijay Venkatesh Kumar <vv770d@att.com> | 2020-01-07 16:34:59 +0000 |
commit | 6670cf98b8141f6b0f67efa9ec5caeca6e5863a8 (patch) | |
tree | 509f5a86066244561463f0083ee9a7f755edd128 /components/datalake-handler/feeder/Dockerfile | |
parent | 736b11035c297e46d143d2c9e0aab298901e1671 (diff) |
Create Docker image in Maven build
Create Docker image in Maven build so that Jenkins build can auto build
and push docker image to ONAP docker repo.
Issue-ID: DCAEGEN2-2009
Change-Id: I9c7e5012e44bb300d6d4f6701f8299350d7ff6cb
Signed-off-by: Guobiao Mo <guobiaomo@chinamobile.com>
Diffstat (limited to 'components/datalake-handler/feeder/Dockerfile')
-rw-r--r-- | components/datalake-handler/feeder/Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/components/datalake-handler/feeder/Dockerfile b/components/datalake-handler/feeder/Dockerfile new file mode 100644 index 00000000..20444f97 --- /dev/null +++ b/components/datalake-handler/feeder/Dockerfile @@ -0,0 +1,19 @@ +FROM openjdk:8-jre-slim + +MAINTAINER Guobiao Mo <guobiaomo@chinamobile.com> + +EXPOSE 1680 + +RUN groupadd -r datalake && useradd -r -g datalake datalake +RUN mkdir /home/datalake + +USER datalake + +WORKDIR /home/datalake + +#add the fat jar +COPY target/${JAR_FILE} /home/datalake/ +COPY src/assembly/run.sh /home/datalake/ + +CMD ["sh", "run.sh"] + |