Skip to content

Conversation

@jrcichra
Copy link
Collaborator

@jrcichra jrcichra commented Apr 24, 2022

This change makes raspap-docker use supervisord instead of systemd.
The current version is tested to be functional with "out of the box connectivity".
More work is needed to support process restarts from config changes (possibly in raspap-webgui).
The docker container uses the raspap-ansible repo with a slightly modified playbook.
There are a few more outstanding issues that need addressed:

  1. ✅ dhcpcd is not playing nicely inside the container. To get a static ip on wlan0 I had to put the RaspAP config outside of the container on the host's dhcpcd.
  2. ✅ iptable rules need to be handled at 'docker run' time, not at docker build time (where they are excluded)
  3. 🟡 Configuration should be able to persist if a new version of the raspap docker image comes out. Basically let's support volume mounts
  4. ✅A good way to depend on raspap-ansible. Is a submodule overkill? Good enough to git clone inside the docker build?

This PR is a work-in-progress.

This change makes raspap-docker use supervisord instead of systemd.
The current version is tested to be functional with "out of the box connectivity".
More work is needed to support process restarts from config changes (possibly in raspap-webgui).
The docker container uses the raspap-ansible repo with a slightly modified playbook.
There are a few more outstanding issues that need addressed:

1. dhcpcd is not playing nicely inside the container. To get a static ip on wlan0 I had to put the RaspAP config outside of the container on the host's dhcpcd.
2. iptable rules need to be handled at 'docker run' time, not at docker build time (where they are excluded)
3. Configuration should be able to persist if a new version of the raspap docker image comes out. Basically let's support volume mounts
4. A good way to depend on raspap-ansible. Is a submodule overkill? Good enough to git clone inside the docker build?

This PR is a work-in-progress.
Web GUI should be accessible on http://localhost by default
```
Copy `dhcpcd.conf` over your `/etc/dhcpcd.conf` file. We're using the `dhcpcd` binary on the host system, but disabling it from managing `wpa_supplicant`. `wpa_supplicant` is managed inside the RaspAP container.
`docker run --name raspap -it -d --privileged jrcichra/raspap-docker`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implement a build system and reference container here (ghcr.io/raspap/raspap-docker)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like PRs are building to latest - need to change some of the tagging around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants