2020-11-14 14:53:13 +00:00
|
|
|
FROM myvc/server
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
COPY \
|
2020-11-19 12:51:27 +00:00
|
|
|
dump/.dump.sql \
|
2022-07-12 07:45:05 +00:00
|
|
|
dump/beforeDump.sql \
|
|
|
|
dump/afterDump.sql \
|
2020-12-02 07:35:26 +00:00
|
|
|
dump/
|
|
|
|
COPY myvc.config.yml \
|
2020-11-14 14:53:13 +00:00
|
|
|
./
|
2020-12-02 07:35:26 +00:00
|
|
|
|
2020-11-14 14:53:13 +00:00
|
|
|
RUN gosu mysql docker-init.sh \
|
2022-07-12 07:45:05 +00:00
|
|
|
&& docker-dump.sh dump/beforeDump \
|
2020-11-19 12:51:27 +00:00
|
|
|
&& docker-dump.sh dump/.dump \
|
2022-07-12 07:45:05 +00:00
|
|
|
&& docker-dump.sh dump/afterDump \
|
2020-11-14 14:53:13 +00:00
|
|
|
&& gosu mysql docker-temp-stop.sh
|
|
|
|
|
2020-12-02 07:35:26 +00:00
|
|
|
COPY routines routines
|
|
|
|
COPY versions versions
|
|
|
|
COPY \
|
|
|
|
dump/fixtures.sql \
|
|
|
|
dump/.changes \
|
|
|
|
dump/
|
|
|
|
|
2020-11-14 14:53:13 +00:00
|
|
|
ARG STAMP=unknown
|
|
|
|
RUN gosu mysql docker-temp-start.sh \
|
2022-06-30 12:01:46 +00:00
|
|
|
&& myvc push --socket --commit \
|
2020-11-19 12:51:27 +00:00
|
|
|
&& docker-dump.sh dump/fixtures \
|
2020-11-14 14:53:13 +00:00
|
|
|
&& gosu mysql docker-temp-stop.sh
|
|
|
|
|
2020-11-19 12:51:27 +00:00
|
|
|
RUN echo "[LOG] Import finished." \
|
|
|
|
&& rm -rf /workspace
|
2020-11-14 14:53:13 +00:00
|
|
|
|
|
|
|
USER mysql
|