- current working directory is
backend/
Create a configuration file, named ocpperf with the following key structure, and fill in the values:
[elasticsearch]
url=
indice=
username=
password=
[ocp-server]
port=8000
[airflow]
url=
username=
password=
TOML is used above, but it also accepts YAML.
- Follow backend setup readme
- Follow frontend setup readme
- podman
- current working directory is
backend/
Build backend image.
$ podman build \
--tag ocpp-back \
--file backend.containerfile \
.
Run the backend container and attach source code as a writable volume.
$ podman run \
--interactive \
--tty \
--volume "$PWD/app:/backend/app:z" \
--volume "$PWD/ocpperf.toml:/backend/ocpperf.toml"
--publish 8000:8000 \
ocpp-back /backend/scripts/start-reload.sh
- current working directory is
frontend/
Build frontend image.
$ podman build \
--tag ocpp-front \
--file frontend-dev.containerfile \
.
- second terminal
- current working directory is
frontend/
Run frontend container and attach source code as a writable volume.
$ podman run \
--interactive \
--tty \
--volume "$PWD:/app:z" \
--publish 3000:3000 \
ocpp-front