Skip to content

Commit

Permalink
ci:add manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Jan 25, 2024
1 parent 294fa54 commit 319acfc
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 48 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ jobs:
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:latest-wine
publish-latest-manifest:
needs:
- publish-windows
- publish-wine
permissions:
packages: write
runs-on: ubuntu-latest
Expand All @@ -96,6 +99,11 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull images
run: |
docker pull ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:latest-windows
docker pull ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:latest-wine
- name: Publish manifest
run: |
docker manifest create ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:latest \
Expand Down
54 changes: 6 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,19 @@ A docker image that provides a LeviLamina server that will automatically downloa

## Usage

The following starts a LeviLamina server running a default version and exposing the default UDP port:
To start the server in a Linux container, run the following command:

Linux Container:
```sh
docker run -d -it -e EULA=TRUE -p 19132:19132/udp -v levilamina-server-data:/data ghcr.io/liteldev/levilamina-server-wine
docker run -d -it -e EULA=TRUE -p 19132:19132/udp -v levilamina-server-data:/data ghcr.io/liteldev/levilamina-server:latest-wine
```

Windows Container:
```sh
docker run -d -it -e EULA=TRUE -p 19132:19132/udp -v C:/levilamina-server-data:C:/data ghcr.io/liteldev/levilamina-server-windows
```

If you plan to use the server in production, it is recommended to use Docker Compose to manage the container. You can use the following `compose.yaml` file as a template:

Linux Container:
```yml
services:
mc-server:
image: ghcr.io/liteldev/levilamina-server-windows
environment:
EULA: TRUE
VERSION: 0.4.2
PACKAGES: |
github.com/LiteLDev/[email protected]
ports:
- 19132:19132/udp
volumes:
- levilamina-server-data:/data
stdin_open: true
tty: true
Or, if you want to use a Windows container, run the following command:

volumes:
levilamina-server-data:
```sh
docker run -d -it -e EULA=TRUE -p 19132:19132/udp -v levilamina-server-data:C:/data ghcr.io/liteldev/levilamina-server:latest-windows
```

Windows Container:
```yml
services:
mc-server:
image: ghcr.io/liteldev/levilamina-server-wine
environment:
EULA: TRUE
VERSION: 0.4.2
PACKAGES: |
github.com/LiteLDev/[email protected]
ports:
- 19132:19132/udp
volumes:
- C:levilamina-server-data:C:/data
stdin_open: true
tty: true

volumes:
levilamina-server-data:
```
We also provide Docker Compose files for both Linux and Windows containers at [wine/compose.yaml](wine/compose.yaml) and [windows/compose.yaml](windows/compose.yaml) respectively. To use them, download the file to an empty directory and run `docker compose up -d`.

### Environment variables

Expand Down
15 changes: 15 additions & 0 deletions windows/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
levilamina-server:
image: ghcr.io/liteldev/levilamina-server:latest-windows
environment:
EULA: TRUE
VERSION: LATEST
ports:
- 19132:19132/udp
volumes:
- levilamina-server-data:/data
stdin_open: true
tty: true

volumes:
levilamina-server-data:
15 changes: 15 additions & 0 deletions wine/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
levilamina-server:
image: ghcr.io/liteldev/levilamina-server:latest-wine
environment:
EULA: TRUE
VERSION: LATEST
ports:
- 19132:19132/udp
volumes:
- levilamina-server-data:/data
stdin_open: true
tty: true

volumes:
levilamina-server-data:

0 comments on commit 319acfc

Please sign in to comment.