Merge pull request 'new file: Dockerfile' (#1) from 3.11.3 into master
Reviewed-on: #1
This commit is contained in:
commit
24cd67c982
37
Dockerfile
Normal file
37
Dockerfile
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# Base on latest (edge) alpine image
|
||||||
|
FROM registry.ervine.dev/library/x86_64/alpine/alpine-3.11
|
||||||
|
|
||||||
|
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
|
||||||
|
|
||||||
|
# Install updates
|
||||||
|
ENV LANG='en_US.UTF-8' \
|
||||||
|
LANGUAGE='en_US.UTF-8' \
|
||||||
|
TERM='xterm' \
|
||||||
|
VERSION='0.3.2' \
|
||||||
|
MED_USER='mediaservice' \
|
||||||
|
MED_GROUP='mediaservice' \
|
||||||
|
MED_UID='1003' \
|
||||||
|
MED_GID='1003'
|
||||||
|
|
||||||
|
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
||||||
|
apk update && \
|
||||||
|
apk -U upgrade && \
|
||||||
|
apk -U add \
|
||||||
|
python
|
||||||
|
|
||||||
|
RUN wget https://github.com/pymedusa/Medusa/archive/v$VERSION.tar.gz -O medusa.tar.gz && \
|
||||||
|
tar zxvf medusa.tar.gz && \
|
||||||
|
mv Medusa-$VERSION medusa && \
|
||||||
|
rm -rf medusa.tar.gz && \
|
||||||
|
apk del make gcc g++ && \
|
||||||
|
rm -rf /tmp/src && \
|
||||||
|
rm -rf /var/cache/apk/* && \
|
||||||
|
addgroup -g $MED_GID $MED_GROUP && \
|
||||||
|
adduser -D -u $MED_UID -G $MED_GROUP -H $MED_USER && \
|
||||||
|
chown -R $MED_USER:$MED_GROUP /medusa
|
||||||
|
|
||||||
|
EXPOSE 8081
|
||||||
|
|
||||||
|
USER $MED_USER
|
||||||
|
|
||||||
|
CMD [ "/usr/bin/python", "/medusa/SickBeard.py", "--nolaunch", "--datadir=/config" ]
|
||||||
17
Jenkinsfile
vendored
Normal file
17
Jenkinsfile
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
node("docker-node") {
|
||||||
|
docker.withRegistry('https://harbor.ervine.org', credentials: 'jenkins-to-harbor') {
|
||||||
|
|
||||||
|
git branch: "3.11.3", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-muximux", credentialsId: 'jenkins-to-git'
|
||||||
|
|
||||||
|
sh "git rev-parse HEAD > .git/commit-id"
|
||||||
|
def commit_id = readFile('.git/commit-id').trim()
|
||||||
|
println commit_id
|
||||||
|
|
||||||
|
stage "build"
|
||||||
|
def app = docker.build "x86_64/alpine/muximux"
|
||||||
|
|
||||||
|
stage "publish"
|
||||||
|
app.push("${env.BUILD_NUMBER}")
|
||||||
|
app.push("latest")
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user