initial commit

This commit is contained in:
Kegan Myers 2020-06-29 02:03:10 -05:00
commit 9a50641854
3 changed files with 37 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
*

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install -y wget gnupg2 && \
wget -q -O - https://apt.mopidy.com/mopidy.gpg | apt-key add - && \
wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/buster.list && \
apt-get update && \
apt-get install -y mopidy mopidy-gmusic mopidy-local mopidy-mpd mopidy-podcast && \
apt-get remove -y wget && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
CMD mopidy

24
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,24 @@
pipeline {
agent any
stages {
stage('build') {
steps {
checkout scm
script {
sh 'git rev-parse HEAD > commit'
def gitCommit = readFile('commit').trim()
def registryHost = "registry.terrible.network"
def imageName = "${registryHost}/terribleplan/mopidy"
// build
def app = docker.build("${imageName}:${gitCommit}")
// beta push
docker.withRegistry("https://${registryHost}", "registry-terrible-network") {
app.push("latest")
}
}
}
}
}
}