Merge pull request 'new file: Dockerfile' (#1) from 3.11.3 into master
Reviewed-on: #1
This commit is contained in:
commit
7f15e9d076
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@ -0,0 +1,31 @@
|
||||
# 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' \
|
||||
ZNC_USER='znc' \
|
||||
ZNC_GROUP='znc' \
|
||||
ZNC_UID='1003' \
|
||||
ZNC_GID='1003'
|
||||
|
||||
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
||||
apk update && \
|
||||
apk -U upgrade && \
|
||||
apk -U add \
|
||||
znc
|
||||
|
||||
ADD UTC /etc/localtime
|
||||
|
||||
RUN rm -rf /var/cache/apk/*
|
||||
|
||||
EXPOSE 6667 8080
|
||||
|
||||
VOLUME /config
|
||||
|
||||
USER $ZNC_USER
|
||||
|
||||
CMD [ "/usr/bin/znc", "-d", "/config/", "-f" ]
|
||||
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-znc", 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/znc"
|
||||
|
||||
stage "publish"
|
||||
app.push("${env.BUILD_NUMBER}")
|
||||
app.push("latest")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user