Skip to content

Commit 4cf6725

Browse files
authored
Merge pull request #4 from linuxserver/s6v3-master
2 parents 7dac612 + 0c0fee0 commit 4cf6725

File tree

14 files changed

+42
-12
lines changed

14 files changed

+42
-12
lines changed

.github/workflows/external_trigger.yml

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

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:alpine
1+
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:3.16
22

33
# set version label
44
ARG BUILD_DATE
@@ -12,8 +12,13 @@ ENV TITLE=SQLiteBrowser
1212

1313
RUN \
1414
echo "**** install packages ****" && \
15+
if [ -z ${SQLITEB_VERSION+x} ]; then \
16+
SQLITEB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
17+
&& awk '/^P:sqlitebrowser$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
18+
fi && \
1519
apk add --no-cache \
16-
sqlitebrowser && \
20+
sqlitebrowser==${SQLITEB_VERSION} && \
21+
sed -i 's|</applications>| <application title="DB Browser for SQLite" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
1722
echo "**** cleanup ****" && \
1823
rm -rf \
1924
/tmp/*
@@ -23,4 +28,5 @@ COPY /root /
2328

2429
# ports and volumes
2530
EXPOSE 3000
31+
2632
VOLUME /config

Dockerfile.aarch64

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm64v8-alpine
1+
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm64v8-3.16
22

33
# set version label
44
ARG BUILD_DATE
@@ -12,8 +12,13 @@ ENV TITLE=SQLiteBrowser
1212

1313
RUN \
1414
echo "**** install packages ****" && \
15+
if [ -z ${SQLITEB_VERSION+x} ]; then \
16+
SQLITEB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
17+
&& awk '/^P:sqlitebrowser$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
18+
fi && \
1519
apk add --no-cache \
16-
sqlitebrowser && \
20+
sqlitebrowser==${SQLITEB_VERSION} && \
21+
sed -i 's|</applications>| <application title="DB Browser for SQLite" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
1722
echo "**** cleanup ****" && \
1823
rm -rf \
1924
/tmp/*
@@ -23,4 +28,5 @@ COPY /root /
2328

2429
# ports and volumes
2530
EXPOSE 3000
31+
2632
VOLUME /config

Dockerfile.armhf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm32v7-alpine
1+
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm32v7-3.16
22

33
# set version label
44
ARG BUILD_DATE
@@ -12,8 +12,13 @@ ENV TITLE=SQLiteBrowser
1212

1313
RUN \
1414
echo "**** install packages ****" && \
15+
if [ -z ${SQLITEB_VERSION+x} ]; then \
16+
SQLITEB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
17+
&& awk '/^P:sqlitebrowser$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
18+
fi && \
1519
apk add --no-cache \
16-
sqlitebrowser && \
20+
sqlitebrowser==${SQLITEB_VERSION} && \
21+
sed -i 's|</applications>| <application title="DB Browser for SQLite" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
1722
echo "**** cleanup ****" && \
1823
rm -rf \
1924
/tmp/*
@@ -23,4 +28,5 @@ COPY /root /
2328

2429
# ports and volumes
2530
EXPOSE 3000
31+
2632
VOLUME /config

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ pipeline {
2525
DEV_DOCKERHUB_IMAGE = 'lsiodev/sqlitebrowser'
2626
PR_DOCKERHUB_IMAGE = 'lspipepr/sqlitebrowser'
2727
DIST_IMAGE = 'alpine'
28-
DIST_TAG = '3.15'
29-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.15/community/'
28+
DIST_TAG = '3.16'
29+
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.16/community/'
3030
DIST_REPO_PACKAGES = 'sqlitebrowser'
3131
MULTIARCH='true'
3232
CI='true'

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ services:
7777
sqlitebrowser:
7878
image: lscr.io/linuxserver/sqlitebrowser:latest
7979
container_name: sqlitebrowser
80+
security_opt:
81+
- seccomp:unconfined #optional
8082
environment:
8183
- PUID=1000
8284
- PGID=1000
@@ -93,6 +95,7 @@ services:
9395
```bash
9496
docker run -d \
9597
--name=sqlitebrowser \
98+
--security-opt seccomp=unconfined `#optional` \
9699
-e PUID=1000 \
97100
-e PGID=1000 \
98101
-e TZ=Europe/London \
@@ -113,6 +116,7 @@ Container images are configured using parameters passed at runtime (such as thos
113116
| `-e PGID=1000` | for GroupID - see below for explanation |
114117
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London. |
115118
| `-v /config` | Users home directory in the container, stores program settings and potentially dump files. |
119+
| `--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. |
116120

117121
## Environment variables from files (Docker secrets)
118122

@@ -223,6 +227,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
223227

224228
## Versions
225229

230+
* **23.10.22:** - Rebase to Alpine 3.16, migrate to s6v3.
226231
* **16.02.22:** - Rebase to Alpine.
227232
* **20.01.21:** - Remove Wireshark reference.
228233
* **29.07.20:** - Initial release.

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ repo_vars:
1515
- DEV_DOCKERHUB_IMAGE = 'lsiodev/sqlitebrowser'
1616
- PR_DOCKERHUB_IMAGE = 'lspipepr/sqlitebrowser'
1717
- DIST_IMAGE = 'alpine'
18-
- DIST_TAG = '3.15'
19-
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.15/community/'
18+
- DIST_TAG = '3.16'
19+
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.16/community/'
2020
- DIST_REPO_PACKAGES = 'sqlitebrowser'
2121
- MULTIARCH='true'
2222
- CI='true'

readme-vars.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ param_volumes:
2929
param_usage_include_ports: true
3030
param_ports:
3131
- { external_port: "3000", internal_port: "3000", port_desc: "Sqlitebrowser desktop gui." }
32+
opt_security_opt_param: true
33+
opt_security_opt_param_vars:
34+
- { 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." }
3235

3336
# application setup block
3437
app_setup_block_enabled: true
@@ -40,6 +43,7 @@ app_setup_block: |
4043
4144
# changelog
4245
changelogs:
46+
- { date: "23.10.22:", desc: "Rebase to Alpine 3.16, migrate to s6v3." }
4347
- { date: "16.02.22:", desc: "Rebase to Alpine." }
4448
- { date: "20.01.21:", desc: "Remove Wireshark reference." }
4549
- { date: "29.07.20:", desc: "Initial release." }

root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-openboxcopy

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-openboxcopy/dependencies.d/init-config

Whitespace-only changes.

0 commit comments

Comments
 (0)