Skip to content

Commit

Permalink
Update to use arm64 architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
JMHReif committed Aug 13, 2021
1 parent ee56460 commit 2f895e5
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
28 changes: 28 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
= Docker image for Neo4j on Apple Silicon

This image is a build of Neo4j's arm64 experimental image (runs on Apple M1 - silicon chip).

If using another architecture, you can open the `Dockerfile` in this repository and substitute the 3rd line (`FROM`) with the below code:

[source,text]
----
FROM neo4j:4.3.3
----

You will also need to change the 10th line in the `runNeo4j.sh` script to the following:

[source,shell]
----
neo4j:4.3
----

== Building and running the image

You can build the image on your local machine with the following command:

[source,shell]
----
docker build . -t <project>
----

*Note:* <project> in the above command is the repository you are referencing. If using the arm64 architecture, you can put `jmreif/neo4j-arm64`. If not on arm64 architecture, you can put `neo4j:4.3`.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pull base image
#----------------
FROM neo4j:3.5
FROM neo4j/neo4j-arm64-experimental:4.3.3-arm64

#author
#-------
MAINTAINER Jennifer Reif <jennifer@thehecklers.org,@JMHReif>
LABEL org.opencontainers.image.authors="Jennifer Reif,jennifer@thehecklers.org,@JMHReif"

#build the container
#--------------------
EXPOSE 7474 7687
EXPOSE 7474 7473 7687
9 changes: 8 additions & 1 deletion runNeo4j.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/sh

docker run --name myneo4j -p7474:7474 -p7687:7687 -d -v $HOME/Projects/docker/data/neo4j:/data -v $HOME/Projects/docker/logs/neo4j:/logs jmreif/neo4j
docker run \
--name myneo4j -p7474:7474 -p7687:7687 \
-e NEO4J_AUTH=neo4j/Testing123 \
-d -v $HOME/Projects/docker/data/neo4j:/data \
-v $HOME/Projects/docker/logs/neo4j:/logs \
-v $HOME/Projects/docker/data/neo4j/import:/import \
-v $HOME/Projects/docker/data/neo4j/plugins:/plugins \
jmreif/neo4j-arm64
docker ps

0 comments on commit 2f895e5

Please sign in to comment.