Skip to content

Update onCreate.sh to copy deploy script#25

Merged
alexagillman merged 1 commit intomainfrom
alexagillman-deployscript
May 7, 2025
Merged

Update onCreate.sh to copy deploy script#25
alexagillman merged 1 commit intomainfrom
alexagillman-deployscript

Conversation

@alexagillman
Copy link
Copy Markdown
Collaborator

@alexagillman alexagillman commented May 7, 2025

Copilot AI review requested due to automatic review settings May 7, 2025 15:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds the deploy.sh script to the container setup so it’s moved into /usr/local/bin alongside the other SDK tools.

  • Includes deploy.sh in the post-create move steps
  • Keeps naming and placement consistent with existing utility scripts
Comments suppressed due to low confidence (1)

.devcontainer/onCreate.sh:34

  • [nitpick] To align with the spark- prefix used by other tools (e.g., spark-server), consider renaming this to spark-deploy.sh or dropping the .sh extension for consistency.
sudo mv ./spark-sdk-dist/deploy.sh /usr/local/bin/deploy.sh

sudo mv ./spark-sdk-dist/server.js /usr/local/bin/spark-server
sudo mv ./spark-sdk-dist/designer.js /usr/local/bin/spark-designer
sudo mv ./spark-sdk-dist/upload-to-remote.sh /usr/local/bin/upload-to-remote.sh
sudo mv ./spark-sdk-dist/deploy.sh /usr/local/bin/deploy.sh
Copy link

Copilot AI May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After moving the script, ensure it’s executable by adding a chmod +x step, for example:

sudo mv ./spark-sdk-dist/deploy.sh /usr/local/bin/deploy.sh
sudo chmod +x /usr/local/bin/deploy.sh

Suggested change
sudo mv ./spark-sdk-dist/deploy.sh /usr/local/bin/deploy.sh
sudo mv ./spark-sdk-dist/deploy.sh /usr/local/bin/deploy.sh
sudo chmod +x /usr/local/bin/deploy.sh

Copilot uses AI. Check for mistakes.
@alexagillman alexagillman merged commit 7d2e021 into main May 7, 2025
6 checks passed
@alexagillman alexagillman deleted the alexagillman-deployscript branch May 7, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants