Zudoku
Example apps

Wordpress

This guide shows you how to use Wordpress, a web content management system.

To run it, follow these steps:

  1. Install the unikraft CLI. You need a BuildKit builder. The easiest way to get one is via Docker. Alternatively, you can also directly set up and use BuildKit, see the quick start.

  2. Clone the examples repository and cd into the examples/wordpress-all-in-one/ directory:

    TerminalCode
    git clone https://github.com/unikraft-cloud/examples cd examples/wordpress-all-in-one/

Make sure to log into Unikraft Cloud and pick a metro close to you. This guide uses fra (Frankfurt, 🇩🇪):

TerminalCode
unikraft login

When done, invoke the following command to deploy this app on Unikraft Cloud:

TerminalCode
unikraft build . --output <my-org>/wordpress-all-in-one:latest unikraft run --metro fra \ -m 4G \ -p 443:3000/tls+http \ --scale-to-zero policy=on,cooldown-time=3000,stateful=true \ --image <my-org>/wordpress-all-in-one:latest

The output shows the instance address and other details:

TerminalCode
metro: fra name: wordpress-fx5rb uuid: bfb9d151-1604-452a-b2e0-f737486744df state: starting image: <my-org>/wordpress resources: memory: 4096MiB vcpus: 1 service: uuid: 398fe5bb-e172-465e-8f74-56ffcfb24a3d name: cool-silence-h5c1es4z domains: - fqdn: cool-silence-h5c1es4z.fra.unikraft.app networks: - uuid: 26c200e0-43eb-dd46-e4be-e9505ff677d1 private-ip: 10.0.3.1 mac: 12:b0:4e:20:b3:e7 timestamps: created: just now

In this case, the instance name is wordpress-fx5rb. They're different for each run.

Use a browser to access the install page of Wordpress. Fill out the form and complete the Wordpress install.

You can list information about the instance by running:

TerminalCode
unikraft instances list
TerminalCode
METRO NAME STATE IMAGE ARGS MEMORY VCPUS FQDN CREATED fra wordpress-fx5rb running <my-org>/wordpress-all-in-one 4096MiB 1 cool-silence-h5c1es4z.fra.unikraft.app 1 minute ago

When done, you can remove the instance:

TerminalCode
unikraft instances delete wordpress-fx5rb

Learn more

Use the --help option for detailed information on using Unikraft Cloud:

TerminalCode
unikraft --help

Or visit the CLI Reference.

Last modified on