Getting up and running using Podman
Ensure that the aws-secrets-test.txt
and api-secrets-test.txt
are present.
podman build -t jt-api .
podman run --network="host" --name api --env-file=../jobtech-taxonomy-api-gitops/jobtech-taxonomy-api-deploy-secrets/test/aws-secrets-test.txt --env-file=../jobtech-taxonomy-api-gitops/jobtech-taxonomy-api-deploy-secrets/test/api-secrets-test.txt --env-file=dev.env --rm jt-api
Building and running
Build the image:
podman build . -t api
Run the API locally using podman with Datomic as backend, run:
podman run -p 3000:3000 --name api --rm api
Run the API locally using podman with Datahike as backend, with the database in the folder datahike-file-db, run:
podman run -v $PWD/datahike-file-db:/datahike-file-db:Z -e DATABASE_BACKEND=datahike -p 3000:3000 --name api --rm api
Stop the API in another terminal, run:
podman container stop api
Docker
Build the image:
podman build . -t api
Run the API locally using podman with Datomic as backend, run:
podman run -p 3000:3000 --name api --rm api
Run the API locally using podman with Datahike as backend, with the database in the folder datahike-file-db, run:
podman run -v $PWD/datahike-file-db:/datahike-file-db:Z -e DATABASE_BACKEND=datahike -p 3000:3000 --name api --rm api
Stop the API in another terminal, run:
podman container stop api