Merge pull request #4 from linuxserver/link

This commit is contained in:
Roxedus 2021-09-14 21:58:52 +02:00 committed by GitHub
commit fdbd030a45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 23 additions and 231 deletions

View file

@ -36,15 +36,10 @@ jobs:
token=$(curl -sX GET \
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Faudacity%3Apull" \
| jq -r '.token')
multidigest=$(curl -s \
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
--header "Authorization: Bearer ${token}" \
"https://ghcr.io/v2/${image}/manifests/${tag}" \
| jq -r 'first(.manifests[].digest)')
digest=$(curl -s \
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
--header "Authorization: Bearer ${token}" \
"https://ghcr.io/v2/${image}/manifests/${multidigest}" \
"https://ghcr.io/v2/${image}/manifests/${tag}" \
| jq -r '.config.digest')
image_info=$(curl -sL \
--header "Authorization: Bearer ${token}" \

View file

@ -1,78 +1,35 @@
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal as buildstage
ARG AUDACITY_VERSION
RUN \
echo "**** install build packages ****" && \
apt-get update && \
apt-get install -y \
build-essential \
cmake \
curl \
gcc \
git \
libasound2-dev \
libavformat-dev \
libgtk2.0-dev \
libjack-jackd2-dev && \
echo "**** build audacity ****" && \
if [ -z ${AUDACITY_VERSION+x} ]; then \
AUDACITY_VERSION=$(curl -sX GET "https://api.github.com/repos/audacity/audacity/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^Audacity-||'); \
fi && \
mkdir -p /app/audacity/build && \
curl -o \
/tmp/audacity.tar.xz -L \
"https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-minsrc-${AUDACITY_VERSION}.tar.xz" && \
tar xf \
/tmp/audacity.tar.xz -C \
/app/audacity --strip-components=1 && \
cd /app/audacity/build && \
cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_wxwidgets=local -Daudacity_use_ffmpeg=loaded .. && \
make -j2 && \
make install && \
echo "**** cleanup ****" && \
apt-get purge --auto-remove -y \
build-essential \
cmake \
curl \
gcc \
git \
libasound2-dev \
libavformat-dev \
libgtk2.0-dev \
libjack-jackd2-dev && \
mv /app/audacity/build/bin/Release/locale /app/ && \
rm -rf /app/audacity
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal
# set version label
ARG BUILD_DATE
ARG VERSION
ARG AUDACITY_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
RUN \
echo "**** install packages ****" && \
echo "**** install build packages ****" && \
apt-get update && \
apt-get install -y \
libasound2 \
libavformat58 \
libgtk2.0-0 \
libjack-jackd2-0 \
python3-minimal && \
libnss3 && \
echo "**** install audacity ****" && \
if [ -z ${AUDACITY_VERSION+x} ]; then \
AUDACITY_VERSION=$(curl -sX GET "https://api.github.com/repos/audacity/audacity/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^Audacity-||'); \
fi && \
mkdir -p /app/audacity/ && \
curl -o \
/app/audacity/audacity -L \
"https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-linux-${AUDACITY_VERSION}-x86_64.AppImage" && \
chmod +x /app/audacity/audacity && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY /root /
COPY --from=buildstage /usr/local/share/audacity /usr/local/share/audacity
COPY --from=buildstage /usr/local/lib/audacity /usr/local/lib/audacity
COPY --from=buildstage /usr/local/bin/audacity /usr/local/bin/audacity
COPY --from=buildstage /app/locale /usr/local/share/locale
# ports and volumes
EXPOSE 3000

View file

@ -1,79 +0,0 @@
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm64v8-focal as buildstage
ARG AUDACITY_VERSION
RUN \
echo "**** install build packages ****" && \
apt-get update && \
apt-get install -y \
build-essential \
cmake \
curl \
gcc \
git \
libasound2-dev \
libavformat-dev \
libgtk2.0-dev \
libjack-jackd2-dev && \
echo "**** build audacity ****" && \
if [ -z ${AUDACITY_VERSION+x} ]; then \
AUDACITY_VERSION=$(curl -sX GET "https://api.github.com/repos/audacity/audacity/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^Audacity-||'); \
fi && \
mkdir -p /app/audacity/build && \
curl -o \
/tmp/audacity.tar.xz -L \
"https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-minsrc-${AUDACITY_VERSION}.tar.xz" && \
tar xf \
/tmp/audacity.tar.xz -C \
/app/audacity --strip-components=1 && \
cd /app/audacity/build && \
cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_wxwidgets=local -Daudacity_use_ffmpeg=loaded .. && \
make -j2 && \
make install && \
echo "**** cleanup ****" && \
apt-get purge --auto-remove -y \
build-essential \
cmake \
curl \
gcc \
git \
libasound2-dev \
libavformat-dev \
libgtk2.0-dev \
libjack-jackd2-dev && \
mv /app/audacity/build/bin/Release/locale /app/ && \
rm -rf /app/audacity
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
libasound2 \
libavformat58 \
libgtk2.0-0 \
libjack-jackd2-0 \
python3-minimal && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
# add local files
COPY /root /
COPY --from=buildstage /usr/local/share/audacity /usr/local/share/audacity
COPY --from=buildstage /usr/local/lib/audacity /usr/local/lib/audacity
COPY --from=buildstage /usr/local/bin/audacity /usr/local/bin/audacity
COPY --from=buildstage /app/locale /usr/local/share/locale
# ports and volumes
EXPOSE 3000
VOLUME /config

View file

@ -1,79 +0,0 @@
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm32v7-focal as buildstage
ARG AUDACITY_VERSION
RUN \
echo "**** install build packages ****" && \
apt-get update && \
apt-get install -y \
build-essential \
cmake \
curl \
gcc \
git \
libasound2-dev \
libavformat-dev \
libgtk2.0-dev \
libjack-jackd2-dev && \
echo "**** build audacity ****" && \
if [ -z ${AUDACITY_VERSION+x} ]; then \
AUDACITY_VERSION=$(curl -sX GET "https://api.github.com/repos/audacity/audacity/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^Audacity-||'); \
fi && \
mkdir -p /app/audacity/build && \
curl -o \
/tmp/audacity.tar.xz -L \
"https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-minsrc-${AUDACITY_VERSION}.tar.xz" && \
tar xf \
/tmp/audacity.tar.xz -C \
/app/audacity --strip-components=1 && \
cd /app/audacity/build && \
cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_wxwidgets=local -Daudacity_use_ffmpeg=loaded .. && \
make -j2 && \
make install && \
echo "**** cleanup ****" && \
apt-get purge --auto-remove -y \
build-essential \
cmake \
curl \
gcc \
git \
libasound2-dev \
libavformat-dev \
libgtk2.0-dev \
libjack-jackd2-dev && \
mv /app/audacity/build/bin/Release/locale /app/ && \
rm -rf /app/audacity
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
libasound2 \
libavformat58 \
libgtk2.0-0 \
libjack-jackd2-0 \
python3-minimal && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
# add local files
COPY /root /
COPY --from=buildstage /usr/local/share/audacity /usr/local/share/audacity
COPY --from=buildstage /usr/local/lib/audacity /usr/local/lib/audacity
COPY --from=buildstage /usr/local/bin/audacity /usr/local/bin/audacity
COPY --from=buildstage /app/locale /usr/local/share/locale
# ports and volumes
EXPOSE 3000
VOLUME /config

2
Jenkinsfile vendored
View file

@ -24,7 +24,7 @@ pipeline {
DEV_DOCKERHUB_IMAGE = 'lsiodev/audacity'
PR_DOCKERHUB_IMAGE = 'lspipepr/audacity'
DIST_IMAGE = 'ubuntu'
MULTIARCH = 'true'
MULTIARCH = 'false'
CI = 'true'
CI_WEB = 'true'
CI_PORT = '3000'

View file

@ -44,7 +44,7 @@ Find us at:
## Supported Architectures
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
Simply pulling `ghcr.io/linuxserver/audacity` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
@ -53,8 +53,6 @@ The architectures supported by this image are:
| Architecture | Tag |
| :----: | --- |
| x86-64 | latest |
| arm64 | arm64v8-latest |
| armhf | arm32v7-latest |
## Application Setup
@ -225,4 +223,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **14.09.21:** - Use the official appimage, switch to single arch (x86_64). Armhf and aarch64 users can remain on version 3.0.2 but there won't be further updates.
* **07.04.21:** - Initial release.

View file

@ -16,7 +16,7 @@ repo_vars:
- DEV_DOCKERHUB_IMAGE = 'lsiodev/audacity'
- PR_DOCKERHUB_IMAGE = 'lspipepr/audacity'
- DIST_IMAGE = 'ubuntu'
- MULTIARCH = 'true'
- MULTIARCH = 'false'
- CI = 'true'
- CI_WEB = 'true'
- CI_PORT = '3000'

View file

@ -11,8 +11,6 @@ project_blurb_optional_extras_enabled: false
# supported architectures
available_architectures:
- { arch: "{{ arch_x86_64 }}", tag: "latest"}
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
- { arch: "{{ arch_armhf }}", tag: "arm32v7-latest"}
# development version
development_versions: false
@ -43,4 +41,5 @@ app_setup_block: |
# changelog
changelogs:
- { date: "14.09.21:", desc: "Use the official appimage, switch to single arch (x86_64). Armhf and aarch64 users can remain on version 3.0.2 but there won't be further updates." }
- { date: "07.04.21:", desc: "Initial release." }

View file

@ -1 +1 @@
LD_LIBRARY_PATH="/usr/local/lib/audacity" audacity
/app/audacity/audacity --appimage-extract-and-run