Closed maartenwolfsen closed 5 years ago
Hi @maartenatmarissen, I can't seem to reproduce it. Perhaps this is something related to your environment. I'm running Docker Docker version 17.05.0-ce, build 89658be
on Ubuntu 16.04.3 LTS
:
root@068a32f9b5af /tmp # hypernode-image-optimizer /tmp
[ 1%] /tmp/45684735.jpg (0 KB smaller)
Safe optimization profit over 1 files: 0 MB (1%)
I have not written anything to disk, use --write for that.
root@068a32f9b5af /tmp # hypernode-image-optimizer /tmp --write
[ 1%] /tmp/45684735.jpg (0 KB smaller)
Safe optimization profit over 1 files: 0 MB (1%)
I have written the optimized files to disk.
root@068a32f9b5af /tmp # su app
app@068a32f9b5af:/tmp$ hypernode-image-optimizer /tmp
[ 1%] /tmp/45684735.jpg (0 KB smaller)
Safe optimization profit over 1 files: 0 MB (1%)
I have not written anything to disk, use --write for that.
app@068a32f9b5af:/tmp$ hypernode-image-optimizer /tmp --write
[ 1%] /tmp/45684735.jpg (0 KB smaller)
Safe optimization profit over 1 files: 0 MB (1%)
I have written the optimized files to disk.
If this is related to the NamedTemporaryFile we could perhaps change that to something else but I suspect that if that doesn't work more other (python) scripts won't work in your setup. There are some shm
related flags you can pass to docker run
, perhaps you can try playing with those to get it to work.
Hello @vdloo , I will try to experiment with those shm
related flags, thank you!
When I run
hypernode-image-optimizer
, I get the following error:Now I don't know if this is a problem in the docker image or the hypernode-image-optimizer, but the latter is not on Github.