Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Sivanantham Chinnaiyan <[email protected]>
  • Loading branch information
sivanantha321 committed Feb 5, 2024
1 parent 0cb1360 commit a62359c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 24 deletions.
11 changes: 10 additions & 1 deletion .github/actions/free-up-disk-space/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ runs:
if [ -s "${DOCKER_CONFIG_PATH}" ]; then
echo "Docker config daemon.json is found. Updating config ..."
# Append the new configuration to existing JSON data
jq --arg docker_root_dir "$DOCKER_ROOT_DIR" '. + {"data-root": $docker_root_dir}' /etc/docker/daemon.json | sudo cat > "${DOCKER_CONFIG_PATH}"
sudo jq --arg docker_root_dir "$DOCKER_ROOT_DIR" '. + {"data-root": $docker_root_dir}' /etc/docker/daemon.json | sudo cat > "${DOCKER_CONFIG_PATH}"
else
# If the file is empty, just write the new configuration
echo "Docker config daemon.json is empty. Updating config ..."
Expand All @@ -60,3 +60,12 @@ runs:
echo "Restarting docker ..."
sudo systemctl restart docker
echo "Docker root dir: $(docker info -f '{{ .DockerRootDir}}')"
echo "minikube datadir"
sudo mkdir -p /mnt/minikube/data
sudo ln -s /mnt/minikube/data /data
sudo mkdir -p /mnt/minikube/tmp/hostpath_pv
sudo ln -s /mnt/minikube/tmp/hostpath_pv /tmp/hostpath_pv
sudo mkdir -p /mnt/minikube/tmp/hostpath-provisioner
sudo ln -s /mnt/minikube/tmp/hostpath-provisioner /tmp/hostpath-provisioner
22 changes: 0 additions & 22 deletions .github/workflows/freeup-space.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/huggingface-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Free-up disk space
uses: ./.github/actions/free-up-disk-space

- name: Run tests
run: |
if [ -f docker-compose.test.yml ]; then
Expand Down
9 changes: 8 additions & 1 deletion test/scripts/gh-actions/build-server-runtimes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,25 @@ pushd python >/dev/null
if [[ " ${types[*]} " =~ "predictor" ]]; then
echo "Building Sklearn image"
docker buildx build -t ${SKLEARN_IMG} -f sklearn.Dockerfile .
df -hT
echo "Building XGB image"
docker buildx build -t ${XGB_IMG} -f xgb.Dockerfile .
df -hT
echo "Building LGB image"
docker buildx build -t ${LGB_IMG} -f lgb.Dockerfile .
df -hT
echo "Building PMML image"
docker buildx build -t ${PMML_IMG} -f pmml.Dockerfile .
df -hT
echo "Building Paddle image"
docker buildx build -t ${PADDLE_IMG} -f paddle.Dockerfile .
df -hT
echo "Building Custom model gRPC image"
docker buildx build -t ${CUSTOM_MODEL_GRPC} -f custom_model_grpc.Dockerfile .
df -hT
echo "Building image transformer gRPC image"
docker buildx build -t ${CUSTOM_TRANSFORMER_GRPC} -f custom_transformer_grpc.Dockerfile .
df -hT
fi

if [[ " ${types[*]} " =~ "explainer" ]]; then
Expand All @@ -71,5 +78,5 @@ pushd python >/dev/null
fi

popd

df -hT
echo "Done building images"

0 comments on commit a62359c

Please sign in to comment.