This repository uses Dagger for testing, building, and releasing Harbor Satellite.
Follow the steps below to set up Dagger:
Choose your operating system and install the Dagger CLI:
- macOS:
brew install dagger/tap/dagger
- Windows:
Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 | Invoke-Expression; Install-Dagger
- Linux:
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
Run the following command to verify the Dagger installation:
-
dagger --version
If you encounter any errors, refer to the detailed installation guide.
Once the Dagger CLI is installed, navigate to the root folder of harbor-satellite and run:
-
dagger develop
This command will generate Go code in the ./ci folder.
After running dagger develop, your ./ci folder should contain the following structure:
-
ci/ ├── dagger.gen.go ├── ground_control.go ├── internal │ ├── dagger │ ├── querybuilder │ └── telemetry ├── satellite.go ├── README.md ├── release.sh └── utils.go
If you encounter any issues during this process, consult the Dagger Quickstart Guide for more detailed instructions.
To view available functions, run:
-
dagger functions
To run a particular function, run:
-
dagger call <function_name> --args
-
To build the satellite binaries, use the following command:
-
dagger call build --source=. --name=satellite
-
This would spin up a container and install required dependencies and build various architecture binaries