Compare commits

...

38 Commits

Author SHA1 Message Date
Dane Everitt
252ab98f46
Merge pull request #45 from parkervcp/debian/openjdk-8-openj9
openjdk 8 openj9
2020-01-19 14:23:59 -08:00
Dane Everitt
c5da1fc274
Merge branch 'java-8-openj9' into debian/openjdk-8-openj9 2020-01-19 14:23:52 -08:00
Michael PArker
c323e93830 add openj9 image to test
As requested in the pterodactyl repo someone is asking for a openj9 java image.
2019-07-22 06:17:44 -04:00
Michael (Parker) Parker
f68870db50
Merge branch 'java' into debian/openjdk-8-jre 2019-04-17 10:20:05 -04:00
Michael (Parker) Parker
313693a84a
Merge branch 'java-glibc' into debian/openjdk-8-jre 2019-04-17 10:16:36 -04:00
Michael (Parker) Parker
ac726a6d9f
Merge pull request #39 from parkervcp/breakfix/java
fix java timezone stupidity
2019-04-03 14:29:51 -04:00
Michael (Parker) Parker
562c37b83f forgot to add the route2 package 2019-03-31 22:04:00 -04:00
Michael (Parker) Parker
123a3d5681 add -y to apt-get command 2019-03-27 17:32:47 -04:00
Michael (Parker) Parker
3b1b2ba4d5 adding debian based openjdk 8 jre image 2019-03-27 17:12:38 -04:00
Dane Everitt
673714f637
Merge pull request #40 from parkervcp/breakfix/java-glibc
update to use the new frolvlad images
2019-03-05 12:06:49 -08:00
Michael (Parker) Parker
ebd31f6afd update to use the new frolvlad images
Use frolvlads new images.
Also fixes stupid java timezone issues.
2019-03-03 19:54:03 -05:00
Michael (Parker) Parker
93c91f060c fix java timezone stupidity
Java uses /etc/timezone but we are looping in /etc/localtime.
This just creates a symlink that fixes it.
2019-03-03 19:50:57 -05:00
Michael (Parker) Parker
3c5fcecb4a fix timezones for java on alpine 2019-03-03 19:44:59 -05:00
Michael (Parker) Parker
0f094dd8eb add tzdata to openjdk image 2019-03-03 19:22:01 -05:00
Dane Everitt
f79cc73b97
Merge pull request #27 from tenten8401/patch-2
Add fontconfig to dockerfile dependencies
2018-10-28 12:33:18 -07:00
Michael (Parker) Parker
91ceefa5c3 adding fontconfig 2018-10-05 23:15:59 -04:00
Isaac A
03e7f558a4
Add fontconfig to dockerfile dependencies
Some plugins that deal with rendering fonts might throw a nasty error since it's a headless JDK, supposedly installing this package fixes the issue.
An example of the issue can be found here: https://hastebin.com/tegasuwedo.rb
2018-10-05 23:10:49 -04:00
Michael (Parker) Parker
d436f347bd
Merge pull request #13 from Exonical/java
Fix Maintainer Deprecation
2018-07-13 18:51:41 -04:00
Unknown
bbd6cade27 Fix Maintainer Deprecation 2018-07-13 16:15:45 -04:00
Michael (Parker) Parker
008a9d4f90 package update 2018-04-28 09:23:49 -04:00
Dane Everitt
ec4e473e17
Merge pull request #23 from parkervcp/java
updating image
2018-03-25 11:37:16 -05:00
Dane Everitt
2d70bea48e
Merge pull request #21 from parkervcp/java-glibc
updating image
2018-03-25 11:36:28 -05:00
Michael (Parker) Parker
87ee3696ee updating image 2018-02-26 23:45:34 -05:00
Michael (Parker) Parker
c6f4892b95 updating image 2018-02-26 23:43:48 -05:00
Dane Everitt
ae7aa977be
dont sleep 2018-01-06 14:56:10 -06:00
Dane Everitt
c705b6fc61
cleaner output 2018-01-06 14:55:21 -06:00
Dane Everitt
9bb8ea32b8
Cleaner output when running container 2018-01-06 14:54:47 -06:00
Dane Everitt
8f159d0239
Add support for accessing internal IP
Pterodactyl/Panel#613
2017-10-09 23:09:54 -05:00
Dane Everitt
ce771b8866
Add support for accessing internal IP
Pterodactyl/Panel#613
2017-10-09 23:09:17 -05:00
Dane Everitt
efe3809d58 Merge pull request #2 from parkervcp/java
Update Dockerfile
2017-05-03 16:35:46 -04:00
Michael (Parker) Parker
d0bd99b49e Update Dockerfile 2017-05-03 16:30:38 -04:00
Dane Everitt
5367bbab88 Merge pull request #1 from parkervcp/java-glibc
Update Dockerfile
2017-04-27 16:29:07 -04:00
Michael (Parker) Parker
ec7e4425a3 Update Dockerfile 2017-04-25 10:16:11 -04:00
Dane Everitt
bdb909bacf switch to JDK in non-glibc container 2017-04-09 11:12:34 -04:00
Dane Everitt
9d256f43b3
Add glibc support 2017-03-18 20:15:05 -04:00
Dane Everitt
89dace70d6 use java:openjdk-8-jre-alpine 2017-03-18 19:47:52 -04:00
Dane Everitt
22638cfec1
Revert name of variable 2017-03-17 19:35:36 -04:00
Dane Everitt
415f722708
Push core java image. 2017-03-17 19:29:12 -04:00
3 changed files with 41 additions and 38 deletions

24
Dockerfile Normal file
View File

@ -0,0 +1,24 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Java (glibc support)
# Minimum Panel Version: 0.6.0
# ----------------------------------
FROM adoptopenjdk/openjdk8-openj9:debian-slim
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
RUN apt-get update -y \
&& apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 \
&& useradd -d /home/container -m container
USER container
ENV USER=container HOME=/home/container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]

View File

@ -1,38 +1,2 @@
[![Logo Image](https://cdn.pterodactyl.io/logos/Banner%20Logo%20Black@2x.png)](https://pterodactyl.io) # Containers: Java
Generic java container built on top of Alpine Linux to support games such as Minecraft and Bungeecord.
This repository contains generic [Docker](https://docker.com) images that are used by Pterodactyl Panel to run games. With the release of `v0.6.0` of our panel, we have moved to making the install process be a completely seperate part of the process, making it much easier to maintain a smaller set of Dockerfiles.
Our goal here is to maintain images that can run a wide variety of games in individual branches. For example, the [`java` branch](https://github.com/Pterodactyl/Containers/tree/java) is a standardized Docker container running on Alpine Linux that should support most all Minecraft based games, as well as java based games. We install all of the required dependencies that we ae aware of, but if you notice one missing, we welcome you to either raise an issue in here, or submit a PR to add it.
The `entrypoint.sh` files **should not do any application installing**, and exist solely to parse startup commands passed to the container, and then run them, with a pause at the beginning to allow the Daemon time to boot and attach to the container.
## Current Images
Every branch, except master, is a different image. For a current list of images, check the branch list [here](https://github.com/Pterodactyl/Containers/branches/active).
## Contributing
We welcome any contributions you might have. Please follow our formatting for Dockerfiles, which involves minimizing the number of layers, as well as the size of the container. If possible, please stick to Alpine Linux based images, however we do make use of `ubuntu:16.04` in the [`source` branch](https://github.com/Pterodactyl/Containers/tree/source) due to Source Engine limitations, and reducing the conflicts that might arise.
## License
```
MIT License
Copyright (c) 2017-2018 Pterodactyl Software
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

15
entrypoint.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
cd /home/container
# Output Current Java Version
java -version
# Make internal Docker IP address available to processes.
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
echo ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}