Skip to content

Commit 56ef2f2

Browse files
authored
Merge pull request #88 from linuxserver/3.20
Rebase to 3.20
2 parents 7228466 + 2178767 commit 56ef2f2

8 files changed

Lines changed: 25 additions & 35 deletions

File tree

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_OPENSSH_SERVER_MASTER\". ****"
2121
echo "External trigger running off of master branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_OPENSSH_SERVER_MASTER\`" >> $GITHUB_STEP_SUMMARY
2222
echo "**** Retrieving external version ****"
23-
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
23+
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2424
&& awk '/^P:'"openssh-server-pam"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
2525
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2626
echo "**** Can't retrieve external version, exiting ****"
@@ -74,7 +74,7 @@ jobs:
7474
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
7575
echo "Version ${EXT_RELEASE} already pushed, exiting" >> $GITHUB_STEP_SUMMARY
7676
exit 0
77-
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"openssh-server-pam"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
77+
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"openssh-server-pam"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
7878
echo "**** New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting ****"
7979
echo "New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
8080
FAILURE_REASON="New version ${EXT_RELEASE} for openssh-server tag latest is detected, however not all arch repos are updated yet. Will try again later."

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:3.19
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
44

55
# set version label
66
ARG BUILD_DATE
@@ -18,13 +18,14 @@ RUN \
1818
sudo && \
1919
echo "**** install openssh-server ****" && \
2020
if [ -z ${OPENSSH_RELEASE+x} ]; then \
21-
OPENSSH_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp && \
21+
OPENSSH_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp && \
2222
awk '/^P:openssh-server-pam$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
2323
fi && \
2424
apk add --no-cache \
2525
openssh-client==${OPENSSH_RELEASE} \
2626
openssh-server-pam==${OPENSSH_RELEASE} \
2727
openssh-sftp-server==${OPENSSH_RELEASE} && \
28+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
2829
echo "**** setup openssh environment ****" && \
2930
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && \
3031
usermod --shell /bin/bash abc && \

Dockerfile.aarch64

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
44

55
# set version label
66
ARG BUILD_DATE
@@ -18,13 +18,14 @@ RUN \
1818
sudo && \
1919
echo "**** install openssh-server ****" && \
2020
if [ -z ${OPENSSH_RELEASE+x} ]; then \
21-
OPENSSH_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && \
21+
OPENSSH_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && \
2222
awk '/^P:openssh-server-pam$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
2323
fi && \
2424
apk add --no-cache \
2525
openssh-client==${OPENSSH_RELEASE} \
2626
openssh-server-pam==${OPENSSH_RELEASE} \
2727
openssh-sftp-server==${OPENSSH_RELEASE} && \
28+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
2829
echo "**** setup openssh environment ****" && \
2930
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && \
3031
usermod --shell /bin/bash abc && \

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ pipeline {
2626
PR_DOCKERHUB_IMAGE = 'lspipepr/openssh-server'
2727
DIST_IMAGE = 'alpine'
2828
DIST_TAG = '3.18'
29-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
29+
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.20/main/'
3030
DIST_REPO_PACKAGES = 'openssh-server-pam'
3131
MULTIARCH='true'
3232
CI='true'
3333
CI_WEB='false'
3434
CI_PORT='80'
3535
CI_SSL='false'
3636
CI_DELAY='60'
37-
CI_DOCKERENV='TZ=US/Pacific'
38-
CI_AUTH='user:password'
37+
CI_DOCKERENV=''
38+
CI_AUTH=''
3939
CI_WEBPATH=''
4040
}
4141
stages {

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ services:
121121
- USER_NAME=linuxserver.io #optional
122122
- LOG_STDOUT= #optional
123123
volumes:
124-
- /path/to/appdata/config:/config
124+
- /path/to/openssh-server/config:/config
125125
ports:
126126
- 2222:2222
127127
restart: unless-stopped
@@ -147,7 +147,7 @@ docker run -d \
147147
-e USER_NAME=linuxserver.io `#optional` \
148148
-e LOG_STDOUT= `#optional` \
149149
-p 2222:2222 \
150-
-v /path/to/appdata/config:/config \
150+
-v /path/to/openssh-server/config:/config \
151151
--restart unless-stopped \
152152
lscr.io/linuxserver/openssh-server:latest
153153
```
@@ -336,6 +336,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
336336

337337
## Versions
338338

339+
* **31.05.24:** - Rebase to Alpine 3.20.
339340
* **04.05.24:** - Display the SSH host public keys every time the container starts.
340341
* **09.03.24:** - Rebase to Alpine 3.19.
341342
* **12.06.23:** - Rebase to Alpine 3.18, deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)

jenkins-vars.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ external_type: alpine_repo
66
release_type: stable
77
release_tag: latest
88
ls_branch: master
9-
build_armhf: false
109
repo_vars:
1110
- CONTAINER_NAME = 'openssh-server'
1211
- BUILD_VERSION_ARG = 'OPENSSH_RELEASE'
@@ -17,14 +16,14 @@ repo_vars:
1716
- PR_DOCKERHUB_IMAGE = 'lspipepr/openssh-server'
1817
- DIST_IMAGE = 'alpine'
1918
- DIST_TAG = '3.18'
20-
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
19+
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.20/main/'
2120
- DIST_REPO_PACKAGES = 'openssh-server-pam'
2221
- MULTIARCH='true'
2322
- CI='true'
2423
- CI_WEB='false'
2524
- CI_PORT='80'
2625
- CI_SSL='false'
2726
- CI_DELAY='60'
28-
- CI_DOCKERENV='TZ=US/Pacific'
29-
- CI_AUTH='user:password'
27+
- CI_DOCKERENV=''
28+
- CI_AUTH=''
3029
- CI_WEBPATH=''

readme-vars.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_
1010
available_architectures:
1111
- {arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
1212
- {arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
13-
# development version
14-
development_versions: false
13+
1514
# container parameters
1615
common_param_env_vars_enabled: true
1716
param_container_name: "{{ project_name }}"
@@ -20,13 +19,10 @@ param_hostname: "{{ project_name }}"
2019
param_hostname_desc: "Optionally the hostname can be defined."
2120
param_usage_include_vols: true
2221
param_volumes:
23-
- {vol_path: "/config", vol_host_path: "/path/to/appdata/config", desc: "Contains all relevant configuration files."}
22+
- {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Contains all relevant configuration files."}
2423
param_usage_include_ports: true
2524
param_ports:
2625
- {external_port: "2222", internal_port: "2222", port_desc: "ssh port"}
27-
param_usage_include_env: true
28-
param_env_vars:
29-
- {env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
3026
# optional container parameters
3127
opt_param_usage_include_env: true
3228
opt_param_env_vars:
@@ -76,6 +72,7 @@ app_setup_block: |
7672
The keys generated by this script are only displayed on your console output, so make sure to save them somewhere after generation.
7773
# changelog
7874
changelogs:
75+
- {date: "31.05.24:", desc: "Rebase to Alpine 3.20."}
7976
- {date: "04.05.24:", desc: "Display the SSH host public keys every time the container starts."}
8077
- {date: "09.03.24:", desc: "Rebase to Alpine 3.19."}
8178
- {date: "12.06.23:", desc: "Rebase to Alpine 3.18, deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"}

root/etc/s6-overlay/s6-rc.d/init-adduser/run

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,12 @@ GID/UID
3131
echo "
3232
User UID: $(id -u "${USER_NAME}")
3333
User GID: $(id -g "${USER_NAME}")
34-
───────────────────────────────────────
35-
"
36-
37-
if [[ "$(uname -m)" == "armv7l" ]] || [[ "$(uname -m)" == "armhf" ]]; then
34+
───────────────────────────────────────"
35+
if [[ -f /build_version ]]; then
36+
cat /build_version
3837
echo '
39-
╔═════════════════════════════════════════════════════╗
40-
║ ║
41-
║ The 32-bit Arm version of this image will ║
42-
║ no longer be supported after 2023-07-01 ║
43-
║ ║
44-
║ See: https://linuxserver.io/armhf ║
45-
║ for more details ║
46-
║ ║
47-
╚═════════════════════════════════════════════════════╝
48-
'
38+
───────────────────────────────────────
39+
'
4940
fi
5041

5142
lsiown "${USER_NAME}":"${USER_NAME}" /app

0 commit comments

Comments
 (0)