-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -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`. |
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,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 |
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,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 |