Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v17] Backport packaging restructuring and teleport-update build #52361

Open
wants to merge 4 commits into
base: branch/v17
Choose a base branch
from

Conversation

vapopov
Copy link
Contributor

@vapopov vapopov commented Feb 20, 2025

Backport

to branch/v17

Related: https://github.com/gravitational/cloud/issues/11856
Must be merged only after: #52372

Changelog: Added teleport-update for default build
Changelog: Restructuring RPM and DEB packages to install in the /opt/teleport path and use teleport-update to manage symlinks in /usr/local/bin.

* Add build target for teleport-update

* Set CGO_ENABLED=0 for building teleport-update
* Add teleport-update to build and archive

* Add teleport-update to install scripts

* Add build flags without buildmode pie

* Add helper message for install.sh script

* Exclude teleport-update from darwin platform

* Add teleport-update to rpm and deb packages

* Remove teleport-update from deb, rpm packages
Add comment for the buildflags
* Move teleport binaries to new path

* Use link/unlink command to manage links
Move teleport.service to new path

* Move teleport binaries under standard path for distroless
Cleanup

* Fix wrong move path

* Create missing directory

* Rename link/unlink commands

* Exclude teleport-update from docker image
Systemd reload now managed by teleport-update
Make safe unlink not to block package removal

* Add teleport-update to AMI image build

* Fix RPM build, fpm automatically manage scripts

* Fix AMI build, add missing teleport.service

* Move binaries to /opt/teleport/system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant