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
| 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) |
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/launchserverUsing 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 | Explanation |
|---|---|
| Restart policy | "no", always, on-failure, unless-stopped |
| TZ | Timezone |
| PUID | for UserID |
| PGID | for GroupID |
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)
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`- Clone the repository:
git clone https://github.com/ijo42/GLauncherDockered.git - Prepare docker-compose.yml file as seen above
docker-compose up -d --build launchserver- ???
- Profit!