Bitbucket
Prerequisites
To complete this guide, ensure you have:
- A Bitbucket account
- A terminal with:
Set up variables
Define your Bitbucket workspace and repository:
Find your workspace slug in the Bitbucket URL: https://bitbucket.org/<workspace>/. It's usually your username or organization name.
BITBUCKET_WORKSPACE=""
BITBUCKET_REPOSITORY="ascend-community"
Select your Ascend data plane:
- BigQuery
- Databricks
- Snowflake
bash DATA_PLANE="bigquery"
bash DATA_PLANE="databricks"
bash DATA_PLANE="snowflake"
Otto's Expeditions supports multiple data planes. You can explore the demo using separate Projects for each or a single Project with multiple data planes. This guide focuses on a single data plane setup.
Copy Ascend Community code to your repository
- Create a New Repository (Recommended)
- Use an Existing Repository
Clone the public ascend-io/ascend-community GitHub repository:
git clone https://github.com/ascend-io/ascend-community.git $BITBUCKET_REPOSITORY
Navigate to the repository directory:
cd $BITBUCKET_REPOSITORY
Remove the existing .git directory:
rm -rf .git
Initialize a new Git repository:
git init
Create a commit:
git checkout -b main
git add .
git commit -m "copy code from ascend-io/ascend-community"
Create a new private repository in Bitbucket:
- Go to Bitbucket, click Create, and select Repository.
- Set the repository name to
ascend-community(to match$BITBUCKET_REPOSITORY). - Select No for both
Include a README?andInclude .gitignore, as these will be added later. - Ensure Private repository is selected. Use
mainfor the default branch. - Click Create repository.
Set up variables
Set the Project root:
PROJECT_ROOT="ottos-expeditions/projects/$DATA_PLANE"
Clone your existing repository:
git clone git@bitbucket.org:$BITBUCKET_WORKSPACE/$BITBUCKET_REPOSITORY.git
Navigate to the repository directory:
cd $BITBUCKET_REPOSITORY
Check your current Git branch and status:
git branch
git status
Clone the Ascend community code:
git clone https://github.com/ascend-io/ascend-community.git ascend-community
Copy the files to your repository:
cp -r ascend-community/* .
rm -rf ascend-community
Create a commit:
git add .
git commit -m "copy code from ascend-io/ascend-community"
git push
Set the Project root:
PROJECT_ROOT="ottos-expeditions/projects/$DATA_PLANE"
Enable SSH access to the Bitbucket repository
Ascend requires a private SSH key for Bitbucket repository access. Add the corresponding public SSH key as an access key in Bitbucket.