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
|