Skip to content

Commit

Permalink
Merge pull request #3256 from opsmill/dga-20240507-neo4j-community
Browse files Browse the repository at this point in the history
Upgrade neo4j and make neo4j the default in codespace
  • Loading branch information
dgarros authored May 7, 2024
2 parents a8ae584 + 41b8e22 commit dfa1f98
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/demo-container/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"remoteUser": "vscode",
"remoteEnv": {
"INFRAHUB_SDK_API_TOKEN": "06438eb2-8019-4776-878c-0941b1f1d1ec",
"INFRAHUB_DB_TYPE": "memgraph",
"INFRAHUB_DB_TYPE": "neo4j",
"INFRAHUB_IMAGE_VER": "local"
},
"forwardPorts": [8000],
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"remoteUser": "vscode",
"remoteEnv": {
"INFRAHUB_SDK_API_TOKEN": "06438eb2-8019-4776-878c-0941b1f1d1ec",
"INFRAHUB_DB_TYPE": "memgraph",
"INFRAHUB_DB_TYPE": "neo4j",
"INFRAHUB_IMAGE_VER": "local"
},
"forwardPorts": [8000],
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ services:
retries: 3

database:
image: ${NEO4J_DOCKER_IMAGE:-neo4j:5.18.1-community}
image: ${NEO4J_DOCKER_IMAGE:-neo4j:5.19.0-enterprise}
restart: unless-stopped
environment:
- "NEO4J_AUTH=neo4j/admin"
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/development/backend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export INFRAHUB_SDK_USERNAME=admin
export INFRAHUB_SDK_PASSWORD=infrahub
export INFRAHUB_SDK_TIMEOUT=20
export INFRAHUB_METRICS_PORT=8001
export INFRAHUB_DB_TYPE=memgraph # Accepts neo4j or memgraph
export INFRAHUB_DB_TYPE=neo4j # Accepts neo4j or memgraph
export INFRAHUB_SECURITY_INITIAL_ADMIN_TOKEN="${ADMIN_TOKEN}" # Random string which can be generated using: openssl rand -hex 16
export INFRAHUB_STORAGE_LOCAL_PATH="${HOME}/Development/infrahub-storage"
export INFRAHUB_API_CORS_ALLOW_ORIGINS='["http://localhost:8080"]' # Allow frontend/backend communications without CORS issues
Expand All @@ -43,7 +43,7 @@ The exported environment variables are very important and must be set before mov

Infrahub uses several external services to work:

* A database such as neo4j or memgraph (faster for local development)
* A neo4j database
* A Redis in-memory store
* A RabbitMQ message broker

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The main components are:
- A **Frontend** written in react.
- An **API server** written in Python with FastAPI.
- A **Git agent** to manage the interaction with external Git repositories.
- A **Graph database** based on `Neo4j` 5.x or `memgraph`.
- A **Graph database** based on `Neo4j` 5.x.
- A **Message bus** based on `RabbitMQ`.

Refer to [Architecture](/topics/architecture) for a more in-depth view of the components interaction.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/topics/local-demo-environment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ It's designed to be controlled by `invoke` using a list of predefined commands.

| Container Name | Image | Description |
| ------------------- | ------------------------------------------------------ | ------------------------------------------------------ |
| **database** | memgraph/memgraph <br /> or <br /> neo4j:community | Graph Database |
| **database** | neo4j:community | Graph Database |
| **message-queue** | rabbitmq:3.12-management | Message bus based on RabbitMQ |
| **cache** | redis:7.2 | Cache based on Redis, mainly used for distributed lock |
| **infrahub-server** | Dockerfile | Instance of the API server, running GraphQL |
Expand Down
2 changes: 1 addition & 1 deletion tasks/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DatabaseType(str, Enum):
MEMGRAPH_DOCKER_IMAGE = os.getenv(
"MEMGRAPH_DOCKER_IMAGE", "memgraph/memgraph-platform:2.14.0-memgraph2.14.0-lab2.11.1-mage1.14"
)
NEO4J_DOCKER_IMAGE = os.getenv("NEO4J_DOCKER_IMAGE", "neo4j:5.18.1-enterprise")
NEO4J_DOCKER_IMAGE = os.getenv("NEO4J_DOCKER_IMAGE", "neo4j:5.19.0-enterprise")
MESSAGE_QUEUE_DOCKER_IMAGE = os.getenv("MESSAGE_QUEUE_DOCKER_IMAGE", "rabbitmq:3.13.1-management")
CACHE_DOCKER_IMAGE = os.getenv("CACHE_DOCKER_IMAGE", "redis:7.2.4")

Expand Down

0 comments on commit dfa1f98

Please sign in to comment.