Closed jakemayeux closed 2 years ago
Build failed with this, seems like something is broken with Travis?
The command "echo "$DOCKER_PWD" | docker login -u "$DOCKER_USER" --password-stdin" failed and exited with 1 during .
Hi @jakemayeux ,
In your error message, there is Are you trying to mount a directory onto a file (or vice-versa)
.
Can you tell me what is your ~/radicale/config
?
This config
must be a directory, not a file. I know this is tricky, but Docker can only mount directories.
So the directories layout shoud be:
~/radicale
subdir: config
file: config
# which gives ~/radicale/config/config as a regular file
Hi @jakemayeux ,
Any news?
I don't have ~/radicale/config
but I do have a ~/docker-radicale/config
which is a file. It looks like this change is not necessary anymore though.
I would still recommend making the change to the data mount. As it is now, the docker-compose.yml
assumes this repository is cloned into ~/radicale
. This change will allow it to work anywhere as long as data
is in the same directory as docker-compose.yml
As it is now, the docker-compose.yml assumes this repository is cloned into ~/radicale.
Actually, there is no need to checkout the repo, at all.
When running something along docker run ... tomsquest/radicale
, the image is downloaded from docker hub. No need to checkout for 99% of use case.
There is the 1% of people who want custom BUILD_UID/GID, and which need to build the image themselves, but that's it.
But maybe you are right, and the "default" data folder shoud better be in .
than in ~
.
Can you:
~/radicale/data
. There are some in the Readme for example.doc: change data dir to .data
Thanks,
Thanks @jakemayeux !
You are now part of the pantheon: 60e455e9ae75a66ab80d8680fd3fa5d1be96b14b
This fixes a bug when trying to start the container using docker-compose.
Also, I changed the path on the host to be relative to the docker-compose file so it no longer assumes the full path of the project.