bump to minecraft 1.19
Gitea/docker-spigot/pipeline/head This commit looks good
Details
Gitea/docker-spigot/pipeline/head This commit looks good
Details
This commit is contained in:
parent
115f35c8ff
commit
9ed1147482
|
@ -1,17 +1,17 @@
|
|||
FROM ubuntu:bionic
|
||||
FROM ubuntu:jammy
|
||||
|
||||
ADD start /start
|
||||
|
||||
RUN useradd --uid 1000 mcserver && \
|
||||
apt-get update && \
|
||||
apt-get install -y openjdk-11-jre-headless && \
|
||||
apt-get install -y openjdk-18-jre-headless && \
|
||||
mkdir -p /srv/spigot/ /srv/spigot-default/ && \
|
||||
chown -R mcserver:mcserver /srv/spigot/ && \
|
||||
chmod +x /start
|
||||
|
||||
ENV MEMLIMIT=1024m
|
||||
|
||||
ADD spigot-1.14.4.jar /srv/spigot-default/spigot.jar
|
||||
ADD spigot-1.19.0.jar /srv/spigot-default/spigot.jar
|
||||
ADD eula.txt /srv/spigot-default/
|
||||
|
||||
ENTRYPOINT ["/start"]
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
def image_name = "dpedu/spigot"
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
kubernetes {
|
||||
yaml """
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
spec:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution: # avoid nodes already running a jenkins job
|
||||
- podAffinityTerm:
|
||||
labelSelector:
|
||||
matchExpressions:
|
||||
- key: jenkins
|
||||
operator: In
|
||||
values:
|
||||
- slave
|
||||
topologyKey: node
|
||||
containers:
|
||||
- name: docker
|
||||
image: docker:20-dind
|
||||
args:
|
||||
- "--insecure-registry"
|
||||
- "dockermirror:5000"
|
||||
securityContext:
|
||||
privileged: true
|
||||
"""
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage("Build image") {
|
||||
steps {
|
||||
container("docker") {
|
||||
script {
|
||||
try {
|
||||
docker.withRegistry('http://dockermirror:5000') {
|
||||
docker.image("ubuntu:focal").pull()
|
||||
docker.image(image_name).pull() // Pull a recent version to share base layers with (?)
|
||||
}
|
||||
} catch (exc) {
|
||||
echo "couldn't pull image, assuming we're building it for the first time"
|
||||
}
|
||||
docker.build(image_name)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Push image") {
|
||||
steps {
|
||||
container("docker") {
|
||||
script {
|
||||
docker.withRegistry('http://dockermirror:5000') {
|
||||
docker.image(image_name).push("latest")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Show images") {
|
||||
steps {
|
||||
container("docker") {
|
||||
sh 'docker images'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,13 +2,12 @@
|
|||
|
||||
**A setup for spigot within docker.**
|
||||
|
||||
Currently minecraft 1.9.2.
|
||||
Currently minecraft 1.19.0.
|
||||
|
||||
## Quick start
|
||||
|
||||
* Clone: `git clone ssh://git@gitlab.davepedu.com:222/dave/docker-spigot.git`
|
||||
* Build: `cd docker-nexus ; docker build -t spigot .`
|
||||
* Run: `docker run nexus`
|
||||
* Clone: `git clone ssh://git@git.davepedu.com:223/dave/docker-spigot.git`
|
||||
* Build: `cd docker-spigot ; docker build -t spigot .`
|
||||
|
||||
|
||||
## Persistence
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue