mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-06-07 14:02:51 -04:00
Configure python for unbuffered stdout in Docker images
This commit is contained in:
parent
f9259b8173
commit
a6eac0d7ce
2 changed files with 19 additions and 11 deletions
|
@ -16,6 +16,7 @@ FROM python:3.11-rc-alpine3.14
|
||||||
LABEL org.opencontainers.image.documentation="https://github.com/markqvist/NomadNet#nomad-network-daemon-with-docker"
|
LABEL org.opencontainers.image.documentation="https://github.com/markqvist/NomadNet#nomad-network-daemon-with-docker"
|
||||||
|
|
||||||
ENV PATH="/opt/venv/bin:$PATH"
|
ENV PATH="/opt/venv/bin:$PATH"
|
||||||
|
ENV PYTHONUNBUFFERED="yes"
|
||||||
COPY --from=build /opt/venv /opt/venv
|
COPY --from=build /opt/venv /opt/venv
|
||||||
|
|
||||||
VOLUME /root/.reticulum
|
VOLUME /root/.reticulum
|
||||||
|
|
29
README.md
29
README.md
|
@ -59,25 +59,32 @@ You can install Nomad Network on Android using Termux, but there's a few more co
|
||||||
|
|
||||||
For a native Android application with a graphical user interface, have a look at [Sideband](https://unsigned.io/sideband).
|
For a native Android application with a graphical user interface, have a look at [Sideband](https://unsigned.io/sideband).
|
||||||
|
|
||||||
### Nomad Network Daemon with Docker
|
### Docker Images
|
||||||
|
|
||||||
Nomad Network is automatically published as a docker image on Github Packages. Image tags are one of either `master` (for the latest release) or the version number (eg `0.1.7`) for the specified version number (as tagged in this git repo).
|
|
||||||
|
|
||||||
|
Nomad Network is automatically published as a docker image on Github Packages. Image tags are one of either `master` (for the very latest commit) or the version number (eg `0.1.8`) for a specific release.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker pull ghcr.io/markqvist/nomadnet:master
|
$ docker pull ghcr.io/markqvist/nomadnet:master
|
||||||
|
|
||||||
# Run nomadnet interactively without installing it (with default config)
|
# Run nomadnet interactively without installing it (with default config)
|
||||||
$ docker run -it ghcr.io/markqvist/nomadnet:master
|
$ docker run -it ghcr.io/markqvist/nomadnet:master --textui
|
||||||
|
|
||||||
# Run nomadnet as a daemon, using config stored on the host machine in specific
|
# Run nomadnet as a daemon, using config stored on the host machine in specified
|
||||||
# directories, and allowing access to specific numbered ports openned by nomadnet
|
# directories, and connect the containers network to the host network (which will
|
||||||
# on the host machine on the same port numbers.
|
# allow the default AutoInterface to automatically peer with other discovered
|
||||||
|
# Reticulum instances).
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-v /local/path/nomadnetconfig/:/root/.nomadnetwork/ \
|
-v /local/path/nomadnetconfigdir/:/root/.nomadnetwork/ \
|
||||||
-v /local/path/reticulumconfig/:/root/.reticulum/ \
|
-v /local/path/reticulumconfigdir/:/root/.reticulum/ \
|
||||||
-p 37428:37428 \
|
--network host
|
||||||
-p 37429:37429 \
|
ghcr.io/markqvist/nomadnet:master
|
||||||
|
|
||||||
|
# You can also keep the network of the container isolated from the host, but you
|
||||||
|
# will need to manually configure one or more Reticulum interfaces to reach other
|
||||||
|
# nodes in a network, by editing the Reticulum configuration file.
|
||||||
|
$ docker run -d \
|
||||||
|
-v /local/path/nomadnetconfigdir/:/root/.nomadnetwork/ \
|
||||||
|
-v /local/path/reticulumconfigdir/:/root/.reticulum/ \
|
||||||
ghcr.io/markqvist/nomadnet:master
|
ghcr.io/markqvist/nomadnet:master
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue