Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Nginx Version And Network Syntax #373

Merged
merged 1 commit into from
Mar 13, 2024
Merged
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
18 changes: 12 additions & 6 deletions content/guides/using-the-app-catalog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
You can list the applications in the registry by using:

```bash
$ kraft pkg ls --apps --all --update
kraft pkg ls --apps --all --update
```

Check failure on line 21 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should be surrounded by blank lines [Context: "```"]
```

Check failure on line 22 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should be surrounded by blank lines [Context: "```"]

Check failure on line 22 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should have a language specified [Context: "```"]
TYPE NAME VERSION FORMAT MANIFEST INDEX PLAT
app unikraft.org/base latest oci 18cd70e af5c5ed qemu/x86_64
app unikraft.org/base latest oci ac5efa1 af5c5ed fc/x86_64
Expand Down Expand Up @@ -57,7 +57,7 @@
This will default to the `x86_64` architecture and to the `qemu` platform.
It will pull and run run the application from the registry:

```

Check failure on line 60 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should have a language specified [Context: "```"]
i using arch=x86_64 plat=qemu
[+] pulling unikraft.org/helloworld
o. .o _ _ __ _
Expand All @@ -82,9 +82,9 @@
Similarly, we can pull and run Nginx:

```bash
kraft run -W unikraft.org/nginx
kraft run -W unikraft.org/nginx:1.15
```

Check failure on line 86 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should be surrounded by blank lines [Context: "```"]
```

Check failure on line 87 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should be surrounded by blank lines [Context: "```"]

Check failure on line 87 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should have a language specified [Context: "```"]
i using arch=x86_64 plat=qemu
[+] pulling unikraft.org/nginx
o. .o _ _ __ _
Expand All @@ -99,9 +99,9 @@
In order to connect to it, we need to pass a port mapping, similar to [`docker` commands](https://docs.docker.com/network/#published-ports):

```bash
kraft run -W -p 8080:80 unikraft.org/nginx
kraft run -W -p 8080:80 unikraft.org/nginx:1.15
```

Check failure on line 103 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should be surrounded by blank lines [Context: "```"]
```

Check failure on line 104 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should be surrounded by blank lines [Context: "```"]

Check failure on line 104 in content/guides/using-the-app-catalog.mdx

View workflow job for this annotation

GitHub Actions / Markdown Linter

Fenced code blocks should have a language specified [Context: "```"]
i using arch=x86_64 plat=qemu
[+] pulling unikraft.org/nginx
Powered by
Expand All @@ -113,6 +113,12 @@
Telesto 0.16.1~b1fa7c5
```


<Info>
You can use Nginx version 1.25 instead of version 1.15 by appending `:1.25` to the `kraft run` command.
For example: `kraft run -W unikraft.org/nginx:1.25`
</Info>

With the command above we mapped the local port `8080` to the internal Nginx Unikraft port `80`:
Query the server to get the index page:

Expand Down Expand Up @@ -140,7 +146,7 @@
First create a bridge interface, as `root` (prefix with `sudo` if required):

```bash
sudo kraft run --network bridge:virbr0 unikraft.org/nginx
sudo kraft run --network virbr0 unikraft.org/nginx:1.15
```
```
i using arch=x86_64 plat=qemu
Expand Down Expand Up @@ -247,7 +253,7 @@
1. Run as `root` (prefix with `sudo` if required):

```bash
kraft run --network bridge:virbr0 .
kraft run --network virbr0 .
```

1. Query the unikernel instance:
Expand Down Expand Up @@ -304,7 +310,7 @@
1. Run as `root` (prefix with `sudo` if required):

```bash
sudo KRAFTKIT_BUILDKIT_HOST=docker-container://buildkitd kraft run --network bridge:virbr0 .
sudo KRAFTKIT_BUILDKIT_HOST=docker-container://buildkitd kraft run --network virbr0 .
```

1. Query the unikernel instance:
Expand Down
Loading