Compare commits

...

22 Commits
master ... dev

Author SHA1 Message Date
Marcel Otte b20b6abf3b fix Dockerfile 2021-07-08 08:51:27 +02:00
Marcel Otte b0eb16edec Fix urls 2021-07-08 08:26:12 +02:00
Marcel Otte 8536a2ff73 Add installPath 2021-01-09 18:24:38 +01:00
Marcel Otte 355fcc2b99 Update to ubuntu:18.04 and jdk11 2019-03-10 13:27:21 +01:00
Marcel d085e15c66
Fix for PathManager issue 2018-07-04 20:32:05 +02:00
Marcel Otte 726eeb7f2d Removing any existing versionInfo.properties now. 2018-04-03 21:14:37 +02:00
Marcel M. Otte 5e1311dc33 Added Jenkinsfile.
Does just call build.sh.
2018-01-16 15:37:24 +01:00
Marcel Otte 9473363d74 added a unused property with -D to commandline
the added property -Dterasology_variant=unstable will be used to distinguish between a stable and unstable instance on the same server
maybe there could be a added an additional property for version information or similar.
2016-10-23 10:10:15 +02:00
Marcel Otte abdfd02986 oops 2016-10-08 11:46:10 +02:00
Marcel Otte 29729afca1 readme changes to reflect new versioning schema, again. 2016-10-08 11:46:02 +02:00
Marcel Otte b0056f2518 again changed nightly to unstable, because of jenkins job changes 2016-10-08 11:33:13 +02:00
Marcel Otte 57432e3e5c Readme update for changed dev->nightly tag names 2016-10-06 10:33:13 +02:00
Marcel Otte 40f727b98d changed 'dev' to 'nightly' in tags, to reflect the change in build timing. 2016-10-06 10:25:21 +02:00
Marcel Otte 6633401815 updated Readme to reflect latest changes. 2016-10-06 10:23:23 +02:00
Marcel Otte e475104717 added build number to docker tag. 2016-09-28 21:20:21 +02:00
Marcel Otte 0efb3b5033 now also tagging with dev- 2016-09-19 20:31:26 +02:00
Marcel Otte 2373826792 forgot to fix the url for versionInfo.properties... 2016-09-19 20:21:39 +02:00
Marcel Otte 337ff72e9c changed docker tag to dev-latest 2016-09-19 20:18:20 +02:00
Marcel Otte f839fa8ad2 Merge branch 'master' into dev 2016-09-18 22:50:17 +02:00
Marcel Otte 9b1a92170d merged the resource links... 2016-01-10 14:09:51 +01:00
Marcel Otte a61cc79486 removing zip now, for smaller image size 2016-01-10 12:46:45 +01:00
Marcel Otte a2e73e4e86 added dev-latest branch for the DistroOmega cutting edge build. 2016-01-10 12:31:04 +01:00
5 changed files with 41 additions and 16 deletions

View File

@ -1,10 +1,10 @@
FROM ubuntu:16.04
FROM ubuntu:18.04
MAINTAINER Marcel Otte <qwc+docker@mmo.to>
RUN apt-get update && apt-get install -y openjdk-8-jre wget unzip
RUN apt-get update && apt-get install -y openjdk-11-jre wget unzip
RUN mkdir /terasology \
&& wget -P /terasology http://jenkins.terasology.org/job/DistroOmegaRelease/lastSuccessfulBuild/artifact/distros/omega/build/distributions/TerasologyOmega.zip \
&& wget -P /terasology http://jenkins.terasology.io/teraorg/job/Terasology/job/Omega/job/develop/lastSuccessfulBuild/artifact/distros/omega/build/distributions/TerasologyOmega.zip \
&& unzip /terasology/TerasologyOmega.zip -d /terasology \
&& rm -f /terasology/TerasologyOmega.zip
ENTRYPOINT java -jar /terasology/libs/Terasology.jar -headless -homedir=/terasology/server
ENTRYPOINT cd /terasology && java -Dterasology_variant=unstable -jar /terasology/libs/Terasology.jar -headless -homedir=/terasology/server -installPath=/terasology
VOLUME /terasology/server
EXPOSE 25777

7
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,7 @@
node ('main') {
stage('docker') {
sh '''
sh build.sh
'''
}
}

View File

@ -1,14 +1,25 @@
# docker-terasology
check out and build with
```docker build .```
Automatic builds are provided by dockerhub and my own jenkins instance.
For all enthusiasts who just want to have a running server:
- `docker pull qwick/terasology:latest`
- or with version: `docker pull qwick/terasology:1.2.1-alpha`
or use the image on dockerhub:
https://registry.hub.docker.com/u/qwick/terasology/
For all developers who want a unstable build for debugging or just testing purposes:
- `docker pull qwick/terasology:unstable-latest`
- a versioned tag is available too.
## Latest changes
### 2016-03-16: [Alpha release 1; Engine v1.0.0](https://github.com/MovingBlocks/Terasology/releases/tag/v1.0.0)
I'm again a little late with the docker image update, sorry! ;-)
Versioned tags may change over time.
## Versioning
To avoid confusion here the docker image tag schema:
Stable:
- `<engineVersion>-<displayVersion>` e.g. `1.2.1-alpha`
Unstable:
- `unstable-<engineVersion>-<buildNumber>` e.g. `unstable-1.2.2-SNAPSHOT-1806`
## Small guide
@ -25,8 +36,6 @@ Best practice would be cloning this repository and using docker-compose to pull
There may be standard configurations in the future for specific use cases, may be... ;-)
One thing's for sure, I'll keep this a little more updated after this long time of silence.
More information about terasology can be found on following sites:
* https://github.com/MovingBlocks/Terasology
* http://terasology.org/

View File

@ -1,14 +1,23 @@
#!/bin/bash
rm versionInfo.properties*
wget http://jenkins.terasology.org/job/TerasologyStable/lastSuccessfulBuild/artifact/build/resources/main/org/terasology/version/versionInfo.properties
#wget http://jenkins.terasology.org/job/Terasology/lastSuccessfulBuild/artifact/build/resources/main/org/terasology/version/versionInfo.properties
wget http://jenkins.terasology.io/teraorg/job/Terasology/job/Omega/job/develop/lastSuccessfulBuild/artifact/distros/omega/versionInfo.properties
source versionInfo.properties
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
TAGNAME=$engineVersion-$displayVersion
echo The dev-latest build is: $TAGNAME
TAGNAME=unstable-latest
docker build --no-cache -t qwick/terasology:$TAGNAME .
NEW_TAGNAME=unstable-$engineVersion-$buildNumber
docker tag qwick/terasology:$TAGNAME qwick/terasology:$NEW_TAGNAME
docker push qwick/terasology:$TAGNAME
docker push qwick/terasology:$NEW_TAGNAME

View File

@ -1,6 +1,6 @@
terasology:
image: qwick/terasology:latest
image: qwick/terasology:dev-latest
ports:
- 25777:25777
volumes:
- /mnt/data/docker/terasology:/terasology/server
- ./terasology:/terasology/server