inital impl
the build was successful Details

This commit is contained in:
Jan Christian Grünhage 2018-01-10 16:42:03 +01:00
부모 c0c76101b1
커밋 94b90b3377
로그인 계정: jcgruenhage
GPG 키 ID: 6594C449C633D10C
5개의 변경된 파일32개의 추가작업 그리고 3개의 파일을 삭제

7
.drone.yml Normal 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
Dockerfile Normal 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

파일 보기

@ -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
root/etc/s6.d/airsonic/finish Executable file
파일 보기

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

3
root/etc/s6.d/airsonic/run Executable file
파일 보기

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