diff --git a/content/code/multiple-distros-with-toolbox.md b/content/code/multiple-distros-with-toolbox.md index ba1ffeb..0066530 100644 --- a/content/code/multiple-distros-with-toolbox.md +++ b/content/code/multiple-distros-with-toolbox.md @@ -26,14 +26,14 @@ By default, on Silverblue, there is basically just one image: fedora-toolbox. It is the default Fedora Workstation install, but you can pick any version you want. You can do -``` +```shell toolbox create ``` ... to create an environment with a Fedora install in the same version of the current Silverblue install and then -``` +```shell toolbox enter ``` @@ -85,7 +85,7 @@ issues. So I have this `Containerfile`: -``` +```dockerfile FROM opensuse/leap:15.1 LABEL com.github.containers.toolbox="true" \ @@ -106,7 +106,7 @@ using `sudo` without a password. {% note() %} If you're curious, the whole `sudoers` I use have just one line: -``` +```sudo %wheel ALL=(ALL) NOPASSWD: ALL ``` {% end %} @@ -128,7 +128,7 @@ Other distributions I build images: Similar to OpenSuse, Ubuntu default image also doesn't come with `capsh` and `sudo`, but this can fixed with this `Containerfile`: -``` +```dockerfile FROM ubuntu:18.04 LABEL com.github.containers.toolbox="true" \ @@ -148,7 +148,7 @@ Also, the `sudo` group is "sudo", so the `sudoers` file had to reflect this. Centos 7 comes with `capsh`, but not `sudo`. So another custom image needs to be used: -``` +```dockerfile FROM centos:7.3.1611 LABEL com.github.containers.toolbox="true" \ diff --git a/content/code/multiple-distros-with-toolbox.pt.md b/content/code/multiple-distros-with-toolbox.pt.md index b137868..47731a3 100644 --- a/content/code/multiple-distros-with-toolbox.pt.md +++ b/content/code/multiple-distros-with-toolbox.pt.md @@ -26,14 +26,14 @@ Por padrão, no Silverblue, existe apenas uma imagem: fedora-toolbox. É a instalação padrão do Fedora Workstation, mas você pode usar qualquer versão do Fedora. Você pode fazer -``` +```shell toolbox create ``` ... para criar um ambiente com o a instalação do Fedora na mesma versão que a versão do Silverblue e então -``` +```shell toolbox enter ``` @@ -87,7 +87,7 @@ usar. Assim, eu tenho esse `Containerfile`: -``` +```dockerfile FROM opensuse/leap:15.1 LABEL com.github.containers.toolbox="true" \ @@ -109,7 +109,7 @@ para permitir usar `sudo` sem senha. Se você estiver curioso, esse é o conteúdo inteiro do `sudoers` é apenas uma linha: -``` +```sudo %wheel ALL=(ALL) NOPASSWD: ALL ``` {% end %} @@ -132,7 +132,7 @@ Outras distribuições que eu tive que construir a imagem: Parecido com o OpenSuse, a imagem padrão do Ubuntu não vem com `capsh` nem `sudo`, mas isso pode ser corrigido com este `Containerfile`: -``` +```dockerfile FROM ubuntu:18.04 LABEL com.github.containers.toolbox="true" \ @@ -152,7 +152,7 @@ Ainda, o grupo do `sudo` é "sudo", e o arquivo `sudoers` tem que refletir isso. Centos 7 vem com `capsh`, mas não com o `sudo`. Assim, precisamos de mais uma imagem customizada: -``` +```dockerfile FROM centos:7.3.1611 LABEL com.github.containers.toolbox="true" \