GLauncherDockered

Docker Image with GravitLauncher and minimal needed JVM to run

MPL-2.0 License

Stars
11

GravitLauncherDockered


Repo contains GravitLauncher, with lsiobase/alpine as the base image and minimal liberica JDK for image size reduce.

The lsiobase/alpine image is a custom base image built with Alpine linux and S6 overlay. Using this image allows us to use the same user/group ids in the container as on the host, making file transfers much easier

Deployment

Tags Description
latest Using the latest tag will pull the weekly-builded image.
latest-arm64 Using the latest tag will pull the weekly-builded image. (testing)

Pre-built images latest

using docker-compose:

version: "2"
services:
  launchserver:
    image: ijo42/glauncher:latest
    container_name: launchserver
    restart: unless-stopped
    tty: true
    stdin_open: true
    environment:
      - TZ=Europe/Moscow # Timezone
      - PUID=1000  # User  ID `id $(whoami) -u`
      - PGID=1000  # Group ID `id $(whoami) -g`
    ports:
      - 9274:9274
    volumes:
      - /host/path/to/launchserver:/app/launchserver

Using CLI:

docker create \
  --name=launchserver \
  -it -p 9274:9274 \
  -e TZ=Europe/Moscow `# Timezone` \
  -e PUID=1000 `# User ID` \
  -e PGID=1000 `# Group ID` \
  -v /host/path/to/launchserver:/app/launchserver `# Where conf will be stored` \
  --restart unless-stopped \
  ijo42/glauncher:latest

Configuration

Configuration Explanation
Restart policy "no", always, on-failure, unless-stopped
TZ Timezone
PUID for UserID
PGID for GroupID

User / Group Identifiers

When using volumes, permissions issues can arise between the host OS and the container. Linuxserver.io avoids this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id user as below:

  $ id $(whoami)
    uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)

Building the image yourself

Use the Dockerfile to build the image yourself, in case you want to make any changes to it

docker-compose.yml:

version: '2'
services:
  launchserver:
    container_name: launchserver
    build:
        context: ./GLauncherDockered
        args:
        - LAUNCHER_VERSION=a4355d1d
        - RUNTIME_VERSION=aa6fe1a8
    restart: unless-stopped
    tty: true
    stdin_open: true
    volumes:
      - /host/path/to/launchserver:/app/launchserver
    environment:
      - TZ=Europe/Moscow # Timezone
      - PUID=1000  # User  ID `id $(whoami) -u`
      - PGID=1000  # Group ID `id $(whoami) -g`
  1. Clone the repository: git clone https://github.com/ijo42/GLauncherDockered.git
  2. Prepare docker-compose.yml file as seen above
  3. docker-compose up -d --build launchserver
  4. ???
  5. Profit!
Badges
Extracted from project README
Docker Pulls Docker Image Size (latest by date) GitHub Repo stars GitHub forks
Related Projects