Skip to content

Commit

Permalink
wifi-connect: temporary fix (#143)
Browse files Browse the repository at this point in the history
* wifi-connect: temporary fix

Temporary fix for #142
- pull in required changes from balena-os/wifi-connect#566
- increase timeout from 120 seconds to 180 seconds

Closes: #142

* fix: dbus address error

Fixes the error `D-Bus error: In D-Bus address, character '"' should have been escaped`
  • Loading branch information
shawaj authored Aug 26, 2024
1 parent e76eed1 commit 05acf78
Show file tree
Hide file tree
Showing 4 changed files with 23,301 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ services:
restart: unless-stopped
network_mode: host
environment:
- DBUS_SYSTEM_BUS_ADDRESS="unix:path=/host/run/dbus/system_bus_socket"
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
- PORTAL_LISTENING_PORT=8181
- PORTAL_SSID=balenaWiFi
- PORTAL_PASSPHRASE=balenaWiFi
- ACTIVITY_TIMEOUT=120
- ACTIVITY_TIMEOUT=180
ports:
- "8181:8181"
cap_add:
Expand Down
15 changes: 12 additions & 3 deletions wifi-connect/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ FROM balenalib/$BALENA_ARCH-debian
LABEL maintainer="https://github.com/ketilmo"
ARG BALENA_ARCH=%%BALENA_ARCH%%


RUN install_packages dnsmasq wireless-tools
RUN install_packages dnsmasq wireless-tools git npm

# use latest version. If specific version is required, it should be provided as vX.Y.Z, e.g v4.11.37
ARG VERSION="latest"
Expand All @@ -30,7 +29,17 @@ RUN \
export URL_PARTIAL="download/${VERSION}" ; \
fi; \
curl -Ls "$BASE_URL/$URL_PARTIAL/wifi-connect-$BINARY_ARCH_NAME.tar.gz" \
| tar -xvz -C /usr/src/app/
| tar -xvz -C /usr/src/app/ &&\
mkdir tmp && cd tmp &&\
git clone -b master --single-branch https://github.com/balena-os/wifi-connect

COPY package.json /usr/src/app/tmp/wifi-connect/ui/
COPY package-lock.json /usr/src/app/tmp/wifi-connect/ui/

RUN cd /usr/src/app/tmp/wifi-connect/ui && npm ci && npm run build &&\
mv /usr/src/app/tmp/wifi-connect/ui/build /usr/src/app/ui &&\
cd /usr/src/app && rm -rf tmp &&\
apt-get purge git npm && apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*

COPY start.sh .

Expand Down
Loading

0 comments on commit 05acf78

Please sign in to comment.