-
Notifications
You must be signed in to change notification settings - Fork 8
/
README
47 lines (33 loc) · 1.44 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Run SketchUp Make in container
==============================
Running SketchUp on Linux requires installation of Wine. That can
certainly be done as it is packaged for example for Fedora but
I prefer to keep my core workstation installation free of software
that I only use from time to time or which I only use for specific
purpose.
This repository helps me to run SketchUp Make 2017 from container
image, installed separately from by workstation packages.
Build image
-----------
This repository does not distribute the actual SketchUp Make binary.
Download the Windows version from
https://www.sketchup.com/download/make
and place it to this directory.
Then run
sudo docker build --build-arg=uid=$(id -u) -t sketchup .
Run the container
-----------------
The container image expects the directory with .skp files bind-mounted
to /data directory in the container. This is an example command to
run the container, mounting the current directory:
sudo docker run --read-only \
--tmpfs /tmp -v /tmp/.wine-$(id -u) \
-e DISPLAY=$DISPLAY \
--security-opt=label:type:spc_t --user=$(id -u):$(id -g) \
-v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 \
--device=/dev/dri/card0:/dev/dri/card0 \
-v $(pwd):/data --rm sketchup
SketchUp and Wine will store some config and state information in
subdirectory .sketchup-run/ of the directory mounted to /data,
creating that subdirectory upon the first run if needed. It should be
safe to remove that subdirectory.