1 Docker
Andus edited this page 2024-05-23 20:14:39 +02:00

Dockerized MCFG

Building:

Requirements:

  • Docker
  • Docker-buildx

Using commands:

  1. Login (if you're not logged in already): docker login git.andus.dev
  2. Build the image(s): docker buildx build --platform=linux/<arch> -t git.andus.dev/andus/mcfg:<version>-<arch> . --load (Replace <version> with a version number, and <arch> with either arm64 or amd64)
  3. Push the image(s): docker push git.andus.dev/andus/mcfg:<version>-<arch> (Again replace <version> and <arch>)

Using a ready script:

  1. Login (if you're not logged in already): docker login git.andus.dev
  2. Use ./scripts/container-push.sh to build and push the image(s) for you. Just fill out version and for which architectures you're building.

Running:

Requirements:

  • Docker
  • Docker-compose (Only needed if running using docker-compose)

Run MCFG using docker command:

docker run -itd -v ./files:/server/files -v ./settings:/server/settings --name mcfg --net=host git.andus.dev/andus/mcfg:<version>

Run MCFG using docker-compose.yml file:

version: "3.8"

services:
  mcfg:
    image: git.andus.dev/andus/mcfg:<version>
    network_mode: "host"
    volumes:
      - ./files:/server/files:rw 
      - ./settings:/server/settings:rw