Skip to content

Commit

Permalink
added podman quatlet to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hermann-sva committed Jun 16, 2024
1 parent f6e6b52 commit 4701775
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
41 changes: 41 additions & 0 deletions containerization.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,47 @@ docker://nginx@sha256:ff2a5d557ca22fa93669f5e70cfbeefda32b98f8fd3d33b38028c582d7

</details>

## SYSTEMD

<details><summary>PODMAN QUATLET</summary>

```bash
# INSTALL PODLET
wget https://github.com/containers/podlet/releases/download/v0.3.0/podlet-x86_64-unknown-linux-gnu.tar.xz
tar -xf podlet-x86_64-unknown-linux-gnu.tar.xz
sudo mv podlet /usr/bin/podlet
sudo chmod +x /usr/bin/podlet
```

```bash
# GENERATE FROM RUN COMMAND
podlet --file . --install --description Caddy podman run --restart always -p 8000:80 -p 8443:443 -v ./Caddyfile:/etc/caddy/Caddyfile:Z -v caddy_data:/data docker.io/library/caddy:latest
```

```bash
# GENERATE FROM EXISTING CONTAINER
podlet generate container 17803fe422cd
```

```bash
# DRYRUN - ROOTFUL
sudo cp ./caddy.container /etc/containers/systemd
sudo /usr/libexec/podman/quadlet --dryrun caddy.container
```
</details>

```bash
# ENABLE/START SERVICE - ROOTFUL
sudo systemctl daemon-reload
sudo systemctl enable --now caddy.service
sudo systemctl start caddy.service
```

```bash
```
</details>


## HOUSE-KEEPING

<details><summary>CLEANUP W/ NERDCTL</summary>
Expand Down
8 changes: 8 additions & 0 deletions linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## BASH-SNIPPETS

<details><summary><b>EXTRACT TAR.XZ</b></summary>

```bash
tar -xf podlet-x86_64-unknown-linux-gnu.tar.xz
```

</details>

<details><summary><b>APPEND TEXT TO FIRST LINE OF FILE</b></summary>

```bash
Expand Down

0 comments on commit 4701775

Please sign in to comment.