Skip to content
Snippets Groups Projects

Played around

Merged Jakob Moser requested to merge played-around into master
2 files
+ 13
8
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 8079e71f
    adding ENV for fileaccess · 8079e71f
    TheBroTMv2 authored
    adding ENV for easier access from host users (should be non-roots) but still defaults to 61000 if not specified
+ 4
3
@@ -14,7 +14,8 @@ ENV MC_VERSION="latest" \
PAPER_BUILD="latest" \
MC_RAM="2G" \
JAVA_OPTS="-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true"
#Man kann nun auch die guid des eigenen benutzers passen und mus somit nichtmehr die rechte des hostsystems anpassen, bitte die GUID eines non-root users nehmen der an dem speicherort zugriff hat.
GUID=61000
# Copy over the three script files (entrypoint, backup and restore)
COPY papermc.sh /
COPY backup.sh /
@@ -26,8 +27,8 @@ COPY test.sh /
RUN mkdir /papermc /backup
# Add papermc user and group, then change ownership of /papermc and /backup to this user
RUN groupadd -g 61000 ${papermc_group}
RUN useradd -g 61000 -l -M -s /bin/false -u 61000 ${papermc_user}
RUN groupadd -g ${GUID} ${papermc_group}
RUN useradd -g ${GUID} -l -M -s /bin/false -u ${GUID} ${papermc_user}
RUN chown -R ${papermc_user} /papermc
RUN chown -R ${papermc_user} /backup
Loading