-
-
Notifications
You must be signed in to change notification settings - Fork 31
feat(v2): supervisord controlled container #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
jrcichra
wants to merge
8
commits into
master
Choose a base branch
from
docker-v2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e12e537
feat(v2): supervisord controlled container
jrcichra fee3102
ansible runtime portion for network
jrcichra d9dae6c
remove unused file
jrcichra 6b89fc1
out-of-the-box works
jrcichra f3f3ee7
wpa_supplicant placement
jrcichra 6cd8ba2
build on PRs
jrcichra 21a8d71
only build for pi 32 and 64 bits
jrcichra 4f2e480
test build with fork
jrcichra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| raspap-ansible | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,13 @@ | ||
| FROM alehaa/debian-systemd:buster | ||
| RUN apt update && apt install -y sudo wget procps curl systemd && rm -rf /var/lib/apt/lists/* | ||
| COPY setup.sh . | ||
| FROM balenalib/raspberrypi3:bullseye-20220714 | ||
| WORKDIR /app | ||
| RUN mkdir -p /etc/wpa_supplicant/ | ||
| COPY wpa_supplicant.conf /etc/wpa_supplicant/ | ||
| RUN install_packages ansible git supervisor | ||
| # Use different git branch for development | ||
| RUN git clone --single-branch --branch jcichra/docker2 https://github.com/jrcichra/raspap-ansible | ||
| #RUN git clone https://github.com/RaspAP/raspap-ansible | ||
| RUN /bin/bash -c 'cd raspap-ansible && ansible-playbook docker.yaml' | ||
| RUN mkdir -p /var/run/lighttpd && chmod 777 /var/run/lighttpd | ||
| COPY supervisord.conf /app/ | ||
| ENTRYPOINT ["/usr/bin/supervisord","-n","-c","/app/supervisord.conf"] | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # RaspAP default configuration | ||
| hostname | ||
| clientid | ||
| persistent | ||
| option rapid_commit | ||
| option domain_name_servers, domain_name, domain_search, host_name | ||
| option classless_static_routes | ||
| option ntp_servers | ||
| require dhcp_server_identifier | ||
| slaac private | ||
| nohook lookup-hostname | ||
|
|
||
| # RaspAP wlan0 configuration | ||
| interface wlan0 | ||
| static ip_address=10.3.141.1/24 | ||
| static routers=10.3.141.1 | ||
| static domain_name_server=9.9.9.9 1.1.1.1 | ||
| nohook wpa_supplicant | ||
|
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| [unix_http_server] | ||
| file=/tmp/supervisor.sock | ||
|
|
||
| [supervisord] | ||
|
|
||
| [supervisorctl] | ||
| serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket | ||
|
|
||
| [program:lighttpd] | ||
| command=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf | ||
| stdout_logfile=/dev/fd/1 | ||
| stdout_logfile_maxbytes=0 | ||
|
|
||
| [program:wpa] | ||
| command=/sbin/wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -d -O /run/wpa_supplicant | ||
| stdout_logfile=/dev/fd/1 | ||
| stdout_logfile_maxbytes=0 | ||
|
|
||
| [program:raspapd] | ||
| command=/bin/bash /etc/raspap/hostapd/servicestart.sh --interface br0 --seconds 3 | ||
| stdout_logfile=/dev/fd/1 | ||
| stdout_logfile_maxbytes=0 | ||
|
|
||
| [program:hostapd] | ||
| environment=DAEMON_CONF="/etc/hostapd/hostapd.conf" | ||
| command=/bin/bash -c 'source /etc/default/hostapd && /usr/sbin/hostapd -f /tmp/hostapd.log -P /run/hostapd.pid $DAEMON_OPTS ${DAEMON_CONF}' | ||
| stdout_logfile=/dev/fd/1 | ||
| stdout_logfile_maxbytes=0 | ||
|
|
||
| [program:dnsmasq] | ||
| command=/usr/sbin/dnsmasq -k -x /run/dnsmasq/dnsmasq.pid -r /run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d | ||
| stdout_logfile=/dev/fd/1 | ||
| stdout_logfile_maxbytes=0 | ||
|
|
||
| [program:network-ansible] | ||
| command=/bin/bash -c 'cd raspap-ansible && ansible-playbook docker-runtime.yaml' | ||
| stdout_logfile=/dev/fd/1 | ||
| stdout_logfile_maxbytes=0 | ||
|
|
||
| ;[program:dhcpcd] | ||
| ;command=/sbin/dhcpcd -B -d | ||
| ;stdout_logfile=/dev/fd/1 | ||
| ;stdout_logfile_maxbytes=0 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | ||
| update_config=1 | ||
| country=US | ||
jrcichra marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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.