Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

how to update #82

Open
airdogvan opened this issue Aug 4, 2024 · 2 comments
Open

how to update #82

airdogvan opened this issue Aug 4, 2024 · 2 comments

Comments

@airdogvan
Copy link

Usually I update my docker images with docker-compose pull. But not possible since the images are built locally from Dockerfile.

Do I need to resync with the repo?

Thanks

@jandoerntlein
Copy link

Create a file update.sh and make it executable chmod a+x ./update.sh:

#!/bin/bash

for container in $(docker ps | grep "farfalle-" | awk '{print $1}'); 
	do echo $container; docker stop $container; docker rm $container;  
done

git pull
docker-compose -f docker-compose.dev.yaml up --build -d

Excecute ./update.sh consequently.

@airdogvan
Copy link
Author

thanks, but since the Dockerfiles might have changed I would need to do a git sync first otherwise it will build off the old stuff...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants