2018-12-18 16:48:28 +00:00
|
|
|
FROM mysql:5.7
|
|
|
|
|
2020-03-13 11:28:00 +00:00
|
|
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.1}
|
2018-12-18 16:48:28 +00:00
|
|
|
|
|
|
|
RUN apt update \
|
|
|
|
&& apt-get install -y --no-install-recommends ca-certificates wget \
|
|
|
|
&& wget -O /docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql "https://raw.githubusercontent.com/naver/pinpoint/$PINPOINT_VERSION/web/src/main/resources/sql/CreateTableStatement-mysql.sql" \
|
|
|
|
&& wget -O /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql "https://raw.githubusercontent.com/naver/pinpoint/$PINPOINT_VERSION/web/src/main/resources/sql/SpringBatchJobRepositorySchema-mysql.sql" \
|
|
|
|
&& sed -i '/^--/d' /docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql \
|
|
|
|
&& sed -i '/^--/d' /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql \
|
|
|
|
&& apt-get purge -y --auto-remove ca-certificates wget
|