Skip to content

Commit 5a48767

Browse files
authored
Merge pull request #9 from sdsc-ordes/feat/oss-insight
feat: oss notebook
2 parents 5c9c6b6 + e652230 commit 5a48767

174 files changed

Lines changed: 7050 additions & 1208081 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM ghcr.io/astral-sh/uv:python3.12-bookworm
2+
3+
# Set locale to avoid warnings
4+
ENV LC_ALL=C.UTF-8
5+
ENV LANG=C.UTF-8
6+
7+
# Install just and other system dependencies
8+
RUN apt-get update && apt-get install -y \
9+
sudo \
10+
curl \
11+
jq \
12+
&& curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin \
13+
&& apt-get clean \
14+
&& rm -rf /var/lib/apt/lists/*
15+
16+
RUN useradd -ms /bin/bash -u 1000 vscode
17+
18+
USER vscode
19+
WORKDIR /workspaces

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "open-pulse-neo4j-interface-dev",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"remoteUser": "vscode",
7+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
8+
9+
"customizations": {
10+
"vscode": {
11+
"settings": {
12+
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
13+
"python.envFile": "${workspaceFolder}/.env"
14+
},
15+
"extensions": [
16+
"ms-python.python",
17+
"ms-python.vscode-pylance",
18+
"ms-toolsai.jupyter",
19+
"tamasfe.even-better-toml",
20+
"github.copilot",
21+
"github.copilot-chat"
22+
]
23+
}
24+
},
25+
26+
"postCreateCommand": "rm -rf .venv && uv venv && uv pip install -e src/neo4j-quickstart -e src/ossinsight-quickstart -e src/tentris-quickstart && echo '. $PWD/.venv/bin/activate' >> /home/vscode/.bashrc"
27+
}
Lines changed: 121 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,121 @@
1-
name: Build and Push Docker Image for Quickstart
2-
3-
on:
4-
release:
5-
type: [published]
6-
push :
7-
paths:
8-
- 'src/neo4j-quickstart/**'
9-
- 'tools/images/Dockerfile-neo4j'
10-
- '.github/workflows/**'
11-
12-
env:
13-
REGISTRY: ghcr.io
14-
15-
jobs:
16-
build-image:
17-
runs-on: ubuntu-latest
18-
#if: github.ref != 'refs/heads/main'
19-
permissions:
20-
contents: read
21-
packages: write
22-
23-
steps:
24-
# https://github.com/actions/checkout
25-
- name: checkout repository
26-
uses: actions/checkout@v4
27-
28-
- name: lowercase image name
29-
run: |
30-
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}-neo4j" >> ${GITHUB_ENV}
31-
32-
# https://github.com/docker/setup-qemu-action
33-
- name: Set up QEMU
34-
uses: docker/setup-qemu-action@v3.0.0
35-
36-
# https://github.com/docker/setup-buildx-action
37-
- name: Set up Docker Buildx
38-
id: buildx
39-
uses: docker/setup-buildx-action@v3.0.0
40-
41-
- name: Get current release version
42-
id: release-version
43-
run: |
44-
version=$(grep -E '^version += +' pyproject.toml | sed -E 's/.*= +//' | sed "s/['\"]//g")
45-
echo "version=${version}" >> $GITHUB_OUTPUT
46-
echo "version_build=${version}_"$(git rev-parse --short "$GITHUB_SHA") >> $GITHUB_OUTPUT
47-
48-
# https://github.com/docker/build-push-action
49-
- name: Build Docker image
50-
uses: docker/build-push-action@v5.0.0
51-
with:
52-
context: .
53-
platforms: linux/amd64
54-
file: tools/images/Dockerfile-neo4j
55-
push: false
56-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.release-version.outputs.version_build }}
57-
build-args: PLATFORM=cu124
58-
outputs: type=image,annotation-index.org.opencontainers.image.description=Run a Graph Neural Network.
59-
60-
push-image:
61-
runs-on: ubuntu-latest
62-
#if: github.ref == 'refs/heads/main'
63-
permissions:
64-
contents: read
65-
packages: write
66-
67-
steps:
68-
# https://github.com/actions/checkout
69-
- name: checkout repository
70-
uses: actions/checkout@v4
71-
72-
- name: lowercase image name
73-
run: |
74-
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}-neo4j" >> ${GITHUB_ENV}
75-
76-
# https://github.com/docker/setup-qemu-action
77-
- name: Set up QEMU
78-
uses: docker/setup-qemu-action@v3.0.0
79-
80-
# https://github.com/docker/setup-buildx-action
81-
- name: Set up Docker Buildx
82-
id: buildx
83-
uses: docker/setup-buildx-action@v3.0.0
84-
85-
- name: Get current release version
86-
id: release-version
87-
run: |
88-
version=$(grep -E '^version += +' pyproject.toml | sed -E 's/.*= +//' | sed "s/['\"]//g")
89-
echo "version=${version}" >> $GITHUB_OUTPUT
90-
echo "version_build=${version}_"$(git rev-parse --short "$GITHUB_SHA") >> $GITHUB_OUTPUT
91-
92-
# https://github.com/docker/login-action
93-
- name: Log in to the Container registry
94-
uses: docker/login-action@v3.0.0
95-
with:
96-
registry: ${{ env.REGISTRY }}
97-
username: ${{ github.actor }}
98-
password: ${{ secrets.GITHUB_TOKEN }}
99-
100-
# https://github.com/docker/metadata-action
101-
- name: Extract metadata (tags, labels) for Docker
102-
id: meta
103-
uses: docker/metadata-action@v5.0.0
104-
with:
105-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
106-
tags: |
107-
type=raw,value=latest,enable=${{ github.event_name == 'push' }}
108-
type=raw,value=${{ needs.build-image.outputs.version }},enable=${{ github.event_name == 'release' }}
109-
110-
# https://github.com/docker/build-push-action
111-
- name: Push Docker image
112-
uses: docker/build-push-action@v5.0.0
113-
with:
114-
context: .
115-
platforms: linux/amd64
116-
file: tools/images/Dockerfile-neo4j
117-
push: true
118-
tags: ${{ steps.meta.outputs.tags }}
119-
labels: ${{ steps.meta.outputs.labels }}
120-
build-args: PLATFORM=cu124
121-
outputs: type=image,annotation-index.org.opencontainers.image.description=Run a Graph Neural Network.
1+
name: Build and Push Docker Image for Quickstart
2+
3+
on:
4+
release:
5+
type: [published]
6+
push :
7+
paths:
8+
- 'src/neo4j-quickstart/**'
9+
- 'tools/images/Dockerfile-neo4j'
10+
- '.github/workflows/**'
11+
12+
env:
13+
REGISTRY: ghcr.io
14+
15+
jobs:
16+
build-image:
17+
runs-on: ubuntu-latest
18+
#if: github.ref != 'refs/heads/main'
19+
permissions:
20+
contents: read
21+
packages: write
22+
23+
steps:
24+
# https://github.com/actions/checkout
25+
- name: checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: lowercase image name
29+
run: |
30+
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}-neo4j" >> ${GITHUB_ENV}
31+
32+
# https://github.com/docker/setup-qemu-action
33+
- name: Set up QEMU
34+
uses: docker/setup-qemu-action@v3.0.0
35+
36+
# https://github.com/docker/setup-buildx-action
37+
- name: Set up Docker Buildx
38+
id: buildx
39+
uses: docker/setup-buildx-action@v3.0.0
40+
41+
- name: Get current release version
42+
id: release-version
43+
run: |
44+
version=$(grep -E '^version += +' pyproject.toml | sed -E 's/.*= +//' | sed "s/['\"]//g")
45+
echo "version=${version}" >> $GITHUB_OUTPUT
46+
echo "version_build=${version}_"$(git rev-parse --short "$GITHUB_SHA") >> $GITHUB_OUTPUT
47+
48+
# https://github.com/docker/build-push-action
49+
- name: Build Docker image
50+
uses: docker/build-push-action@v5.0.0
51+
with:
52+
context: .
53+
platforms: linux/amd64
54+
file: tools/images/Dockerfile-neo4j
55+
push: false
56+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.release-version.outputs.version_build }}
57+
build-args: PLATFORM=cu124
58+
outputs: type=image,annotation-index.org.opencontainers.image.description=Run a Graph Neural Network.
59+
60+
push-image:
61+
runs-on: ubuntu-latest
62+
#if: github.ref == 'refs/heads/main'
63+
permissions:
64+
contents: read
65+
packages: write
66+
67+
steps:
68+
# https://github.com/actions/checkout
69+
- name: checkout repository
70+
uses: actions/checkout@v4
71+
72+
- name: lowercase image name
73+
run: |
74+
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}-neo4j" >> ${GITHUB_ENV}
75+
76+
# https://github.com/docker/setup-qemu-action
77+
- name: Set up QEMU
78+
uses: docker/setup-qemu-action@v3.0.0
79+
80+
# https://github.com/docker/setup-buildx-action
81+
- name: Set up Docker Buildx
82+
id: buildx
83+
uses: docker/setup-buildx-action@v3.0.0
84+
85+
- name: Get current release version
86+
id: release-version
87+
run: |
88+
version=$(grep -E '^version += +' pyproject.toml | sed -E 's/.*= +//' | sed "s/['\"]//g")
89+
echo "version=${version}" >> $GITHUB_OUTPUT
90+
echo "version_build=${version}_"$(git rev-parse --short "$GITHUB_SHA") >> $GITHUB_OUTPUT
91+
92+
# https://github.com/docker/login-action
93+
- name: Log in to the Container registry
94+
uses: docker/login-action@v3.0.0
95+
with:
96+
registry: ${{ env.REGISTRY }}
97+
username: ${{ github.actor }}
98+
password: ${{ secrets.GITHUB_TOKEN }}
99+
100+
# https://github.com/docker/metadata-action
101+
- name: Extract metadata (tags, labels) for Docker
102+
id: meta
103+
uses: docker/metadata-action@v5.0.0
104+
with:
105+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
106+
tags: |
107+
type=raw,value=latest,enable=${{ github.event_name == 'push' }}
108+
type=raw,value=${{ needs.build-image.outputs.version }},enable=${{ github.event_name == 'release' }}
109+
110+
# https://github.com/docker/build-push-action
111+
- name: Push Docker image
112+
uses: docker/build-push-action@v5.0.0
113+
with:
114+
context: .
115+
platforms: linux/amd64
116+
file: tools/images/Dockerfile-neo4j
117+
push: true
118+
tags: ${{ steps.meta.outputs.tags }}
119+
labels: ${{ steps.meta.outputs.labels }}
120+
build-args: PLATFORM=cu124
121+
outputs: type=image,annotation-index.org.opencontainers.image.description=Run a Graph Neural Network.

.gitignore

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
# Tentris environment
2-
src/tentris-quickstart/.venv/
3-
4-
# Local environment
5-
.venv/
6-
7-
# local test file
8-
src/neo4j-quickstart/local_test.py
9-
10-
# Mac related files
11-
*.DS_Store
12-
13-
# Any env files anywhere in sub repositories
14-
*.env
15-
*quickstart.egg-info
16-
17-
# Python related files
18-
__pycache__/
19-
*.py[cod]
20-
*$py.class
21-
*__pycache__
22-
23-
# Plots
24-
src/neo4j-quickstart/plots/graphs/*
25-
!src/neo4j-quickstart/plots/graphs/.gitkeep
26-
# Cluster plots
27-
src/neo4j-quickstart/plots/clusters/*
28-
!src/neo4j-quickstart/plots/clusters/.gitkeep
29-
1+
# Tentris environment
2+
src/tentris-quickstart/.venv/
3+
4+
# Local environment
5+
.venv/
6+
7+
# local test file
8+
src/neo4j-quickstart/local_test.py
9+
10+
# Mac related files
11+
*.DS_Store
12+
13+
# Any env files anywhere in sub repositories
14+
*.env
15+
*quickstart.egg-info
16+
17+
# Python related files
18+
__pycache__/
19+
*.py[cod]
20+
*$py.class
21+
*__pycache__
22+
23+
# Plots
24+
src/neo4j-quickstart/plots/graphs/*
25+
!src/neo4j-quickstart/plots/graphs/.gitkeep
26+
# Cluster plots
27+
src/neo4j-quickstart/plots/clusters/*
28+
!src/neo4j-quickstart/plots/clusters/.gitkeep
29+

0 commit comments

Comments
 (0)