Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions imaginary/Kraftfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ labels:
cloud.unikraft.v1.instances/scale_to_zero.stateful: "false"
cloud.unikraft.v1.instances/scale_to_zero.cooldown_time_ms: 1000

rootfs: ./Dockerfile

cmd: ["/usr/bin/imaginary", "-p", "8080"]
8 changes: 4 additions & 4 deletions imaginary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ When done, invoke the following command to deploy this app on Unikraft Cloud:

```bash title="unikraft"
unikraft build . --output <my-org>/imaginary:latest
unikraft run --metro=fra -p 443:8088/tls+http -m 256M <my-org>/imaginary:latest
unikraft run --metro=fra -p 443:8080/tls+http -m 512M <my-org>/imaginary:latest
```

or

```bash title="kraft"
kraft cloud deploy -p 443:8088/tls+http -M 256M .
kraft cloud deploy -p 443:8080/tls+http -M 512M .
```

The output shows the instance address and other details:
Expand All @@ -54,7 +54,7 @@ The output shows the instance address and other details:
├─────────── url: https://divine-wind-1ycjvhqs.fra.unikraft.app
├───────── image: imaginary@sha256:673834bc531038bb621266f7fd635a04e559050cbe82876df811fd4b975ea4fe
├───── boot time: 32.26 ms
├──────── memory: 256 MiB
├──────── memory: 512 MiB
├─────── service: divine-wind-1ycjvhqs
├── private fqdn: imaginary-mwb4y.internal
├──── private ip: 172.16.3.3
Expand Down Expand Up @@ -106,7 +106,7 @@ kraft cloud instance list

```ansi
NAME FQDN STATE STATUS IMAGE MEMORY VCPUS ARGS BOOT TIME
imaginary-mwb4y divine-wind-1ycjvhqs.fra.unikraft.app running 54 seconds ago imaginary@sha256:673834bc531038bb621266f7... 256 MiB 1 /usr/bin/imaginary -p 8080 32262us
imaginary-mwb4y divine-wind-1ycjvhqs.fra.unikraft.app running 54 seconds ago imaginary@sha256:673834bc531038bb621266f7... 512 MiB 1 /usr/bin/imaginary -p 8080 32262us
```

When done, you can remove the instance:
Expand Down
Loading