Skip to content

v0.7.0

Latest

Choose a tag to compare

@nicopiov nicopiov released this 30 Apr 22:44

Zerapi v0.7.0

This release adds Docker support so Zerapi can run easily in local container workflows and Docker Compose stacks.

Added

  • Added a multi-stage Dockerfile.

  • Added a minimal scratch runtime image.

  • Added .dockerignore.

  • Added /data/data.json as the default container data path.

  • Added Docker usage examples to the README.

  • Added Docker Compose examples.

  • Published the public Docker image:

    nicopiov/zerapi

Notes

Top-level array files infer the resource name from the mounted file name. For example, mounting a file as /data/users.json exposes /users.

Example

docker run --rm -it -p 8080:8080 \
  -v "/path/to/users.json:/data/users.json:ro" \
  nicopiov/zerapi:v0.7.0 serve --host 0.0.0.0 /data/users.json

Install

go install github.com/nicopiov/zerapi@v0.7.0

Docker image: nicopiov/zerapi:v0.7.0