Compare commits

..

18 Commits

Author SHA1 Message Date
Jonathan Ervine
d61a514225 Fixed directory path 2020-12-14 14:41:32 +08:00
Jonathan Ervine
72344cef4c Debug output 2020-12-14 14:34:58 +08:00
Jonathan Ervine
daf9c73485 Fix typo 2020-12-14 14:26:32 +08:00
Jonathan Ervine
bafc62c306 Move more to builder container 2020-12-14 13:57:38 +08:00
Jonathan Ervine
5180203cbb Added headers 2020-12-14 13:39:56 +08:00
Jonathan Ervine
9e310ca0bc Switched atomicparsley source repo 2020-12-14 13:37:56 +08:00
Jonathan Ervine
b132a7108f Fixed apk command 2020-12-14 12:16:48 +08:00
Jonathan Ervine
0207779fbc Fixed commands 2020-12-14 12:09:44 +08:00
Jonathan Ervine
3dac3d7b33 Fixed apk commands 2020-12-14 12:05:57 +08:00
Jonathan Ervine
ec89f53d6c Only one build 2020-12-14 11:40:50 +08:00
Jonathan Ervine
75ae08c9ef Added multi-stage build ot jenkins 2020-12-14 11:37:50 +08:00
Jonathan Ervine
cd524ed3ef Created multi-stage build 2020-12-14 11:35:31 +08:00
Jonathan Ervine
ed1b86afa1 Fixed jenkinsfile 2020-12-11 11:10:21 +08:00
Jonathan Ervine
fcbe84914f Bumped to version 3.26 2020-08-16 21:27:00 +08:00
Jonathan Ervine
54d8dbc8da Added GChat message 2020-08-12 17:24:27 +08:00
Jonathan Ervine
d8c0aed742 Switched to node builder 2020-07-20 22:41:10 +08:00
fbb953a367 Merge pull request '3.11.6' (#1) from 3.11.6 into master
Reviewed-on: #1
2020-07-20 14:36:18 +00:00
Jonathan Ervine
2f9b9d0e16 modified: Jenkinsfile 2020-06-04 23:44:52 +08:00
4 changed files with 79 additions and 32 deletions

View File

@ -1,25 +1,27 @@
FROM harbor.ervine.dev/library/x86_64/alpine/alpine-3.11 FROM harbor.ervine.dev/public/x86_64/alpine:v3.12 AS builder
MAINTAINER “Jonathan Ervine” <docker@ervine.org> LABEL maintainer="Jonathan Ervine <docker@ervine.org>"
ENV GETIPLAYER_OUTPUT=/config GETIPLAYER_PROFILE=/config/.get_iplayer PUID=1000 PGID=100 PORT=1935 WORKDIR /root/
EXPOSE 1935
VOLUME /config
RUN apk --update --no-cache add ffmpeg perl-cgi perl-mojolicious perl-lwp-protocol-https perl-xml-libxml jq logrotate su-exec tini RUN apk --update --no-cache add git cmake make gcc g++ linux-headers jq
RUN wget -qnd "https://bitbucket.org/shield007/atomicparsley/raw/68337c0c05ec4ba2ad47012303121aaede25e6df/downloads/build_linux_x86_64/AtomicParsley" && \ RUN git clone https://git.ervine.org/jonny/atomicparsley atomic && \
install -m 755 -t /usr/local/bin ./AtomicParsley && \ cd atomic && \
rm ./AtomicParsley cmake . && cmake --build . --config Release && \
wget -qO - "https://api.github.com/repos/get-iplayer/get_iplayer/releases/latest" > /tmp/latest.json && \
RUN wget -qO - "https://api.github.com/repos/get-iplayer/get_iplayer/releases/latest" > /tmp/latest.json && \
echo get_iplayer release `jq -r .name /tmp/latest.json` && \ echo get_iplayer release `jq -r .name /tmp/latest.json` && \
wget -qO - "`jq -r .tarball_url /tmp/latest.json`" | tar -zxf - && \ wget -qO - "`jq -r .tarball_url /tmp/latest.json`" | tar -zxf - && \
cd get-iplayer* && \ chmod 755 get-iplayer*/get_iplayer get-iplayer*/get_iplayer.cgi && \
install -m 755 -t /usr/local/bin ./get_iplayer ./get_iplayer.cgi && \ echo "Working directory $PWD" && \
cd / && \ echo $PWD
rm -rf get-iplayer* && \
rm /tmp/latest.json
FROM harbor.ervine.dev/public/x86_64/alpine:v3.12
RUN apk --update --no-cache add ffmpeg perl-cgi perl-mojolicious perl-lwp-protocol-https perl-xml-libxml logrotate su-exec tini
COPY --from=builder /root/atomic/AtomicParsley /usr/local/bin/AtomicParsley
COPY --from=builder /root/atomic/get-iplayer*/get_iplayer /usr/local/bin/get_iplayer
COPY --from=builder /root/atomic/get-iplayer*/get_iplayer.cgi /usr/local/bin/get_iplayer.cgi
COPY files/ / COPY files/ /
ENTRYPOINT ["/sbin/tini", "--"] ENTRYPOINT ["/sbin/tini", "--"]

26
Dockerfile.old Normal file
View File

@ -0,0 +1,26 @@
FROM harbor.ervine.dev/public/x86_64/alpine:v3.12
LABEL Maintainer = "Jonathan Ervine <docker@ervine.org>"
ENV GETIPLAYER_OUTPUT=/config GETIPLAYER_PROFILE=/config/.get_iplayer PUID=1000 PGID=100 PORT=1935
EXPOSE 1935
VOLUME /config
RUN apk --update --no-cache add ffmpeg perl-cgi perl-mojolicious perl-lwp-protocol-https perl-xml-libxml jq logrotate su-exec tini
RUN wget -qnd "https://bitbucket.org/shield007/atomicparsley/raw/68337c0c05ec4ba2ad47012303121aaede25e6df/downloads/build_linux_x86_64/AtomicParsley" && \
install -m 755 -t /usr/local/bin ./AtomicParsley && \
rm ./AtomicParsley
RUN wget -qO - "https://api.github.com/repos/get-iplayer/get_iplayer/releases/latest" > /tmp/latest.json && \
echo get_iplayer release `jq -r .name /tmp/latest.json` && \
wget -qO - "`jq -r .tarball_url /tmp/latest.json`" | tar -zxf - && \
cd get-iplayer* && \
install -m 755 -t /usr/local/bin ./get_iplayer ./get_iplayer.cgi && \
cd / && \
rm -rf get-iplayer* && \
rm /tmp/latest.json
COPY files/ /
ENTRYPOINT ["/sbin/tini", "--"]
CMD /start

51
Jenkinsfile vendored
View File

@ -1,18 +1,37 @@
node("docker-node") { podTemplate(yaml: """
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') { kind: Pod
spec:
git branch: "3.11.3", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-get_iplayer", credentialsId: 'jenkins-to-git' containers:
- name: kaniko
sh "git rev-parse HEAD > .git/commit-id" image: gcr.io/kaniko-project/executor:debug-539ddefcae3fd6b411a95982a830d987f4214251
def commit_id = readFile('.git/commit-id').trim() imagePullPolicy: Always
println commit_id command:
- /busybox/cat
stage "build" tty: true
def app = docker.build "library/x86_64/alpine/get_iplayer" volumeMounts:
- name: jenkins-docker-cfg
stage "publish" mountPath: /kaniko/.docker
app.push("${env.BUILD_NUMBER}") volumes:
app.push("3.25") - name: jenkins-docker-cfg
app.push("latest") projected:
sources:
- secret:
name: regcred
items:
- key: .dockerconfigjson
path: config.json
"""
) {
node(POD_LABEL) {
stage('Build with Kaniko') {
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-get_iplayer.git', credentialsId: 'jenkins-to-git'
container('kaniko') {
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/get_iplayer:3.26'
}
} }
stage('Notify gchat') {
hangoutsNotify message: "Alpine Linux 3.12.1 with BBC iPlayer has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
}
}
} }

0
files/start Executable file → Normal file
View File