diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 new file mode 100644 index 0000000..657cd01 --- /dev/null +++ b/Dockerfile.aarch64 @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile index d33a74c..a110c52 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' diff --git a/README.md b/README.md index cc6cc42..5a5414c 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ The architectures supported by this image are: | Architecture | Available | Tag | | :----: | :----: | ---- | | x86-64 | ✅ | amd64-\ | -| arm64 | ❌ | | +| arm64 | ✅ | arm64v8-\ | | armhf | ❌ | | ## Application Setup diff --git a/jenkins-vars.yml b/jenkins-vars.yml index 46db9fb..835ba7b 100644 --- a/jenkins-vars.yml +++ b/jenkins-vars.yml @@ -1,5 +1,4 @@ --- - # jenkins variables project_name: docker-spotube external_type: github_stable @@ -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' diff --git a/readme-vars.yml b/readme-vars.yml index 55c091e..d88f1cb 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -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 @@ -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." } \ No newline at end of file