Skip to content

golang generic

A generic golang egg that compiles the application and saves an executable Meant to be customized before it is used.

egg-golang-generic.json

updated

Install

Installer image
golang:1.15-buster
Install script
17 lines

Image

  • Debian ghcr.io/ptero-eggs/yolks:debian

Startup

The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.

2 variables

Startup command

./{{EXECUTABLE}}
  • Go package to get and build

    GO_PACKAGEUsers can edit

    required|stringA value is required.

  • This is the executable from the build.

    EXECUTABLEUsers can see

    required|stringA value is required.

Wings

Stop command
^C (SIGINT)
Running when the console shows
change this part

Readme

Go Language Generic

This egg is designed to run any generic Go application, allowing users to pull their own Go source code from a Github repository.

The startup configs and commands may need changing to actually function properly.

Users cannot upload their own code as this is built to build the resulting bot.

GO_PACKAGE is the variable for the Go repo i.e. github.com/aurieh/ddg-ng EXECUTABLE is the variable for the executable that is built i.e. ddg-ng

Configuration

The server will be stuck as starting until the egg Start Configuration is modified. You have to edit the text to match something your bot will print for Pterodactyl panel to detect it as running. image

You can use arrays to have multiple different values when different bots are being used

{
  "done":[
    "change this text 1",
    "change this text 2"
  ]
}

Changes

  1. Fix docker image case

    · Daniel Barton · c6218f8

  2. Update repo names and remove some GH stuff for now

    · Daniel Barton · 8a5189b

  3. change over for pelican-eggs layout

    · Michael (Parker) Parker · 9a21770

  4. add mongodb 6 egg

    · Michael Parker · 1020f58

  5. Update egg-golang-generic.json

    · Michael (Parker) Parker · 8ce0fd0

  6. update golang image

    · Michael Parker · 653cba5

All changes on GitHub

Problem with this egg?

Open an issue on GitHub. Include your Panel and Wings versions.

Install script 17 lines bash in golang:1.15-buster Show
#!/bin/bash
# golang generic package


if [ ! -d /mnt/server/ ]; then
    mkdir -p /mnt/server/
fi

go get ${GO_PACKAGE}

cd src/${GO_PACKAGE}

go get

go build

cp -f ${EXECUTABLE} /mnt/server/