Image

Learn how to make a image for HydraPanel


Example Dockerfile

FROM ubuntu:latest

WORKDIR /app/data

RUN echo "PORT=\$PRIMARY_PORT" > config.txt

This will create config.txt file in container having written the instance port u can add more ENV by adding it in image file


Sample JSON

{
  "Image": "ghcr.io/hydren-dev/yolks:java",
  "AltImages": [
    "ghcr.io/hydren-dev/yolks:java"
  ],
  "StartedMessage": "For help, type "help",
  "_note1": "This will show container@hydra~ Server marked as Started if the StartedMessage is in Terminal"
  "Cmd": "",
  "Env": [
    "START=java -Xms128M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar"
  ],
  "StopCommand": "stop",
  "features":["eula"], 
  "_note2": "eula feature is avaliable only",
  "Scripts": {
    "Install": [
      {
        "Uri": "https://download.getbukkit.org/spigot/spigot-{{Version}}.jar",
        "Path": "server.jar"
      },
      {
        "Uri": "https://raw.githubusercontent.com/hydren-dev/images_v2/main/spigotmc/server.properties",
        "Path": "server.properties"
      }
    ]
  },
  "Variables": {
    "Version": {
      "type": "text",
      "default": "1.21",
      "required": true
    }
  },
  "Name": "Minecraft Java: SpigotMC",
  "Description": "SpigotMC is a high-performance, open-source server software for Minecraft, designed to enhance and optimize the game's multiplayer experience. It offers extensive configuration options, a vibrant plugin ecosystem, and active community support, making it a popular choice for server administrators seeking to improve gameplay and server performance.",
  "Author": "[email protected]",
  "AuthorName": "Hydra Labs",
  "Meta": {
    "Version": "Hydren Images v1"
  }
}

Variables

Variable Function
$INSTANCE_MEMORY Memory of the Container
$INSTANCE_CPU Cpu of the container
$PRIMARY_PORT The Main Port of the container
$INSTANCE_ID Container ID