Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| elearning:workbooks:docker3:en:dre02 [2023/12/19 12:48] – admin | elearning:workbooks:docker3:en:dre02 [2024/12/17 13:46] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ~~PDF: | ~~PDF: | ||
| - | Version: **2023.01** | + | Version: **2024.01** |
| Last update: ~~LASTMOD~~ | Last update: ~~LASTMOD~~ | ||
| Ligne 164: | Ligne 164: | ||
| if [[ " | if [[ " | ||
| if [ " | if [ " | ||
| - | find / | + | find / |
| fi | fi | ||
| Ligne 185: | Ligne 185: | ||
| # usage: file_env VAR [DEFAULT] | # usage: file_env VAR [DEFAULT] | ||
| - | # ie: file_env ' | + | # ie: file_env ' |
| # (will allow for " | # (will allow for " | ||
| - | # " | + | # " |
| file_env() { | file_env() { | ||
| local var=" | local var=" | ||
| Ligne 291: | Ligne 291: | ||
| # _js_escape 'some " | # _js_escape 'some " | ||
| _js_escape() { | _js_escape() { | ||
| - | jq --null-input --arg ' | + | jq --null-input --arg ' |
| } | } | ||
| Ligne 305: | Ligne 305: | ||
| # if --config is specified, parse it into a JSON file so we can remove a few problematic keys (especially SSL-related keys) | # if --config is specified, parse it into a JSON file so we can remove a few problematic keys (especially SSL-related keys) | ||
| # see https:// | # see https:// | ||
| - | mongo --norc --nodb --quiet --eval " | + | mongo --norc --nodb --quiet --eval " |
| jq ' | jq ' | ||
| return 0 | return 0 | ||
| Ligne 470: | Ligne 470: | ||
| *.sh) echo "$0: running $f"; . " | *.sh) echo "$0: running $f"; . " | ||
| *.js) echo "$0: running $f"; " | *.js) echo "$0: running $f"; " | ||
| - | *) echo "$0: ignoring $f" ;; | + | *) echo "$0: ignoring $f" ;; |
| esac | esac | ||
| echo | echo | ||
| Ligne 950: | Ligne 950: | ||
| =====LAB #2 - Creating a Dockerfile===== | =====LAB #2 - Creating a Dockerfile===== | ||
| - | ====2.1 - Creating and testing the==== | + | ====2.1 - Creating and testing the script |
| Create a directory named myDocker: | Create a directory named myDocker: | ||
| Ligne 1103: | Ligne 1103: | ||
| < | < | ||
| - | root@debian11: | + | root@debian11: |
| myDocker | myDocker | ||
| root@debian11: | root@debian11: | ||
| CONTAINER ID | CONTAINER ID | ||
| - | 97fe360bb1d6 | + | 97fe360bb1d6 |
| 880733c6bdc3 | 880733c6bdc3 | ||
| 885f75b6aa57 | 885f75b6aa57 | ||
| Ligne 1601: | Ligne 1601: | ||
| ----- | ----- | ||
| - | Copyright © 2023 Hugh Norris. | + | Copyright © 2024 Hugh Norris. |