Skip to content

Replace entrypoint scripts with GoLang application #33

@P4sca1

Description

@P4sca1

The idea is to replace the current bash / powershell entrypoint scripts with a GoLang application.

Advantages:

  • No need to maintain nearly identical code in bash and powershell
  • Easier code sharing of common utilities
  • More powerful
  • Sanitize arguments more easily by using exec.Command instead of eval with an arbitrary string

Instead of using environment configuration only, we could also support config files using
https://github.com/spf13/viper.

Directory structure:

game-images/
├── common/
│   └── module.go
├── games/
│   ├── game1/
│   │   ├── docker/
│   │   │   ├── Dockerfile.linux
│   │   │   ├── Dockerfile.windows
│   │   ├── entrypoint/
│   │   │   ├── main.go
│   ├── game2/
│   │   ├── docker/
│   │   │   ├── Dockerfile.linux
│   │   │   ├── Dockerfile.windows
│   │   ├── entrypoint/
│   │   │   ├── main.go
└── README.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions