Scripts: add InstallFromSource.sh#427
Conversation
d927580 to
0eb084b
Compare
This script should include enough content to install Scalar and all of its dependencies on Linux, excluding Watchman. Git and GCM Core are installed from .deb packages while Scalar must be compiled. Helped-by: Jeff King <peff@peff.net> Helped-by: Chris Darroch <chrisd8088@github.com> Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
0eb084b to
a2db901
Compare
Scripts/Linux/InstallFromSource.sh
Outdated
| sudo apt-get install -y apt-transport-https && sudo apt-get update -qq | ||
|
|
||
| sudo apt-get install -y wget | ||
| wget https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb |
There was a problem hiding this comment.
On my debian system, lsb_release -rs returns "unstable", so this wget gets a 404. You might also need to make sure lsb-release is installed (it's priority "optional" in debian).
There was a problem hiding this comment.
I will make sure any errors in this section report a message saying "Go to figure out dotnet for yourself!"
There was a problem hiding this comment.
Good points -- maybe something like:
sudo apt-get install -y lsb-release wget
LSB_VERSION=$(lsb_release -rs | awk '/^[0-9]+\.[0-9]+$/ { print }')
if [ -z "$LSB_VERSION" ]; then LSB_VERSION="20.04"; fi
wget https://packages.microsoft.com/config/ubuntu/"$LSB_VERSION"/packages-microsoft-prod.deb -O packages-microsoft-prod.debSigned-off-by: Derrick Stolee <dstolee@microsoft.com>
9de2382 to
087de90
Compare
| wget https://packages.microsoft.com/config/ubuntu/"$LSB_VERSION"/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
| sudo dpkg -i packages-microsoft-prod.deb | ||
|
|
||
| if sudo apt-get install -y dotnet-sdk-3.1 |
There was a problem hiding this comment.
In the Azure Pipelines agent, we use the install scripts to get .NET on the box. They've done some heavy medium lifting across various Linux flavors to get prereqs sorted and whatnot. This script looks pretty Ubuntu/Debian flavored so perhaps you 🤷♂️ but I thought I'd mention it.
There was a problem hiding this comment.
interesting! If we have any more problems with installing dotnet I will definitely replace these with something like wget https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.sh && ./dotnet-install.sh
This script should include enough content to install Scalar and all of
its dependencies on Linux, including Watchman.