mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
Removed .docker/Dockerfile
1. The current Dockerfile is not directly related to the project, but just our very complex highly-coupled full-of-hacks build/release/deploy system. 2. We are no longer using Docker Hub Builder. An internal Dockerfile will be used on our Jenkins server instead, using the correct upstream phar build to prevent race conditions.
This commit is contained in:
parent
3dbed830ef
commit
6ec2a69417
@ -1,46 +0,0 @@
|
||||
FROM ubuntu:bionic
|
||||
MAINTAINER PMMP Team <team@pmmp.io>
|
||||
|
||||
EXPOSE 19132/tcp
|
||||
EXPOSE 19132/udp
|
||||
|
||||
RUN apt-get update && apt-get --no-install-recommends -y install \
|
||||
sudo \
|
||||
ca-certificates \
|
||||
jq \
|
||||
curl \
|
||||
unzip
|
||||
|
||||
RUN groupadd -g 1000 pocketmine && useradd -r -d /pocketmine -p "" -u 1000 -m -g pocketmine -g sudo pocketmine
|
||||
|
||||
WORKDIR /pocketmine
|
||||
RUN chown -R pocketmine:1000 .
|
||||
|
||||
USER pocketmine
|
||||
ARG WAIT_JENKINS
|
||||
ENV WAIT_JENKINS ${WAIT_JENKINS:-wait}
|
||||
RUN if [ "$WAIT_JENKINS" = "wait" ]; then echo Sleeping for 5 minutes to wait for Jenkins build && sleep 300; fi
|
||||
|
||||
RUN mkdir tmp
|
||||
RUN curl https://update.pmmp.io/api > tmp/api.json
|
||||
|
||||
RUN jq -r '.php_version' < tmp/api.json > tmp/PHP_VERSION
|
||||
RUN curl -SsL \
|
||||
https://jenkins.pmmp.io/job/PHP-`cat tmp/PHP_VERSION`-Aggregate/lastSuccessfulBuild/artifact/PHP-`cat tmp/PHP_VERSION`-Linux-x86_64.tar.gz | \
|
||||
tar zx >/dev/null 2>&1
|
||||
|
||||
RUN chmod +x bin/php7/bin/php
|
||||
|
||||
RUN sed -i'.bak' "s/date.timezone=.*/date.timezone=$(date +%Z)/" bin/php7/bin/php.ini
|
||||
|
||||
RUN curl -SsLo PocketMine-MP.phar `jq -r '.download_url' < tmp/api.json`
|
||||
|
||||
RUN curl -SsLO https://raw.githubusercontent.com/pmmp/PocketMine-MP/`jq -r '.branch' < tmp/api.json`/start.sh
|
||||
RUN chmod +x start.sh
|
||||
|
||||
RUN rm -r tmp
|
||||
|
||||
# RUN sudo mkdir /data /plugins
|
||||
VOLUME ["/data", "/plugins"]
|
||||
# CMD ./start.sh --no-wizard --enable-ansi --data=/data --plugins=/plugins
|
||||
CMD bash -c 'sudo chown 1000 /data /plugins -R && ./start.sh --no-wizard --enable-ansi --data=/data --plugins=/plugins'
|
Loading…
x
Reference in New Issue
Block a user