Compare commits

...

9 Commits

Author SHA1 Message Date
bc74bdc636
push to 11.0.0-SNAPSHOT.20240424015024
All checks were successful
Build Multiarch Container Image / call-reusable-workflow (push) Successful in 15m20s
2024-05-27 12:57:20 +02:00
21b4d10829
use java 21
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Failing after 2h34m29s
2023-12-14 11:34:26 +01:00
70ed098d4a
use gitea actions 2023-12-14 11:24:16 +01:00
a977e369b8
push to 11.0.0-SNAPSHOT.20230217142243 2023-09-26 16:15:56 +02:00
61ed1617d8
use postgres as backend 2023-03-05 11:55:41 +01:00
d94db7184c Add '.woodpecker.yml' 2022-11-11 06:50:38 +00:00
55837f313f Delete '.gitlab-ci.yml' 2022-11-11 06:49:47 +00:00
c0c5419afc Do not run tests.
They make trouble in a kaniko environment and as this container is about
to be retired anyways it is not too important.
2022-07-12 19:05:11 +02:00
164efe9d2d use newer base image 2022-07-12 18:45:26 +02:00
7 changed files with 53 additions and 33 deletions

View File

@ -0,0 +1,12 @@
name: Build Multiarch Container Image
on: [push]
jobs:
call-reusable-workflow:
uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main
with:
repository: ${{ gitea.repository }}
ref_name: ${{ gitea.ref_name }}
sha: ${{ gitea.sha }}
registry_url: ${{ secrets.REGISTRY_URL }}
registry_user: ${{ secrets.REGISTRY_USER }}
registry_pw: ${{ secrets.REGISTRY_PW }}

View File

@ -1,19 +0,0 @@
variables:
CONTAINER_NAME: thallian/airsonic
build:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- >-
/kaniko/executor
--cache=false
--context "$CI_PROJECT_DIR"
--dockerfile "$CI_PROJECT_DIR/Dockerfile"
--destination "$CONTAINER_NAME:$CI_COMMIT_SHA"
--destination "$CONTAINER_NAME:$CI_COMMIT_REF_NAME"
--destination "$CONTAINER_NAME:latest"

View File

@ -1,31 +1,31 @@
FROM docker.io/alpine:3.15 AS builder FROM docker.io/alpine:3.20 AS builder
ENV VERSION=11.0.0-SNAPSHOT.20220625052932 ENV VERSION=11.0.0-SNAPSHOT.20240424015024
RUN apk add --no-cache \ RUN apk add --no-cache \
openjdk17-jdk \ openjdk21-jdk \
maven \ maven \
git git
RUN git clone https://github.com/airsonic-advanced/airsonic-advanced RUN git clone https://github.com/airsonic-advanced/airsonic-advanced
WORKDIR /airsonic-advanced WORKDIR /airsonic-advanced
RUN git checkout "$VERSION" RUN git checkout "$VERSION"
RUN mvn package RUN mvn package -DskipTests
FROM docker.io/thallian/alpine-s6:latest FROM docker.io/thallian/confd-env:3.20-3.1.6.2
ENV JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 ENV JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
ENV AIRSONIC_DIR=/home/airsonic ENV AIRSONIC_DIR=/home/airsonic
RUN apk add --no-cache \ RUN apk add --no-cache \
ca-certificates \ ca-certificates \
openssl \ openssl \
ffmpeg \ ffmpeg \
flac \ flac \
opus \ opus \
lame \ lame \
openjdk17-jre-headless openjdk21-jre-headless
RUN addgroup -g 2222 airsonic RUN addgroup -g 2222 airsonic
RUN adduser -h "$AIRSONIC_DIR" -S -D -u 2222 -G airsonic airsonic RUN adduser -h "$AIRSONIC_DIR" -S -D -u 2222 -G airsonic airsonic

View File

@ -6,5 +6,19 @@
- `/home/airsonic/playlists` - `/home/airsonic/playlists`
- `/home/airsonic/podcasts` - `/home/airsonic/podcasts`
# Environment Variables
## DB_URL
JDBC url for the postgres conection.
## DB_USER
- default: airsonic
Username with which to connect to the database.
## DB_PASSWORD
Password for the databse connection.
# Ports # Ports
- 8080 - 8080

View File

@ -0,0 +1,6 @@
[template]
src = "airsonic.properties.tmpl"
dest = "/home/airsonic/data/airsonic.properties"
gid = 2222
uid = 2222
mode = "0660"

View File

@ -0,0 +1,6 @@
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url={{ getenv "DB_URL" }}
spring.datasource.username={{ getenv "DB_USER" "airsonic" }}
spring.datasource.password={{ getenv "DB_PASSWORD" }}
spring.liquibase.parameters.userTableQuote="
server.forward-headers-strategy=native

View File

@ -0,0 +1 @@
confd