Skip to content

paastech-cloud/pomegranate

Repository files navigation

PaaSTech Pomegranate

The deployment manager for the PaaSTech Platform-as-a-Service.

This service manages deploying applications for the PaaS clients in an execution engine, such as Docker or Kubernetes.

Documentation is available here.

Try the project out with compose

$> cp .env.sample .env
$> docker compose up --build

Pomegranate's gRPC server will then run on [::]:50051. The server will then answer to the proto routes defined at paastech/proto.

By default, the deployed apps are available under <project_id>.user-app.localhost

⚠️ Pomegranate only pulls images from the local docker registry !

Run this application separatly

To run Pomegranate, you must first install the Rust toolchain for your platform.
You must then install protoc, the Protocol Buffers compiler.

You must also install an execution engine, such as Docker. For Docker, make sure that you have access to the Docker socket.

Once everything is installed, you can use the Cargo package manager for building and running the application:

# build the application under the target/ directory
cargo build

# immediately run the application
cargo run

You can also run test tools:

# run unit tests
cargo test

# run the Clippy linter
cargo clippy

# run the formatter
cargo fmt --check

Pomegranate's gRPC server will then run on [::]:50051. The server will then answer to the proto routes defined at paastech/proto.