Closed sroertgen closed 1 year ago
To try the configuration out along with the docker-based dev process, I did the following:
static/fonts
static/images
$ sudo apt install docker.io
$ docker run -v $(pwd)/public:/app/public -v $(pwd)/data:/app/data -v $(pwd)/.env:/app/.env -v $(pwd)/config.yaml:/app/config.yaml -v $(pwd)/static/fonts:/app/static/fonts skohub/skohub-vocabs-docker:latest
(which worked)$ docker-compose up
gives me this error:
dev_1 | ERROR UNKNOWN
dev_1 |
dev_1 | EACCES: permission denied, unlink '/app/public/fonts/RobotoMono-Bold.ttf'
dev_1 |
dev_1 | dev_1 | Error: EACCES: permission denied, unlink '/app/public/fonts/RobotoMono-Bold.tt dev_1 | f' dev_1 | not finished Building development bundle - 0.182s
Versions:
$ docker -v Docker version 20.10.12, build 20.10.12-0ubuntu2~20.04.1
$ docker-compose version docker-compose version 1.25.0, build unknown docker-py version: 4.1.0 CPython version: 3.8.10 OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
I could make it run with sudo rm -rf .cache public
and docker-compose up
once again. (As @sroertgen told me via chat.)
So, everything works fine. I guess we will have to update the Readme a bit to take these problems into account, won't we?
I think we resolved this in #217, where we use another Dockerfile, but for now a note should be added
Add configuration options as discussed in #185.
Remember, if you want to test the docker stuff, you have to build the image beforehand and adjust the tag.