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

Add single line installer #775

Merged
merged 16 commits into from
Apr 3, 2023
Merged

Add single line installer #775

merged 16 commits into from
Apr 3, 2023

Conversation

bcmmbaga
Copy link
Contributor

@bcmmbaga bcmmbaga commented Mar 30, 2023

Describe your changes

This is a shell script that installs the Netbird applications (CLI and UI) on a Linux or macOS system.

The shell script is designed to work with various Linux operating systems, including but not limited to Ubuntu, Fedora, Debian, CentOS, Raspberry Pi OS, Arch Linux, Alpine Linux, etc. The supported architectures include amd64, arm64, and 386. It can also be used on Mac OS, both on Intel and Apple Silicon architectures.

Features

  • Detects for officially supported package managers (apt, dnf, yum, brew) and installs via the respective package manager.
  • Installs appropriate binaries based on the system's architecture and operating system type if package manager is not supported.
  • Skip netbird-ui installation for Linux systems that lack a desktop environment or for systems that have an unsupported architecture.

For testing
curl -fsSL https://raw.githubusercontent.com/bcmmbaga/netbird/main/release_files/install.sh | sh

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@bcmmbaga bcmmbaga closed this Mar 30, 2023
@bcmmbaga bcmmbaga reopened this Mar 30, 2023
@braginini
Copy link
Contributor

Great job, @bcmmbaga! Could you please drop a simple description of the main features/functionality of the script? Maybe also mentioing the OS it supports, etc.

Danke!

Copy link
Collaborator

@mlsmaycon mlsmaycon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bcmmbaga thanks for the PR. I've left some notes that might be helpful to avoid some issues with the script. The new domain is new and we didn't have a chance to update our docs, but they are working.

release_files/install.sh Show resolved Hide resolved
release_files/install.sh Outdated Show resolved Hide resolved
release_files/install.sh Outdated Show resolved Hide resolved
release_files/install.sh Show resolved Hide resolved
release_files/install.sh Outdated Show resolved Hide resolved
release_files/install.sh Show resolved Hide resolved
release_files/install.sh Show resolved Hide resolved
release_files/install.sh Outdated Show resolved Hide resolved
release_files/install.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@mlsmaycon mlsmaycon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @bcmmbaga

@mlsmaycon mlsmaycon merged commit 18098e7 into netbirdio:main Apr 3, 2023
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
detect OS package manager
If a supported package manager is not available,
use binary installation

Check if desktop environment is available
Skip installing the UI client if SKIP_UI_APP is set to true

added tests for Ubuntu and macOS tests
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.

3 participants