forked from laradock/laradock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker files updated docker-neo4j-publish
- Loading branch information
Pratik Khanolkar
committed
May 2, 2020
1 parent
4f274e3
commit 980a4aa
Showing
5 changed files
with
569 additions
and
4 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,51 @@ | ||
FROM tpires/neo4j | ||
FROM openjdk:8-jre-slim | ||
|
||
LABEL maintainer="Mahmoud Zalt <[email protected]>" | ||
ENV NEO4J_SHA256=1c8b6ac0ffd346f0707fe1af713ef74f1c6ce1ea6feb5e9a0bd170e7a8a34a10 \ | ||
NEO4J_TARBALL=neo4j-community-3.5.17-unix.tar.gz \ | ||
NEO4J_EDITION=community \ | ||
NEO4J_HOME="/var/lib/neo4j" \ | ||
TINI_VERSION="v0.18.0" \ | ||
TINI_SHA256="12d20136605531b09a2c2dac02ccee85e1b874eb322ef6baf7561cd93f93c855" | ||
ARG NEO4J_URI=https://dist.neo4j.org/neo4j-community-3.5.17-unix.tar.gz | ||
|
||
VOLUME /var/lib/neo4j/data | ||
RUN addgroup --system neo4j && adduser --system --no-create-home --home "${NEO4J_HOME}" --ingroup neo4j neo4j | ||
|
||
EXPOSE 7474 1337 | ||
COPY ./local-package/* /tmp/ | ||
|
||
RUN apt update \ | ||
&& apt install -y curl wget gosu jq \ | ||
&& curl -L --fail --silent --show-error "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" > /sbin/tini \ | ||
&& echo "${TINI_SHA256} /sbin/tini" | sha256sum -c --strict --quiet \ | ||
&& chmod +x /sbin/tini \ | ||
&& curl --fail --silent --show-error --location --remote-name ${NEO4J_URI} \ | ||
&& echo "${NEO4J_SHA256} ${NEO4J_TARBALL}" | sha256sum -c --strict --quiet \ | ||
&& tar --extract --file ${NEO4J_TARBALL} --directory /var/lib \ | ||
&& mv /var/lib/neo4j-* "${NEO4J_HOME}" \ | ||
&& rm ${NEO4J_TARBALL} \ | ||
&& mv "${NEO4J_HOME}"/data /data \ | ||
&& mv "${NEO4J_HOME}"/logs /logs \ | ||
&& chown -R neo4j:neo4j /data \ | ||
&& chmod -R 777 /data \ | ||
&& chown -R neo4j:neo4j /logs \ | ||
&& chmod -R 777 /logs \ | ||
&& chown -R neo4j:neo4j "${NEO4J_HOME}" \ | ||
&& chmod -R 777 "${NEO4J_HOME}" \ | ||
&& ln -s /data "${NEO4J_HOME}"/data \ | ||
&& ln -s /logs "${NEO4J_HOME}"/logs \ | ||
&& mv /tmp/neo4jlabs-plugins.json /neo4jlabs-plugins.json \ | ||
&& rm -rf /tmp/* \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get -y purge --auto-remove curl | ||
|
||
ENV PATH "${NEO4J_HOME}"/bin:$PATH | ||
|
||
WORKDIR "${NEO4J_HOME}" | ||
|
||
VOLUME /data /logs | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
EXPOSE 7474 7473 7687 | ||
|
||
ENTRYPOINT ["/sbin/tini", "-g", "--", "/docker-entrypoint.sh"] | ||
CMD ["neo4j"] |
Oops, something went wrong.