Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Minor improvements to examples-debian.md (#139)
Browse files Browse the repository at this point in the history
* Minor improvements to examples-debian.md

Include docker push in the example and name distribution correctly.

* Fix debian deboostrap template

Remove reduntant actions:

Co-authored-by: Marques Johansson <mjohansson@equinix.com>
  • Loading branch information
teadur and displague committed Jul 15, 2022
1 parent f883698 commit ebe9480
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/deploying-operating-systems/examples-debian.md
Expand Up @@ -188,17 +188,18 @@ RUN apt-get update && apt-get install -y grml-debootstrap
ENTRYPOINT ["grml-debootstrap", "--target", "/dev/sda3", "--grub", "/dev/sda"]
```

Now create an action image from our Dockerfile.
Now create an action image from our Dockerfile and push it to registry.

```sh
docker build -t local-registry/debian:example .
docker build -t local-registry/debian:bootstrap .
docker push local-registry/debian:bootstrap
```

Once the new action is pushed to the local registry, it can be used as an action in a template.

```yaml
actions:
- name: "expand ubuntu filesystem to root"
- name: "expand Debian filesystem to root"
image: local-registry/debian:bootstrap
timeout: 90
```
Expand All @@ -225,7 +226,6 @@ tasks:
- /dev/console:/dev/console
- /lib/firmware:/lib/firmware:ro
actions:
actions:
- name: "disk-wipe-partition"
image: quay.io/tinkerbell-actions/rootio:v1.0.0
timeout: 90
Expand All @@ -238,7 +238,7 @@ tasks:
command: ["format"]
environment:
MIRROR_HOST: 192.168.1.2
- name: "expand ubuntu filesystem to root"
- name: "expand Debian filesystem to root"
image: local-registry/debian:bootstrap
timeout: 90
- name: "kexec-debian"
Expand Down

0 comments on commit ebe9480

Please sign in to comment.