Open alfureu opened 5 years ago
Not really sure what you are doing, but try to remove the file .dockerignore from the project folder before build. If this does not help, what do I need to do to reproduce?
Anyway: why it is building? Did you use the image from this repos' release page?
I build because I do not have make
available on my NAS, and even if I install it through entware, it does not compile. So I use the commands from the Makefile
so what's your build command?
sudo docker build --build-arg TIMEZONE=Europe/Berlin--tag "alpine-infcloud-baikal:3.9-0.13.1-0.5.2" --tag "alpine-infcloud-baikal:latest" --no-cache .
rm "alpine-infcloud-baikal.3.9-0.13.1-0.5.2.tgz" || true
docker image save --output "alpine-infcloud-baikal.3.9-0.13.1-0.5.2.tgz" "alpine-infcloud-baikal:3.9-0.13.1-0.5.2"
docker run --publish 8800:8800 --volume "/volume1/home/docker/docker-baikal-infcloud/baikal:/var/www/baikal/Specific" alpine-infcloud-baikal
There is a missing "space" before --tag in first line TIMEZONE=Europe/Berlin--tag "alpine...
so the image is not tagged correctly nor is the build arg correct.
Thanks @bjuretko that was the issue. Sorry, was completely blind not noticing that problem.
I have one more question: if I use sqlite, and I need to rebuild again, how can I preserve the database? I have a mounted volume of baikal/Specific
but in case I will need to rebuild the container again, how can I preserve the database and just re-link it again?
the volume should be preserved (at least thats the idea of them, because otherwise you could just store them in the container which will then be lost if you update the container). Anyway ... it is good make a backup of the volume data before this and just check it out with your provider.
see https://docs.docker.com/engine/reference/commandline/volume/
Trying to rebuild this and getting this strange error:
It always tries to copy into a different folder, which is based on the docker-compose.yaml read-only, and the file is just not there. I followed all the steps in the tutorial.