Skip to content

Commit

Permalink
add logs print
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue committed Dec 26, 2024
1 parent 8595707 commit 65b8fe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/manual-docker-clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
clean_list:
default: ""
description: "docker command to clean"
required: true
required: false
type: string

jobs:
Expand All @@ -24,6 +24,8 @@ jobs:
run: |
docker ps
if [ "${{ inputs.clean_list }}" ]; then
echo "----------stop and remove containers----------"
docker stop ${{ inputs.clean_list }} && docker rm ${{ inputs.clean_list }}
echo "----------container removed----------"
docker ps
fi
7 changes: 1 addition & 6 deletions .github/workflows/scripts/docker_compose_clean_up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ case "$1" in
ports)
# Remove all ports used by containers
echo "Release all ports used by the services in $yaml_file ..."
export PATH=/home/huggingface/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
echo $PATH
pip install --force-reinstall PyYAML
pip install --force-reinstall jq yq
pip list | grep jq
pip list | grep yq
pip install jq yq
ports=$(yq '.services[].ports[] | split(":")[0]' $yaml_file | grep -o '[0-9]\+')
echo "$ports"
for port in $ports; do
Expand Down

0 comments on commit 65b8fe8

Please sign in to comment.