3.10.5 #1
34
Dockerfile
Normal file
34
Dockerfile
Normal file
@ -0,0 +1,34 @@
|
||||
# Base on latest (edge) alpine image
|
||||
FROM harbor.ervine.dev/library/x86_64/alpine/alpine-3.11
|
||||
|
||||
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
|
||||
|
||||
# Install updates
|
||||
# Create mediaservice user
|
||||
ENV LANG='en_US.UTF-8' \
|
||||
LANGUAGE='en_US.UTF-8' \
|
||||
TERM='xterm' \
|
||||
HTPC_USER='mediaservice' \
|
||||
HTPC_GROUP='mediaservice' \
|
||||
HTPC_UID='1003' \
|
||||
HTPC_GID='1003'
|
||||
|
||||
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
||||
apk update && \
|
||||
apk -U upgrade && \
|
||||
apk -U add \
|
||||
python3 git
|
||||
|
||||
ADD UTC /etc/localtime
|
||||
|
||||
RUN git clone https://github.com/barbequesauce/watcher3 && \
|
||||
rm -rf /var/cache/apk/* && \
|
||||
addgroup -g $HTPC_GID $HTPC_GROUP && \
|
||||
adduser -D -u $HTPC_UID -G $HTPC_GROUP -H $HTPC_USER && \
|
||||
chown -R $HTPC_USER:$HTPC_GROUP /watcher3
|
||||
|
||||
EXPOSE 9090
|
||||
|
||||
USER $HTPC_USER
|
||||
|
||||
CMD [ "/usr/bin/python3", "/watcher3/watcher.py", "--userdata=/config/" ]
|
||||
17
Jenkinsfile
vendored
Normal file
17
Jenkinsfile
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
node("docker-node") {
|
||||
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
|
||||
|
||||
git branch: "3.11.3", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-watcher", 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 "library/x86_64/alpine/watcher"
|
||||
|
||||
stage "publish"
|
||||
app.push("${env.BUILD_NUMBER}")
|
||||
app.push("latest")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user