1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +00:00
config-fish/functions/redocker.fish

34 lines
661 B
Fish
Raw Normal View History

2023-11-13 03:44:50 +00:00
function redocker
2023-11-13 03:49:27 +00:00
set project (docker compose config --format json | jq --raw-output .name)
2023-11-13 03:44:50 +00:00
echo_progress "Pulling images used by "
echo_highlight "$project"
echo_progress "..."
echo
docker compose pull
echo_progress "Building images using by "
echo_highlight "$project"
echo_progress "..."
echo
docker compose build
echo_progress "Taking down "
echo_highlight "$project"
echo_progress "..."
echo
docker compose down
echo_progress "Bringing up "
echo_highlight "$project"
echo_progress "..."
echo
docker compose up -d
echo_progress "Opening logs of "
echo_highlight "$project"
echo_progress "..."
echo
docker compose logs -f
end