Skip to content

Conversation

@a-magdy
Copy link

@a-magdy a-magdy commented May 9, 2025

Support running the gitlab/bootstrap/setup.sh script locally

Copilot AI review requested due to automatic review settings May 9, 2025 16:21
@a-magdy a-magdy requested a review from a team as a code owner May 9, 2025 16:21
Copy link

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

This PR updates the gitlab/bootstrap/setup.sh script to support local execution by differentiating between Codespaces and local environments.

  • Introduces new variables (IS_LOCAL, ROOT, INSTALL_DIR) for distinguishing environments.
  • Adjusts file paths and tar extraction commands based on the execution context.
  • Modifies Docker volume mappings to use the updated INSTALL_DIR for local runs.
Comments suppressed due to low confidence (1)

gitlab/bootstrap/setup.sh:25

  • [nitpick] If this script is intended to be run directly instead of being sourced, consider using 'exit' with an appropriate error code instead of 'return' to ensure proper termination.
return

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.

1 participant