Эх сурвалжийг харах

readme: added launch cmd using docker-compose; docker-compose: X11 readonly; release v1.0.0

Fabian Peter Hammerle 4 жил өмнө
parent
commit
7b25dc320a
4 өөрчлөгдсөн 20 нэмэгдсэн , 3 устгасан
  1. 12 0
      CHANGELOG.md
  2. 3 1
      Dockerfile
  3. 4 0
      README.md
  4. 1 2
      docker-compose.yml

+ 12 - 0
CHANGELOG.md

@@ -0,0 +1,12 @@
+# Changelog
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [Unreleased]
+
+## [1.0.0] - 2019-12-22
+### Added
+- launch toontown rewritten using official launcher
+  (tested launcher v1.2.3 / ttr-live v2.6.7)

+ 3 - 1
Dockerfile

@@ -25,6 +25,8 @@ USER player
 VOLUME /toontown-rewritten/engine
 WORKDIR /toontown-rewritten/engine
 ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libdrm.so.2
-# TODO required?
+# X Error: BadAccess (attempt to access private resource denied) 10
+# X Error: BadShmSeg (invalid shared segment parameter) 128
+# X Error: BadDrawable (invalid Pixmap or Window parameter) 9
 ENV QT_X11_NO_MITSHM=1
 CMD /toontown-rewritten/launcher/Launcher

+ 4 - 0
README.md

@@ -0,0 +1,4 @@
+```sh
+$ xhost +
+$ docker-compose up --build
+```

+ 1 - 2
docker-compose.yml

@@ -12,8 +12,7 @@ services:
     environment:
     - DISPLAY
     volumes:
-    # TODO mount readonly?
-    - /tmp/.X11-unix:/tmp/.X11-unix:rw
+    - /tmp/.X11-unix:/tmp/.X11-unix:ro
     - engine:/toontown-rewritten/engine:rw
     security_opt: [no-new-privileges]