Skip to content

Commit 823febf

Browse files
committed
switch to new upstream repo, publish aarch64 image
1 parent 3df46d6 commit 823febf

File tree

8 files changed

+77
-19
lines changed

8 files changed

+77
-19
lines changed

.github/ISSUE_TEMPLATE/issue.bug.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ body:
5252
label: CPU architecture
5353
options:
5454
- x86-64
55+
- arm64
5556
validations:
5657
required: true
5758
- type: textarea

.github/workflows/external_trigger.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
2424
echo "> External trigger running off of master branch. To disable this trigger, add \`librewolf_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
2525
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
26-
EXT_RELEASE=$(curl -sL https://deb.librewolf.net/dists/bookworm/main/binary-amd64/Packages |grep -A 4 'Package: librewolf' | awk '/Version:/ {print $2}' |sort -V | tail -1)
26+
EXT_RELEASE=$(curl -sL https://repo.librewolf.net/dists/librewolf/main/binary-amd64/Packages |grep -A 4 'Package: librewolf' | awk '/Version:/ {print $2}' |sort -V | tail -1)
2727
echo "Type is \`custom_version_command\`" >> $GITHUB_STEP_SUMMARY
2828
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2929
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
@@ -43,10 +43,15 @@ jobs:
4343
token=$(curl -sX GET \
4444
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Flibrewolf%3Apull" \
4545
| jq -r '.token')
46-
digest=$(curl -s \
46+
multidigest=$(curl -s \
4747
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
4848
--header "Authorization: Bearer ${token}" \
4949
"https://ghcr.io/v2/${image}/manifests/${tag}" \
50+
| jq -r 'first(.manifests[].digest)')
51+
digest=$(curl -s \
52+
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
53+
--header "Authorization: Bearer ${token}" \
54+
"https://ghcr.io/v2/${image}/manifests/${multidigest}" \
5055
| jq -r '.config.digest')
5156
image_info=$(curl -sL \
5257
--header "Authorization: Bearer ${token}" \

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm
24

35
# set version label
@@ -18,17 +20,18 @@ RUN \
1820
echo "**** install packages ****" && \
1921
apt-get update && \
2022
if [ -z ${LIBREWOLF_VERSION+x} ]; then \
21-
LIBREWOLF_VERSION=$(curl -sL https://deb.librewolf.net/dists/bookworm/main/binary-amd64/Packages \
23+
LIBREWOLF_VERSION=$(curl -sL https://repo.librewolf.net/dists/librewolf/main/binary-amd64/Packages \
2224
| grep -A 4 'Package: librewolf' \
2325
| awk '/Version:/ {print $2}' \
2426
| sort -V \
2527
| tail -1); \
2628
fi && \
2729
curl -o \
2830
/tmp/librewolf.deb -L \
29-
"https://deb.librewolf.net/pool/bookworm/librewolf-${LIBREWOLF_VERSION}.en-US.debian12.x86_64.deb" && \
31+
"https://repo.librewolf.net/pool/librewolf-${LIBREWOLF_VERSION}-linux-x86_64-deb.deb" && \
3032
apt install -y --no-install-recommends \
3133
/tmp/librewolf.deb && \
34+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
3235
echo "**** cleanup ****" && \
3336
apt-get autoclean && \
3437
rm -rf \

Dockerfile.aarch64

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# syntax=docker/dockerfile:1
2+
3+
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-debianbookworm
4+
5+
# set version label
6+
ARG BUILD_DATE
7+
ARG VERSION
8+
ARG LIBREWOLF_VERSION
9+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
10+
LABEL maintainer="thelamer"
11+
12+
# title
13+
ENV TITLE=LibreWolf
14+
15+
RUN \
16+
echo "**** add icon ****" && \
17+
curl -o \
18+
/kclient/public/icon.png \
19+
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/librewolf-logo.png && \
20+
echo "**** install packages ****" && \
21+
apt-get update && \
22+
if [ -z ${LIBREWOLF_VERSION+x} ]; then \
23+
LIBREWOLF_VERSION=$(curl -sL https://repo.librewolf.net/dists/librewolf/main/binary-amd64/Packages \
24+
| grep -A 4 'Package: librewolf' \
25+
| awk '/Version:/ {print $2}' \
26+
| sort -V \
27+
| tail -1); \
28+
fi && \
29+
curl -o \
30+
/tmp/librewolf.deb -L \
31+
"https://repo.librewolf.net/pool/librewolf-${LIBREWOLF_VERSION}-linux-arm64-deb.deb" && \
32+
apt install -y --no-install-recommends \
33+
/tmp/librewolf.deb && \
34+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
35+
echo "**** cleanup ****" && \
36+
apt-get autoclean && \
37+
rm -rf \
38+
/config/.cache \
39+
/var/lib/apt/lists/* \
40+
/var/tmp/* \
41+
/tmp/*
42+
43+
# add local files
44+
COPY /root /
45+
46+
# ports and volumes
47+
EXPOSE 3000
48+
49+
VOLUME /config

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ pipeline {
2727
DEV_DOCKERHUB_IMAGE = 'lsiodev/librewolf'
2828
PR_DOCKERHUB_IMAGE = 'lspipepr/librewolf'
2929
DIST_IMAGE = 'ubuntu'
30-
MULTIARCH = 'false'
30+
MULTIARCH = 'true'
3131
CI = 'true'
3232
CI_WEB = 'true'
3333
CI_PORT = '3000'
3434
CI_SSL = 'false'
3535
CI_DELAY = '120'
36-
CI_DOCKERENV = 'TZ=US/Pacific'
37-
CI_AUTH = 'user:password'
36+
CI_DOCKERENV = ''
37+
CI_AUTH = ''
3838
CI_WEBPATH = ''
3939
}
4040
stages {
@@ -131,7 +131,7 @@ pipeline {
131131
steps{
132132
script{
133133
env.EXT_RELEASE = sh(
134-
script: ''' curl -sL https://deb.librewolf.net/dists/bookworm/main/binary-amd64/Packages |grep -A 4 'Package: librewolf' | awk '/Version:/ {print $2}' |sort -V | tail -1 ''',
134+
script: ''' curl -sL https://repo.librewolf.net/dists/librewolf/main/binary-amd64/Packages |grep -A 4 'Package: librewolf' | awk '/Version:/ {print $2}' |sort -V | tail -1 ''',
135135
returnStdout: true).trim()
136136
env.RELEASE_LINK = 'custom_command'
137137
}

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The architectures supported by this image are:
5454
| Architecture | Available | Tag |
5555
| :----: | :----: | ---- |
5656
| x86-64 || amd64-\<version tag\> |
57-
| arm64 | | |
57+
| arm64 | | arm64v8-\<version tag\> |
5858
| armhf || |
5959

6060
## Application Setup
@@ -116,7 +116,7 @@ services:
116116
- TZ=Etc/UTC
117117
- LIBREWOLF_CLI=https://www.linuxserver.io/ #optional
118118
volumes:
119-
- /path/to/config:/config
119+
- /path/to/librewolf/config:/config
120120
ports:
121121
- 3000:3000
122122
- 3001:3001
@@ -136,7 +136,7 @@ docker run -d \
136136
-e LIBREWOLF_CLI=https://www.linuxserver.io/ `#optional` \
137137
-p 3000:3000 \
138138
-p 3001:3001 \
139-
-v /path/to/config:/config \
139+
-v /path/to/librewolf/config:/config \
140140
--shm-size="1gb" \
141141
--restart unless-stopped \
142142
lscr.io/linuxserver/librewolf:latest
@@ -320,4 +320,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
320320

321321
## Versions
322322

323+
* **12.10.24:** - Publish aarch64 image. Switch to new upstream repo.
323324
* **09.04.24:** - Initial release.

jenkins-vars.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# jenkins variables
44
project_name: docker-librewolf
55
external_type: na
6-
custom_version_command: "curl -sL https://deb.librewolf.net/dists/bookworm/main/binary-amd64/Packages |grep -A 4 'Package: librewolf' | awk '/Version:/ {print $2}' |sort -V | tail -1"
6+
custom_version_command: "curl -sL https://repo.librewolf.net/dists/librewolf/main/binary-amd64/Packages |grep -A 4 'Package: librewolf' | awk '/Version:/ {print $2}' |sort -V | tail -1"
77
release_type: stable
88
release_tag: latest
99
ls_branch: master
@@ -16,12 +16,12 @@ repo_vars:
1616
- DEV_DOCKERHUB_IMAGE = 'lsiodev/librewolf'
1717
- PR_DOCKERHUB_IMAGE = 'lspipepr/librewolf'
1818
- DIST_IMAGE = 'ubuntu'
19-
- MULTIARCH = 'false'
19+
- MULTIARCH = 'true'
2020
- CI = 'true'
2121
- CI_WEB = 'true'
2222
- CI_PORT = '3000'
2323
- CI_SSL = 'false'
2424
- CI_DELAY = '120'
25-
- CI_DOCKERENV = 'TZ=US/Pacific'
26-
- CI_AUTH = 'user:password'
25+
- CI_DOCKERENV = ''
26+
- CI_AUTH = ''
2727
- CI_WEBPATH = ''

readme-vars.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@ project_blurb_optional_extras_enabled: false
1111
# supported architectures
1212
available_architectures:
1313
- { arch: "{{ arch_x86_64 }}", tag: "latest"}
14+
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
1415

1516
# development version
1617
development_versions: false
1718

1819
# container parameters
1920
common_param_env_vars_enabled: true
2021
param_container_name: "{{ project_name }}"
21-
param_usage_include_env: true
22-
param_env_vars:
23-
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London." }
2422
param_usage_include_vols: true
2523
param_volumes:
26-
- { vol_path: "/config", vol_host_path: "/path/to/config", desc: "Users home directory in the container, stores local files and settings" }
24+
- { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Users home directory in the container, stores local files and settings" }
2725
param_usage_include_ports: true
2826
param_ports:
2927
- { external_port: "3000", internal_port: "3000", port_desc: "LibreWolf desktop gui." }
@@ -80,4 +78,5 @@ app_setup_block: |
8078
8179
# changelog
8280
changelogs:
81+
- { date: "12.10.24:", desc: "Publish aarch64 image. Switch to new upstream repo." }
8382
- { date: "09.04.24:", desc: "Initial release." }

0 commit comments

Comments
 (0)