Skip to content

Commit

Permalink
update docker file for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglei1949 committed Jun 11, 2024
1 parent afa3faf commit 4dc51af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/graphscope-interactive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,9 @@ echo "ADMIN_ENDPOINT: ${ADMIN_ENDPOINT}"
echo "QUERY_ENDPOINT: ${QUERY_ENDPOINT}"
```
```bash
export NODE_IP=$(118f -n kubetask get pod lei-test-graphscope-interactive-primary-0 -o jsonpath="{.status.podIP}")
export ADMIN_PORT=$(118f get pod lei-test-graphscope-interactive-primary-0 -ojsonpath='{.spec.containers[0].ports[0].containerPort}')
export QUERY_PORT=$(118f get pod lei-test-graphscope-interactive-primary-0 -ojsonpath='{.spec.containers[1].ports[0].containerPort}')
```

Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ spec:
# cnt=$((cnt+1))
done
# secondary_pod_dns_names="${SECONDARY_SERVICE_NAME}:${SECONDARY_ADMIN_PORT}"
# if secondary_pod_dns_names size > 0, remove the first comma
if [ ${#secondary_pod_dns_names} -gt 0 ]; then
secondary_pod_dns_names=${secondary_pod_dns_names:1}
fi
echo "secondary_pod_dns_names: $secondary_pod_dns_names"
echo "cnt: $cnt"
sudo chown -R graphscope:graphscope $INTERACTIVE_WORKSPACE
Expand Down
3 changes: 3 additions & 0 deletions flex/interactive/docker/interactive-runtime.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ ARG ENABLE_COORDINATOR="false"
# change bash as default
SHELL ["/bin/bash", "-c"]

# install debug tools
RUN sudo apt-get update && sudo apt-get install -y vim iputils-ping curl

# install arrow
RUN cd /tmp && sudo apt-get update && sudo apt-get install -y -V ca-certificates lsb-release wget libcurl4-openssl-dev && \
curl -o apache-arrow-apt-source-latest.deb https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \
Expand Down

0 comments on commit 4dc51af

Please sign in to comment.