Browse Source

inital impl

master
Jan Christian Grünhage 3 years ago
parent
commit
94b90b3377
Signed by: jcgruenhage <jan.christian@gruenhage.xyz> GPG Key ID: 6594C449C633D10C
5 changed files with 32 additions and 3 deletions
  1. +7
    -0
      .drone.yml
  2. +18
    -0
      Dockerfile
  3. +2
    -3
      README.md
  4. +2
    -0
      root/etc/s6.d/airsonic/finish
  5. +3
    -0
      root/etc/s6.d/airsonic/run

+ 7
- 0
.drone.yml View File

@@ -0,0 +1,7 @@
pipeline:
docker:
image: plugins/docker
repo: docker.jcg.re/airsonic
registry: docker.jcg.re
secrets: [ docker_username, docker_password ]
tags: latest

+ 18
- 0
Dockerfile View File

@@ -0,0 +1,18 @@
FROM docker.jcg.re/base-alpine

ARG VERSION

RUN apk add --no-cache \
openjdk8 \
ffmpeg \
&& apk add --no-cache -t install-deps \
curl \
&& mkdir -p /opt/airsonic \
&& cd /opt/airsonic \
&& curl -O -L https://github.com/airsonic/airsonic/releases/download/${VERSION}/airsonic.war \
&& chmod a+x airsonic.war \
&& apk del install-deps

COPY root /
EXPOSE 8080
VOLUME /var/airsonic

+ 2
- 3
README.md View File

@@ -1,3 +1,2 @@
# docker-airsonic

Dockerfile for Airsonic
## docker.jcg.re/airsonic
[![Build Status](https://drone.jcg.re/api/badges/jcgruenhage/docker-airsonic/status.svg)](https://drone.jcg.re/jcgruenhage/docker-airsonic)

+ 2
- 0
root/etc/s6.d/airsonic/finish View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec /bin/true

+ 3
- 0
root/etc/s6.d/airsonic/run View File

@@ -0,0 +1,3 @@
#!/bin/sh
chown -R ${UID}:${GID} /var/airsonic
exec su-exec ${UID}:${GID} java -jar /opt/airsonic/airsonic.war

Loading…
Cancel
Save