blob: e26063525ba3e0e224a3bd6c3cbe63553f8dd825 [file] [log] [blame]
Guobiao Mo6670cf92020-01-06 17:11:43 -08001FROM openjdk:8-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
Guobiao Moda703762019-02-22 15:36:27 -080030CMD ["sh", "run.sh"]
31