modified: Dockerfile

modified:   Jenkinsfile
Updated to use config volume
This commit is contained in:
Jonathan Ervine 2020-04-07 09:59:33 +08:00
parent 2d23705152
commit b0c1d98107
2 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,7 @@ RUN apt update && apt upgrade -y
RUN apt install unzip curl -y RUN apt install unzip curl -y
RUN mkdir /bedrock && cd /bedrock && curl -LO https://minecraft.azureedge.net/bin-linux/bedrock-server-1.14.32.1.zip && unzip bedrock-server-1.14.32.1.zip && rm bedrock-server-1.14.32.1.zip RUN mkdir /bedrock && cd /bedrock && curl -LO https://minecraft.azureedge.net/bin-linux/bedrock-server-1.14.32.1.zip && unzip bedrock-server-1.14.32.1.zip && rm bedrock-server-1.14.32.1.zip
EXPOSE 19132 EXPOSE 19133
VOLUME config
CMD [ "/bedrock/bedrock-server" ] CMD [ "/bedrock/bedrock-server", "--data=/config" ]

3
Jenkinsfile vendored
View File

@ -15,6 +15,9 @@ node("docker-node") {
app.push("${env.BUILD_NUMBER}") app.push("${env.BUILD_NUMBER}")
app.push("latest") app.push("latest")
stage('Deploy on K8s'){
sh "/usr/local/bin/kubectl -n media delete po bedrock-0"
}
} }
catch (err) { catch (err) {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'