-
Notifications
You must be signed in to change notification settings - Fork 1
Working with cli container #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| FROM quali/torque-cli:2.5.8 | ||
|
|
||
| COPY entrypoint.sh /entrypoint.sh | ||
|
|
||
| ENTRYPOINT ["/entrypoint.sh"] |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,25 @@ | ||||||||||||||||||||||||
| #!/bin/sh -l | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| ENV_ID="$1" | ||||||||||||||||||||||||
| SPACE="$2" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| echo "Ending environment with id '${ENV_ID}' in space '${SPACE}'" | ||||||||||||||||||||||||
| params="\"${ENV_ID}\" --space \"${SPACE}\"" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| command="/Quali.Torque.Cli/torque-cli env end ${params} --token $TORQUE_TOKEN" | ||||||||||||||||||||||||
| echo "The following command will be executed: ${command}" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| echo "Ending environment..." | ||||||||||||||||||||||||
| response=$(eval $command 2>&1) | ||||||||||||||||||||||||
|
Comment on lines
+7
to
+13
|
||||||||||||||||||||||||
| params="\"${ENV_ID}\" --space \"${SPACE}\"" | |
| command="/Quali.Torque.Cli/torque-cli env end ${params} --token $TORQUE_TOKEN" | |
| echo "The following command will be executed: ${command}" | |
| echo "Ending environment..." | |
| response=$(eval $command 2>&1) | |
| echo "The following command will be executed: /Quali.Torque.Cli/torque-cli env end \"${ENV_ID}\" --space \"${SPACE}\" --token \"***\"" | |
| echo "Ending environment..." | |
| response=$(/Quali.Torque.Cli/torque-cli env end "${ENV_ID}" --space "${SPACE}" --token "$TORQUE_TOKEN" 2>&1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CLI path '/Quali.Torque.Cli/torque-cli' appears incorrect. Based on the Dockerfile using 'quali/torque-cli:2.5.8' base image, the CLI should be available in the system PATH as 'torque-cli' without the full path prefix. Verify the correct path or use just 'torque-cli'.