Robert Schäfer 0970014a59 Create db-migration-worker as a docker container
The idea is to import/dump the remote database via SSH, restore it to
the local mongodb, export .json collections to a shared volume and
import the json collections with cypher-shell.
2019-01-16 02:10:42 +01:00

10 lines
196 B
Docker

FROM mongo:latest
ARG KNOWN_HOST
RUN apt-get update
RUN apt-get -y install openssh-client
COPY id_rsa /root/.ssh/id_rsa
RUN ssh-keyscan -H $KNOWN_HOST >> /root/.ssh/known_hosts
COPY import.sh .