mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
4b0899fd65
commit
1fca2465aa
2 files changed
+36
-7
No files matched your search
+23
@@ -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`
|
||||
|
||||
Reference in new issue
Block a user