Skip to content

Commit

Permalink
Rebase to 3.21
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Dec 21, 2024
1 parent 74534b1 commit 8e6faaa
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/baseimage-alpine:3.20
FROM ghcr.io/linuxserver/baseimage-alpine:3.21

# set version label
ARG BUILD_DATE
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21

# set version label
ARG BUILD_DATE
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ This is especially useful if you connect to your instance via a VPN as most VPN

This image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).

## Non-Root Operation

This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).

## Usage

To help you get started creating a container from this image you can either use docker-compose or the docker cli.
Expand Down Expand Up @@ -141,6 +145,7 @@ Containers are configured using parameters passed at runtime (such as those abov
| `-e RTC_CONFIG=` | Path to a json file containing custom STUN/TURN config (see App Setup notes) |
| `-e DEBUG_MODE=false` | Set to `true` to debug the http server configuration by logging clients IP addresses used by PairDrop to STDOUT. [See here for more info](https://github.com/schlagmichdoch/PairDrop/blob/master/docs/host-your-own.md#debug-mode). Do not use in production! |
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |

## Environment variables from files (Docker secrets)

Expand Down Expand Up @@ -304,6 +309,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64

## Versions

* **21.12.24:** - Rebase to Alpine 3.20.
* **31.05.24:** - Rebase to Alpine 3.20.
* **31.01.24:** - Rebase to Alpine 3.19.
* **30.05.23:** - Rebase to Alpine 3.18.
Expand Down
2 changes: 2 additions & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ param_usage_include_ports: true
param_ports:
- {external_port: "3000", internal_port: "3000", port_desc: "http gui"}
readonly_supported: true
nonroot_supported: true
# application setup block
app_setup_block_enabled: true
app_setup_block: |
Expand Down Expand Up @@ -88,6 +89,7 @@ init_diagram: |
"pairdrop:latest" <- Base Images
# changelog
changelogs:
- {date: "21.12.24:", desc: "Rebase to Alpine 3.20."}
- {date: "31.05.24:", desc: "Rebase to Alpine 3.20."}
- {date: "31.01.24:", desc: "Rebase to Alpine 3.19."}
- {date: "30.05.23:", desc: "Rebase to Alpine 3.18."}
Expand Down
7 changes: 4 additions & 3 deletions root/etc/s6-overlay/s6-rc.d/init-pairdrop-config/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

# permissions
lsiown -R abc:abc \
/config
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
lsiown -R abc:abc \
/config
fi
12 changes: 9 additions & 3 deletions root/etc/s6-overlay/s6-rc.d/svc-pairdrop/run
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ if [[ ${WS_FALLBACK,,} = "true" ]]; then
OPT_WS_FALLBACK="--include-ws-fallback"
fi

HOME=/config exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
cd /app/pairdrop s6-setuidgid abc npm start -- "${OPT_RATE_LIMIT}" "${OPT_WS_FALLBACK}"
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
HOME=/config exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
cd /app/pairdrop s6-setuidgid abc npm start -- "${OPT_RATE_LIMIT}" "${OPT_WS_FALLBACK}"
else
HOME=/config exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
cd /app/pairdrop npm start -- "${OPT_RATE_LIMIT}" "${OPT_WS_FALLBACK}"
fi

0 comments on commit 8e6faaa

Please sign in to comment.