2020-11-14 14:53:13 +00:00
|
|
|
FROM myvc/server
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
COPY \
|
|
|
|
myvc.config.json \
|
2020-11-17 10:53:31 +00:00
|
|
|
myvc.structure.sql \
|
|
|
|
.dump.sql \
|
2020-11-14 14:53:13 +00:00
|
|
|
./
|
|
|
|
RUN gosu mysql docker-init.sh \
|
2020-11-17 10:53:31 +00:00
|
|
|
&& docker-dump.sh myvc.structure \
|
|
|
|
&& docker-dump.sh .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-14 14:53:13 +00:00
|
|
|
COPY changes ./changes
|
2020-11-17 10:53:31 +00:00
|
|
|
COPY myvc.fixtures.sql ./
|
2020-11-14 14:53:13 +00:00
|
|
|
ARG STAMP=unknown
|
|
|
|
RUN gosu mysql docker-temp-start.sh \
|
2020-11-17 10:53:31 +00:00
|
|
|
&& myvc-push.sh \
|
|
|
|
&& docker-dump.sh myvc.fixtures \
|
2020-11-14 14:53:13 +00:00
|
|
|
&& gosu mysql docker-temp-stop.sh
|
|
|
|
|
|
|
|
RUN echo "[INFO] -> Import finished" \
|
|
|
|
&& rm -rf /docker-boot
|
|
|
|
|
|
|
|
USER mysql
|