Skip to content

Commit

Permalink
More path fixes for installation
Browse files Browse the repository at this point in the history
  • Loading branch information
almahmoud committed Jan 8, 2025
1 parent 0435e79 commit db700d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/create_endpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ jobs:
- name: Create endpoint
run: |
sudo bash install_hubsingest.sh
bash install_hubsingest.sh
export PATH="$PATH:$BIOC_HUBSINGEST_PATH"
hubsingest create_endpoint "${{ inputs.username }}" "${{ inputs.size }}" ${{ secrets[env.SECRET_NAME] }}
1 change: 1 addition & 0 deletions .github/workflows/delete_endpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ jobs:
- name: Delete endpoint
run: |
sudo bash install_hubsingest.sh
export PATH="$PATH:$BIOC_HUBSINGEST_PATH"
hubsingest delete_endpoint "${{ inputs.username }}"
6 changes: 3 additions & 3 deletions install_hubsingest.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
HUBSINGESTPATH=${BIOC_HUBSINGEST_PATH:-/usr/local/bin/hubsingest}
mkdir -p $HUBSINGESTPATH
mkdir -p $HUBSINGESTPATH/scripts

curl -o $HUBSINGESTPATH/hubsingest https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/hubsingest
curl -o $HUBSINGESTPATH/hubsingest_create_endpoint.sh https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/scripts/hubsingest_create_endpoint.sh
curl -o $HUBSINGESTPATH/hubsingest_delete_endpoint.sh https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/scripts/hubsingest_delete_endpoint.sh
curl -o $HUBSINGESTPATH/scripts/hubsingest_create_endpoint.sh https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/scripts/hubsingest_create_endpoint.sh
curl -o $HUBSINGESTPATH/scripts/hubsingest_delete_endpoint.sh https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/scripts/hubsingest_delete_endpoint.sh

chmod +x $HUBSINGESTPATH/hubsingest
echo 'In order to persist the path, you may want to run, and/or add to your `rc` files:'
Expand Down
2 changes: 1 addition & 1 deletion scripts/hubsingest_create_endpoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ EOF

kubectl create ns $PLACEHOLDERUSER-ns
kubectl apply -f /tmp/hubsingest.yaml -n $PLACEHOLDERUSER-ns
#rm /tmp/hubsingest.yaml
rm /tmp/hubsingest.yaml

0 comments on commit db700d0

Please sign in to comment.