-
Notifications
You must be signed in to change notification settings - Fork 1
Local Testing
obs-gh-alexlew edited this page May 31, 2024
·
4 revisions
If you want to build the agent packages/archives locally and then install them in a separate environment, you can use goreleaser to do so.
- Install
goreleaserif you haven't already. See Installing Goreleaser
1a. To enable msi builds, brew install msitools
- Create a snapshot build
goreleaser release --prepare --clean --snapshot
This should run and generate all the archives into a /dist folder. Within that folder find the package that fits your operating system and processor architecture.
- Copy the package to your target and install it
You can copy the .deb file to your home dir on the cloud instance with the following command
scp dist/observe-agent_0.1.41~SNAPSHOT-64cf0cd_amd64.deb [email protected]:
Replace the package filename with the package you want to copy and ip address with your cloud instance's ip address.
Then once the package is copied over, you can install it with
sudo dpkg -i observe-agent_0.1.41~SNAPSHOT-64cf0cd_amd64.deb