From 1b64f06558a82570324d887490dee96464281547 Mon Sep 17 00:00:00 2001 From: Unikraft Bot Date: Sun, 5 Jul 2026 04:42:27 +0000 Subject: [PATCH] chore: Update guides from examples repository Signed-off-by: Unikraft Bot --- pages/guides/mysql.mdx | 2 + pages/guides/neo4j.mdx | 148 ----------------------------- pages/guides/nginx-flask-mongo.mdx | 2 + zudoku.config.tsx | 1 - 4 files changed, 4 insertions(+), 149 deletions(-) delete mode 100644 pages/guides/neo4j.mdx diff --git a/pages/guides/mysql.mdx b/pages/guides/mysql.mdx index 8734287..70d65f6 100644 --- a/pages/guides/mysql.mdx +++ b/pages/guides/mysql.mdx @@ -159,6 +159,8 @@ kraft cloud instance list +
+ ```ansi title="unikraft" diff --git a/pages/guides/neo4j.mdx b/pages/guides/neo4j.mdx deleted file mode 100644 index 53fd507..0000000 --- a/pages/guides/neo4j.mdx +++ /dev/null @@ -1,148 +0,0 @@ ---- -title: "Neo4j" ---- - -import { Tabs, TabsContent, TabsList, TabsTrigger } from "zudoku/ui/Tabs" - -{/* vale off */} -{/* THIS FILE WAS AUTOGENERATED FROM THE PUBLIC EXAMPLE REPOSITORY. DO NOT EDIT THIS FILE DIRECTLY. */} - - -This guide shows you how to use [Neo4j](https://neo4j.com), one of the most popular open source graph databases. -To run this example, follow these steps: - -1. Install the CLI. - Use the [unikraft CLI](/cli/unikraft). - You need a [BuildKit](https://github.com/moby/buildkit) builder. The easiest way to get one is via [Docker](https://docs.docker.com/engine/install/). - Alternatively, you can also directly set up and use BuildKit, see the [quick start](https://github.com/moby/buildkit#quick-start). - -2. Clone the [`examples` repository](https://github.com/unikraft-cloud/examples) and `cd` into the `examples/neo4j/` directory: - - ```bash - git clone https://github.com/unikraft-cloud/examples - cd examples/neo4j/ - ``` - -Make sure to log into Unikraft Cloud and pick a [metro](/platform/metros) close to you. -This guide uses `fra` (Frankfurt, 🇩🇪): - -```bash title="unikraft" -unikraft login -``` - -When done, invoke the following command to deploy this app on Unikraft Cloud: - -```bash title="unikraft" -unikraft build . --output /neo4j:latest -unikraft run --metro fra --scale-to-zero policy=idle,cooldown-time=4000,stateful=true -m 2G -p 443:7474/tls+http -p 7687:7687/tls --image /neo4j:latest -``` - -:::note -You can also set a custom password for the default neo4j user by adding the -following env var to the run command -`-e "NEO4J_AUTH_PASSWORD=..."` -::: - -The output shows the instance address and other details: - -```ansi title="unikraft" -metro: fra -name: neo4j-t117i -uuid: c59f865e-e954-4bf8-8da8-7ee6f1c1aab2 -state: starting -image: /neo4j -resources: - memory: 2GiB - vcpus: 1 -service: - name: fragrant-fog-pj1gi4jl - uuid: a3d29dfa-650b-4e8c-a8e6-055f59dd4c92 - domains: - - fqdn: fragrant-fog-pj1gi4jl.fra.unikraft.app -networks: -- uuid: 1a65f2c3-cbfd-48bf-b8db-5cb90ed62a7c - private-ip: 10.0.1.73 - mac: 12:b0:0a:00:01:49 -timestamps: - created: just now -scale-to-zero: - enabled: true - policy: idle - stateful: true - cooldown-time: 4s -``` - -In this case, the instance name is `neo4j-t117i` and the address is `https://fragrant-fog-pj1gi4jl.fra.unikraft.app` -They're different for each run. - -Use `curl` to query the Unikraft Cloud Neo4j instance: - -```bash -curl https://fragrant-fog-pj1gi4jl.fra.unikraft.app -``` - -```text -{"bolt_routing":"neo4j://fragrant-fog-pj1gi4jl.fra.unikraft.app:7687","query":"https://fragrant-fog-pj1gi4jl.fra.unikraft.app:7687/db/{databaseName}/query/v2","transaction":"https://fragrant-fog-pj1gi4jl.fra.unikraft.app/db/{databaseName}/tx","bolt_direct":"bolt://fragrant-fog-pj1gi4jl.fra.unikraft.app:7687","neo4j_version":"2026.04.0","neo4j_edition":"community"} -``` - -Or even better, point a browser at it 😀. Make sure you have the protocol set -to `neo4j+s` when logging in. - -You can also try connecting to the instance using the `cypher-shell` CLI -```bash -cypher-shell -a neo4j+s://fragrant-fog-pj1gi4jl.fra.unikraft.app:7687 -u neo4j -``` - -You can list information about the instance by running: - - - -```bash title="unikraft" -unikraft instances list -``` - -```ansi title="unikraft" -METRO NAME STATE IMAGE ARGS MEMORY VCPUS FQDN CREATED -fra neo4j-t117i standby /neo4j 2GiB 1 fragrant-fog-pj1gi4jl.fra.unikraft.app just now -``` - - - -When done, you can remove the instance: - -```bash title="unikraft" -unikraft instances delete neo4j-t117i -``` - -## Using volumes - -You can use [volumes](/platform/volumes) for data persistence for your neo4j instance. -For that you would first create a volume: - -```bash title="unikraft" -unikraft volume create --set metro=fra --set name=neo4j-store --set size=512M -``` - -Then start the neo4j instance and mount that volume: - -```bash title="unikraft" -unikraft build . --output /neo4j:latest -unikraft run --metro fra --scale-to-zero policy=idle,cooldown-time=4000,stateful=true -m 2G -p 443:7474/tls+http -p 7687:7687/tls --volume neo4j-store:/data --image /neo4j:latest -``` - -## Customize your app - -To customize the app, update the files in the repository, listed below: - -* `Kraftfile`: the Unikraft Cloud specification, including command-line arguments -* `Dockerfile`: In case you need to add files to your instance's rootfs - -## Learn more - -Use the `--help` option for detailed information on using Unikraft Cloud: - -```bash title="unikraft" -unikraft --help -``` -Or visit the [CLI Reference](/cli/unikraft) -{/* vale on */} diff --git a/pages/guides/nginx-flask-mongo.mdx b/pages/guides/nginx-flask-mongo.mdx index 8f0b8ff..7d1a56a 100644 --- a/pages/guides/nginx-flask-mongo.mdx +++ b/pages/guides/nginx-flask-mongo.mdx @@ -82,6 +82,8 @@ kraft cloud volume list +
+ ```ansi title="unikraft" diff --git a/zudoku.config.tsx b/zudoku.config.tsx index 7a6a460..a77e88b 100644 --- a/zudoku.config.tsx +++ b/zudoku.config.tsx @@ -188,7 +188,6 @@ const config: ZudokuConfig = { "/guides/minio", // Minio "/guides/mongodb", // MongoDB "/guides/mysql", // MySQL - "/guides/neo4j", // Neo4j "/guides/httpserver-node21-nextjs", // Next.js HTTP Server "/guides/nginx", // Nginx "/guides/node24-karaoke", // Node AllKaraoke