Rebase sqlitebrowser to 3.16, migrate to s6v3

This commit is contained in:
TheSpad 2022-10-23 14:28:38 +01:00
parent 7dac6120b8
commit 55d2e36df5
No known key found for this signature in database
GPG Key ID: 08F06191F4587860
14 changed files with 39 additions and 12 deletions

View File

@ -18,7 +18,7 @@ jobs:
fi
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_SQLITEBROWSER_MASTER\". ****"
echo "**** Retrieving external version ****"
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:'"sqlitebrowser"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
echo "**** Can't retrieve external version, exiting ****"

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:alpine
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:3.16
# set version label
ARG BUILD_DATE
@ -12,8 +12,12 @@ ENV TITLE=SQLiteBrowser
RUN \
echo "**** install packages ****" && \
if [ -z ${SQLITEB_VERSION+x} ]; then \
SQLITEB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:sqlitebrowser$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
fi && \
apk add --no-cache \
sqlitebrowser && \
sqlitebrowser==${SQLITEB_VERSION} && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
@ -23,4 +27,5 @@ COPY /root /
# ports and volumes
EXPOSE 3000
VOLUME /config

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm64v8-alpine
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm64v8-3.16
# set version label
ARG BUILD_DATE
@ -12,8 +12,12 @@ ENV TITLE=SQLiteBrowser
RUN \
echo "**** install packages ****" && \
if [ -z ${SQLITEB_VERSION+x} ]; then \
SQLITEB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:sqlitebrowser$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
fi && \
apk add --no-cache \
sqlitebrowser && \
sqlitebrowser==${SQLITEB_VERSION} && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
@ -23,4 +27,5 @@ COPY /root /
# ports and volumes
EXPOSE 3000
VOLUME /config

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm32v7-alpine
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm32v7-3.16
# set version label
ARG BUILD_DATE
@ -12,8 +12,12 @@ ENV TITLE=SQLiteBrowser
RUN \
echo "**** install packages ****" && \
if [ -z ${SQLITEB_VERSION+x} ]; then \
SQLITEB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:sqlitebrowser$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
fi && \
apk add --no-cache \
sqlitebrowser && \
sqlitebrowser==${SQLITEB_VERSION} && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
@ -23,4 +27,5 @@ COPY /root /
# ports and volumes
EXPOSE 3000
VOLUME /config

4
Jenkinsfile vendored
View File

@ -25,8 +25,8 @@ pipeline {
DEV_DOCKERHUB_IMAGE = 'lsiodev/sqlitebrowser'
PR_DOCKERHUB_IMAGE = 'lspipepr/sqlitebrowser'
DIST_IMAGE = 'alpine'
DIST_TAG = '3.15'
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.15/community/'
DIST_TAG = '3.16'
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.16/community/'
DIST_REPO_PACKAGES = 'sqlitebrowser'
MULTIARCH='true'
CI='true'

View File

@ -77,6 +77,8 @@ services:
sqlitebrowser:
image: lscr.io/linuxserver/sqlitebrowser:latest
container_name: sqlitebrowser
security_opt:
- seccomp:unconfined #optional
environment:
- PUID=1000
- PGID=1000
@ -93,6 +95,7 @@ services:
```bash
docker run -d \
--name=sqlitebrowser \
--security-opt seccomp=unconfined `#optional` \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
@ -113,6 +116,7 @@ Container images are configured using parameters passed at runtime (such as thos
| `-e PGID=1000` | for GroupID - see below for explanation |
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London. |
| `-v /config` | Users home directory in the container, stores program settings and potentially dump files. |
| `--security-opt seccomp=unconfined` | For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker. |
## Environment variables from files (Docker secrets)
@ -223,6 +227,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **23.10.22:** - Rebase to Alpine 3.16, migrate to s6v3.
* **16.02.22:** - Rebase to Alpine.
* **20.01.21:** - Remove Wireshark reference.
* **29.07.20:** - Initial release.

View File

@ -15,8 +15,8 @@ repo_vars:
- DEV_DOCKERHUB_IMAGE = 'lsiodev/sqlitebrowser'
- PR_DOCKERHUB_IMAGE = 'lspipepr/sqlitebrowser'
- DIST_IMAGE = 'alpine'
- DIST_TAG = '3.15'
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.15/community/'
- DIST_TAG = '3.16'
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.16/community/'
- DIST_REPO_PACKAGES = 'sqlitebrowser'
- MULTIARCH='true'
- CI='true'

View File

@ -29,6 +29,9 @@ param_volumes:
param_usage_include_ports: true
param_ports:
- { external_port: "3000", internal_port: "3000", port_desc: "Sqlitebrowser desktop gui." }
opt_security_opt_param: true
opt_security_opt_param_vars:
- { run_var: "seccomp=unconfined", compose_var: "seccomp:unconfined", desc: "For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker." }
# application setup block
app_setup_block_enabled: true
@ -40,6 +43,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "23.10.22:", desc: "Rebase to Alpine 3.16, migrate to s6v3." }
- { date: "16.02.22:", desc: "Rebase to Alpine." }
- { date: "20.01.21:", desc: "Remove Wireshark reference." }
- { date: "29.07.20:", desc: "Initial release." }

View File

@ -1,7 +1,8 @@
#!/usr/bin/with-contenv bash
# default file copies first run
[[ ! -f /config/.config/openbox/menu.xml ]] && \
if [[ ! -f /config/.config/openbox/menu.xml ]]; then
mkdir -p /config/.config/openbox && \
cp /defaults/menu.xml /config/.config/openbox/menu.xml && \
chown -R abc:abc /config/.config
fi

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-openboxcopy/run