buddhi1980 / mandelbulber2

Official repository for Mandelbulber v2
GNU General Public License v3.0
896 stars 116 forks source link

Provided Dockerfile fails to build #857

Closed austin-millan closed 3 years ago

austin-millan commented 3 years ago
System information (version)
Detailed description

I tried building a container from the provided Dockerfile but ran into issues in the final stage.

1. COPY Fails

It appears at some point the archive changed from being .tar.xz to .tar.zst.

2. Problems with User

When passing user $(id) as the USER_UID it's still not enough to run mandelbulber.

Steps to reproduce
1. COPY Fails
$ git clone git@github.com:buddhi1980/mandelbulber2.git
...
$ cd mandelbulber2/
$ git checkout b7685c2
...
$ docker build -t buddhi1980/mandelbulber2 .
Sending build context to Docker daemon  412.2MB
Step 1/19 : FROM archlinux:latest as base
 ---> dd558cc83192
...
Step 11/19 : FROM base as final
 ---> e40d211b3fdf
Step 12/19 : ENV MANDELBULBER=/usr/sbin/mandelbulber2     USER_UID=1001     USER_NAME=mandelbulber     USER_HOME=/home/mandelbulber
 ---> Using cache
 ---> dc1251936edc
Step 13/19 : COPY --from=builder /home/builder/src/*.pkg.tar.xz /tmp/
COPY failed: no source files were specified
2. Problems with User
$ docker run -e USER_UID=${id} -it --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" buddhi1980/mandelbulber2:latest mandelbulber2
Detected 12 CPUs
Mandelbulber 2.26-dev
Log file name: //.mandelbulber_log.txt
Program data files directory /usr/share/mandelbulber2/
Default data hidden directory: //.mandelbulber/
Default data public directory: //mandelbulber/
Warning: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-'
((null):0, (null))

Critical: error: directory  "//.mandelbulber/"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//mandelbulber/"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/images"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/thumbnails"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/toolbar"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/httpCache"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/customWindowState"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/settings"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/slices"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/materials"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/animation"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/netrender"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/gradients"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/openclTemp"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/customFormulas"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: error: directory  "//.mandelbulber/undo"  cannot be created
(src/system.cpp:383, bool CreateFolder(const QString&))

Critical: Can't open destination file for copying:  "//.mandelbulber/toolbar/menger sponge.fract"
(src/files.cpp:192, int fcopy(const QString&, const QString&))

Critical: Can't open destination file for copying:  "//.mandelbulber/toolbar/octahedron.fract"
(src/files.cpp:192, int fcopy(const QString&, const QString&))

Critical: Can't open destination file for copying:  "//.mandelbulber/toolbar/icosahedron.fract"
(src/files.cpp:192, int fcopy(const QString&, const QString&))

Critical: Can't open destination file for copying:  "//.mandelbulber/toolbar/mandelbox scale 2.fract"
(src/files.cpp:192, int fcopy(const QString&, const QString&))

Critical: Can't open destination file for copying:  "//.mandelbulber/toolbar/mandelbulb_power_9.fract"
(src/files.cpp:192, int fcopy(const QString&, const QString&))

Critical: Can't open destination file for copying:  "//.mandelbulber/toolbar/dodecahedron.fract"
(src/files.cpp:192, int fcopy(const QString&, const QString&))

Critical: Can't open destination file for copying:  "//.mandelbulber/toolbar/mandelbulb_power_2.fract"
(src/files.cpp:192, int fcopy(const QString&, const QString&))

Critical: Can't open destination file for copying:  "//.mandelbulber/toolbar/mandelbox scale -2.fract"
(src/files.cpp:192, int fcopy(const QString&, const QString&))

Critical: Can't open destination file for copying:  "//.mandelbulber/toolbar/quaternion.fract"
(src/files.cpp:192, int fcopy(const QString&, const QString&))

Critical: Files/directories initialization failed
(src/main.cpp:126, int main(int, char**))