-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from datacenter/memgraph
Add Config Explorer
- Loading branch information
Showing
25 changed files
with
1,201 additions
and
12 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
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,7 @@ | ||
FROM python:3.12-slim | ||
WORKDIR /app | ||
ENV PATH="$PATH:/app" | ||
COPY requirements.txt requirements.txt | ||
RUN apt update && apt install -y python3-dev cmake make gcc g++ libssl-dev && pip3 install -r requirements.txt | ||
COPY app /app | ||
ENTRYPOINT ["python", "backup2graph.py"] |
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,41 @@ | ||
# Backup 2 Graph | ||
|
||
This Python application is used in conjunction with the ACI Monitoring Stack to convert the ACI Object Model Database in a Graph Database. | ||
|
||
This is done by following these steps: | ||
|
||
* Load the ACI access details from the aci-exporter config map | ||
* Generate an ACI Backup | ||
* Export it locally | ||
* Parse the backup in a set of CSV Files | ||
* Load The backup inside Memgraph | ||
|
||
`Backup2Graph` and `Memgraph` are sharing a common PVC so that the data processed by `Backup2Graph` is directly accessible by `Memgraph` | ||
This is taken care by the Helm chart automatically. | ||
Currently Multiple Fabric are supported but only 1 snapshot is preserved. | ||
|
||
## Building Backup2Graph | ||
|
||
You can use the docker file to build your own images however in my lab I have to deal with a proxy if you are as unfortunate as me follow these steps: | ||
|
||
### Create a Buildx instance | ||
|
||
* If you are using in insecure registry (i.e. self signed certificate) set you key/cert/ca in the [buildkitd](buildkitd.toml) config file. | ||
* If you have a proxy set up your `http_proxy/https_proxy/no_proxy` environment variables in `/etc/environment` | ||
```shell | ||
docker buildx create --use --driver-opt '"env.http_proxy='$http_proxy'"' --driver-opt '"env.https_proxy='$https_proxy'"' --driver-opt '"env.no_proxy='$no_proxy'"' --config ./buildkitd.toml | ||
|
||
``` | ||
|
||
### When Building Pass the Proxy Environment to the build container | ||
|
||
For my build I just need `https_proxy` but you can add the other options if needed. | ||
```shell | ||
docker login harbor.cam.ciscolabs.com -u <USER> -p <PASS> | ||
docker build . --build-arg HTTPS_PROXY=$https_proxy --platform linux/amd64,linux/arm64 --push --tag harbor.cam.ciscolabs.com/library/backup2graph:test | ||
``` | ||
|
||
If you push to a registry that needs authentication do | ||
```shell | ||
docker login <CREDENTIALS> | ||
``` |
Oops, something went wrong.