blob: 1a8539869574a0d9779d242abfca3fa0355e60b6 [file] [log] [blame]
Sowmya_Narayanasettyacd539a2020-07-27 20:00:56 +05301FROM openjdk:11-jre-slim
Guobiao Moda703762019-02-22 15:36:27 -08002
3MAINTAINER Guobiao Mo <guobiaomo@chinamobile.com>
4
5EXPOSE 1680
6
7RUN groupadd -r datalake && useradd -r -g datalake datalake
8RUN mkdir /home/datalake
9
10USER datalake
11
12WORKDIR /home/datalake
13
14#add the fat jar
Guobiao Mo6670cf92020-01-06 17:11:43 -080015COPY target/${JAR_FILE} /home/datalake/
Guobiao Moda703762019-02-22 15:36:27 -080016COPY src/assembly/run.sh /home/datalake/
17
Kate Hsuan3034e7c2020-03-02 08:54:04 +000018WORKDIR /home/datalake/db_init
19ADD src/assembly/init_db/scripts/db_init .
20USER root
21RUN chmod 0755 ./*
22WORKDIR /home/datalake
23COPY src/assembly/init_db/db_scripts/init_db.sql .
24COPY src/assembly/init_db/db_scripts/init_db_data.sql .
25
26RUN apt update && \
27 apt install -y mariadb-client && \
28 apt install -y curl
29
Kate Hsuanf32825f2020-03-27 06:49:15 +000030USER datalake
31
Guobiao Moda703762019-02-22 15:36:27 -080032CMD ["sh", "run.sh"]
33