Deploy services in a compose project to Unikraft Cloud
Use an existing Composefile or docker-compose.yaml file to start a
number of services as instances on Unikraft Cloud.
Note that this is an experimental command and not all attributes of the
Composefile are supported nor are all flags identical.
Code
kraft cloud compose up [FLAGS] [COMPONENT]
Examples
Code
# Build and deploy a Compose project on Unikraft Cloud.$ kraft cloud compose up# Build and deploy the nginx service from a Compose project on# Unikraft Cloud.$ kraft cloud compose up nginx component# (If applicable) Set or override a runtime for a particular service$ kraft cloud compose up --runtime app=base:latest
Options
Code
-d, --detach Run the services in the background -h, --help help for up --keep-file-owners Keep file owners (user:group) in the rootfs (false sets 'root:root') --no-build Do not build the services before starting them --rollout-wait duration Time to wait before performing rolling out action (ms/s/m/h) (default 10s) --rootfs-type string Set the type of the format of the rootfs (cpio/erofs) (default "cpio") --runtime strings Alternative runtime to use when packaging a service -w, --wait duration Timeout to wait for the instance to start (ms/s/m/h)
Options inherited from parent commands
Code
--allow-insecure Allow insecure connections to the Unikraft Cloud API --env-file string Set the environment file. --file string Set the Compose file. --metro string Unikraft Cloud metro location --token string Unikraft Cloud access token