Skip to content

Commit

Permalink
Move the custom scripts to the Alpine environment
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter-edelman-nictiz committed Aug 10, 2023
1 parent 38fc885 commit c4629a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
16 changes: 13 additions & 3 deletions util/qa/generatesnapshots.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

export DOTNET_ROOT=~/.dotnet
export PATH=$PATH:$DOTNET_ROOT
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

# Install the tools that we need
which dotnet > /dev/null
has_dotnet=$?
Expand All @@ -10,10 +14,16 @@ if [[ ! $has_dotnet == 0 || ! -f ~/.dotnet/tools/fhir ]]; then
echo -e "\033[1;37mInstalling Firely terminal.\033[0m"
fi

cd ~
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
apt-get update && apt-get -y install apt-transport-https && apt-get -y install dotnet-sdk-3.1
# Unfortunately, Firely Terminal deprecated the method for bulk creating snapshots after version 2.5 (or at least
# without a login), so we need this ancient version, which uses an ancient version of .Net SDK, for which we need
# a script based installer.
apk add libstdc++ libintl libssl1.1

install_dir=$(mktemp -d)
cd $install_dir
wget https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh
bash dotnet-install.sh -c 3.1
cd $work_dir
dotnet tool install -g --version 2.5.0-beta-7 firely.terminal

if [[ $write_github == 1 ]]; then
Expand Down
6 changes: 2 additions & 4 deletions util/qa/zib-compliance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ if [[ $has_node != 0 || $has_npm != 0 ]]; then
echo -e "\033[1;37mInstalling NodeJS and NPM.\033[0m"
fi

apt-get update
apt-get -y upgrade
apt-get -y install nodejs npm

apk add nodejs npm

if [[ $write_github == 1 ]]; then
echo "::endgroup::"
fi
Expand Down

0 comments on commit c4629a8

Please sign in to comment.