new file: Dockerfile
new file: Jenkinsfile Initial commit
This commit is contained in:
parent
6fe91e5525
commit
5414f92732
38
Dockerfile
Normal file
38
Dockerfile
Normal file
@ -0,0 +1,38 @@
|
||||
# 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
|
||||
ENV LANG='en_US.UTF-8' \
|
||||
LANGUAGE='en_US.UTF-8' \
|
||||
TERM='xterm' \
|
||||
TORRENT_USER='mediaservice' \
|
||||
TORRENT_GROUP='mediaservice' \
|
||||
TORRENT_UID='1003' \
|
||||
TORRENT_GID='1003'
|
||||
|
||||
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
||||
apk update && \
|
||||
apk -U upgrade && \
|
||||
apk -U add \
|
||||
transmission-daemon && \
|
||||
wget https://github.com/Secretmapper/combustion/archive/release.zip && \
|
||||
unzip release.zip && \
|
||||
mv combustion-release/* /usr/share/transmission/web/ && \
|
||||
rmdir combustion-release && \
|
||||
rm release.zip
|
||||
|
||||
#ADD UTC /etc/localtime
|
||||
|
||||
RUN rm -rf /var/cache/apk/* && \
|
||||
addgroup -g $TORRENT_GID $TORRENT_GROUP && \
|
||||
adduser -D -u $TORRENT_UID -G $TORRENT_GROUP -H $TORRENT_USER
|
||||
|
||||
EXPOSE 9091
|
||||
|
||||
VOLUME /config
|
||||
|
||||
USER $TORRENT_USER
|
||||
|
||||
CMD [ "/usr/bin/transmission-daemon", "-f", "-g", "/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-transmission", 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/transmission"
|
||||
|
||||
stage "publish"
|
||||
app.push("${env.BUILD_NUMBER}")
|
||||
app.push("latest")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user