Skip to content

Instantly share code, notes, and snippets.

@rossja
Created May 5, 2020 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rossja/b829e57e5f5c57f5762ee2dd605953d7 to your computer and use it in GitHub Desktop.
Save rossja/b829e57e5f5c57f5762ee2dd605953d7 to your computer and use it in GitHub Desktop.
Dockerized Overviewer
worlds["default"] = "/tmp/server/world/"
worlds["nether"] = "/tmp/server/world_nether/"
renders["default_day"] = {
"world": "default",
"title": "Default Day",
"rendermode": smooth_lighting,
"dimension": "overworld",
}
renders["default_night"] = {
"world": "default",
"title": "Default Night",
"rendermode": smooth_night,
"dimension": "overworld",
}
renders["default_nether"] = {
"world": "nether",
"title": "Default Nether",
"rendermode": nether_smooth_lighting,
"dimension": "nether",
}
# default textures
#texturepath = "/tmp/overviewer/client.jar"
# custom textures
texturepath = "/tmp/textures/ChromaHills-128x-1.15-v1.zip"
outputdir = "/tmp/export/"
#!/bin/bash
# base location
BASE_DIR="$HOME/minecraft"
# location of the world files
SERVER_DIR="$BASE_DIR/papermc"
# location of the generated map files
EXPORT_DIR="$BASE_DIR/overviewer/maps"
# location of optional texture packs
TEXTURE_DIR="$BASE_DIR/overviewer/textures"
# custom config dir
CONFIG_DIR="$BASE_DIR/overviewer/config"
# run the docker image
docker run \
--rm \
-v $SERVER_DIR:/tmp/server/:ro \
-v $EXPORT_DIR/:/tmp/export/:rw \
-v $TEXTURE_DIR/:/tmp/textures/:ro \
-v $CONFIG_DIR/:/tmp/config/:ro \
-it marctv/minecraft-overviewer
@rossja
Copy link
Author

rossja commented May 5, 2020

Runs a docker container (marctv/minecraft-overviewer) passing in custom config and texture pack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment