mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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.
10 lines
196 B
Docker
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 .
|
|
|