mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Digital Ocean does not support shared directories. So we have to uploads the images in `/uploads` via `kubectl cp` or something similar. Likewise, it is not possible to share the exported mongodb .json files with neo4j container. Therefore let's install `cypher-shell`, included in `neo4j` package, to directly open a neo4j connection and bulk import the data.
14 lines
524 B
Docker
14 lines
524 B
Docker
FROM neo4j:3.5.0 as neo4j
|
|
FROM mongo:4
|
|
|
|
RUN apt-get update
|
|
RUN apt-get -y install --no-install-recommends wget apt-transport-https
|
|
RUN wget -O - https://debian.neo4j.org/neotechnology.gpg.key | apt-key add -
|
|
RUN echo 'deb https://debian.neo4j.org/repo stable/' | tee /etc/apt/sources.list.d/neo4j.list
|
|
RUN apt-get update
|
|
RUN apt-get -y install --no-install-recommends openjdk-8-jre openssh-client neo4j rsync \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY neo4j/ mongo/ ./
|
|
COPY migrate.sh /usr/local/bin/migrate
|