pelican-eggs / eggs

Service eggs for the pterodactyl panel
MIT License
2.84k stars 2.32k forks source link

[Egg Request]: Cassandra ( DataBase ) #1275

Open BasToTheMax opened 3 years ago

BasToTheMax commented 3 years ago

Service

Database: Apache Cassandra

Does this expand an already existing service

Yes

Link to game

https://cassandra.apache.org

Links for server downloads

https://cassandra.apache.org/

Links for the install docs

https://cassandra.apache.org/_/quickstart.html

pascal-zarrad commented 3 years ago

Installing should be possible by using the binary tar.gz distribution. I might add Cassandra as an egg, as it is like MongoDB and MariaDB a nice database to use and run. Unlike MariaDB, it should be possible to add this without needing an entirely new Docker image, what makes adding it way easier.

BasToTheMax commented 3 years ago

Installing should be possible by using the binary tar.gz distribution. I might add Cassandra as an egg, as it is like MongoDB and MariaDB a nice database to use and run. Unlike MariaDB, it should be possible to add this without needing an entirely new Docker image, what makes adding it way easier.

Wich docker image should I use?

pascal-zarrad commented 3 years ago

I'm currently on implementing an egg to provide Cassandra without manual installation.

If you want to manually set up Cassandra for now you can use: ghcr.io/pterodactyl/yolks:java_11

pascal-zarrad commented 3 years ago

Important: Do not forgot to unset Xms in the JVM options. If you set it, it will kill the container

pascal-zarrad commented 3 years ago

I want to start a CQL shell to allow the server administrator to prepare his instance from the Pterodactyl console. Issue here is that CQLSH is based on Python. The default Java images only ship with Java..

@parkervcp / @Software-Noob I'm not sure if a new image in yolks shipping with Java + Python for Cassandra would be accepted? .../yolks:java_11_python_36

A specific Cassandra Docker image with Cassandra included does not really make sense for the official egg, as I think the easiest way to keep the egg updated is to let the user specify the Cassandra version and then pull it from an official mirror. So, a generic Java/Python image would be the choice that is more maintainable.

Software-Noob commented 3 years ago

I want to start a CQL shell to allow the server administrator to prepare his instance from the Pterodactyl console. Issue here is that CQLSH is based on Python. The default Java images only ship with Java..

@parkervcp / @Software-Noob I'm not sure if a new image in yolks shipping with Java + Python for Cassandra would be accepted? .../yolks:java_11_python_36

A specific Cassandra Docker image with Cassandra included does not really make sense for the official egg, as I think the easiest way to keep the egg updated is to let the user specify the Cassandra version and then pull it from an official mirror. So, a generic Java/Python image would be the choice that is more maintainable.

Egg-specific images are avoided whenever possible but can be created if that's the only option. They exist already for some eggs.

pascal-zarrad commented 3 years ago

PR for compatible images has been created. Development will continue as soon as the image(s) are merged and deployed to ghcr.

BasToTheMax commented 3 years ago

How far are you with the development?

pascal-zarrad commented 3 years ago

About 80-90% done:

pascal-zarrad commented 3 years ago

Another Update:

pascal-zarrad commented 3 years ago

@BasToTheMax PR has been created, feel free to test it and also leave an review. If you'd like something to be done differently, suggest it in the PR.

BasToTheMax commented 3 years ago

It seems its working. Today I will test if I can connect via a client-library.

I also found a typo at line 7 in the start.sh file.

parkervcp commented 3 years ago

@BasToTheMax have you tested the latest release?

BasToTheMax commented 2 years ago

I think everything is working!

parkervcp commented 2 years ago

@BasToTheMax Just catching up on this. Is everything working here?

BasToTheMax commented 2 years ago

I haven't encountered any error so far.