container: distribution as environment variable

Allow distribution to be passed as an environment variable.

Fixes #1914

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2021-03-07 07:41:27 -05:00
1 parent 4b0899fd65
commit 1fca2465aa
2 files changed
+36 -7

No files matched your search

+23
View File
@@ -83,6 +83,29 @@ development environment inside a systemd-nspawn container.
host$ ./container ssh
```
6. The default distribution used by the container script is "testing", but you
can choose a different distribution (e.g. "stable") in two ways.
1. Using an environment variable.
```bash
host$ DISTRIBUTION=stable ./container up
host$ DISTRIBUTION=stable ./container ssh
```
```bash
host$ export DISTRIBUTION=stable
host$ ./container up
host$ ./container ssh
```
2. Using the `--distribution` option for each command.
```bash
host$ ./container up --distribution=stable
host$ ./container ssh --distribution=stable
```
#### Using after Setup
After logging into the container, the source code is available in `/freedombox`