Skip to content

Commit

Permalink
fixup nginx (sdr-enthusiasts#31)
Browse files Browse the repository at this point in the history
* fix location of nginx config file

use bash in Dockerfile

fix nginx config file

* fix wait / service logic
  • Loading branch information
wiedehopf committed May 9, 2024
1 parent 5ccdfb1 commit 7413acc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ghcr.io/sdr-enthusiasts/docker-baseimage:base

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# hadolint ignore=DL3008,DL3003,SC1091
RUN set -x && \
#
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/nginx.conf → rootfs/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ http {
server {
server_name _;
listen 80 default_server;
root /var/www/html
root /var/www/html;

error_page 500 502 503 504 /50x.html;

Expand Down
3 changes: 2 additions & 1 deletion rootfs/etc/s6-overlay/scripts/airspy_adsb
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,5 @@ sleep 10 &
"${s6wrap[@]}" "${AIRSPY_ADSB_BIN}" "${AIRSPY_ADSB_CMD[@]}" &

# trap will only work properly while the shell is running / waiting, not while another program is being foreground executed
wait || true
# the first wait exits due to the signal which is trapped, the 2nd wait actually waits for collectd to exit
wait || wait || true

0 comments on commit 7413acc

Please sign in to comment.