Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aarch64 support #4

Merged
merged 13 commits into from
Oct 9, 2024
43 changes: 43 additions & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-debianbookworm

# set version label
ARG BUILD_DATE
ARG VERSION
ARG SPOTUBE_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"

# title
ENV TITLE=Spotube

RUN \
echo "**** add icon ****" && \
curl -o \
/kclient/public/icon.png \
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/spotube-logo.png && \
echo "**** install packages ****" && \
apt-get update && \
if [ -z ${SPOTUBE_VERSION+x} ]; then \
SPOTUBE_VERSION=$(curl -sX GET "https://api.github.com/repos/KRTirtho/spotube/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/spotube.deb -L \
"https://github.com/KRTirtho/spotube/releases/download/${SPOTUBE_VERSION}/Spotube-linux-aarch64.deb" && \
apt install -y --no-install-recommends \
/tmp/spotube.deb && \
echo "**** cleanup ****" && \
apt-get autoclean && \
rm -rf \
/config/.cache \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*

# add local files
COPY /root /

# ports and volumes
EXPOSE 3000

VOLUME /config
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pipeline {
DEV_DOCKERHUB_IMAGE = 'lsiodev/spotube'
PR_DOCKERHUB_IMAGE = 'lspipepr/spotube'
DIST_IMAGE = 'ubuntu'
MULTIARCH = 'false'
MULTIARCH = 'true'
CI = 'true'
CI_WEB = 'true'
CI_PORT = '3000'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The architectures supported by this image are:
| Architecture | Available | Tag |
| :----: | :----: | ---- |
| x86-64 | ✅ | amd64-\<version tag\> |
| arm64 | ❌ | |
| arm64 | ✅ | arm64v8-\<version tag\> |
| armhf | ❌ | |

## Application Setup
Expand Down
3 changes: 1 addition & 2 deletions jenkins-vars.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

# jenkins variables
project_name: docker-spotube
external_type: github_stable
Expand All @@ -18,7 +17,7 @@ repo_vars:
- DEV_DOCKERHUB_IMAGE = 'lsiodev/spotube'
- PR_DOCKERHUB_IMAGE = 'lspipepr/spotube'
- DIST_IMAGE = 'ubuntu'
- MULTIARCH = 'false'
- MULTIARCH = 'true'
- CI = 'true'
- CI_WEB = 'true'
- CI_PORT = '3000'
Expand Down
6 changes: 4 additions & 2 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ project_blurb_optional_extras_enabled: false

# supported architectures
available_architectures:
- { arch: "{{ arch_x86_64 }}", tag: "latest"}
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest" }
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest" }

# development version
development_versions: false
Expand Down Expand Up @@ -87,4 +88,5 @@ app_setup_block: |

# changelog
changelogs:
- { date: "26.04.24:", desc: "Initial release." }
- { date: "09.10.24:", desc: "Add aarch64 support." }
- { date: "26.04.24:", desc: "Initial release." }