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 \
|
|
|
|
dump/structure.sql \
|
2020-11-14 14:53:13 +00:00
|
|
|
myvc.config.json \
|
|
|
|
./
|
|
|
|
RUN gosu mysql docker-init.sh \
|
2020-11-19 12:51:27 +00:00
|
|
|
&& docker-dump.sh dump/structure \
|
|
|
|
&& docker-dump.sh dump/.dump \
|
2020-11-14 14:53:13 +00:00
|
|
|
&& gosu mysql docker-temp-stop.sh
|
|
|
|
|
2020-11-17 10:53:31 +00:00
|
|
|
COPY routines ./routines
|
2020-11-19 12:51:27 +00:00
|
|
|
COPY versions ./versions
|
|
|
|
COPY dump/fixtures.sql ./
|
2020-11-14 14:53:13 +00:00
|
|
|
ARG STAMP=unknown
|
|
|
|
RUN gosu mysql docker-temp-start.sh \
|
2020-11-19 12:51:27 +00:00
|
|
|
&& myvc-push.sh -a \
|
|
|
|
&& 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
|