forked from eclipse-edc/MinimumViableDataspace
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cloud Deployment: Fix MVD cloud deployment health check failure (#30)
* Cloud Deployment: Fix MVD cloud deployment health check failure (#217) * Update liveness check * Update liveness check * Upgrade curl * Update * upgrade curl * Update * update liveness probe * Update deployment/curl-upgrade.sh Co-authored-by: Izabela Kulakowska <ikulakowska@microsoft.com> * Fix typo Co-authored-by: Izabela Kulakowska <ikulakowska@microsoft.com> Co-authored-by: Max Zeier <33636338+zeier@users.noreply.github.com> * terraform fmt Co-authored-by: Izabela Kulakowska <ikulakowska@microsoft.com> Co-authored-by: Max Zeier <33636338+zeier@users.noreply.github.com>
- Loading branch information
1 parent
30daa00
commit 9362f36
Showing
4 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
# Check installed version of Ubuntu | ||
Var=$(lsb_release -r) | ||
NumOnly=$(cut -f2 <<< "$Var") | ||
|
||
if [ "$NumOnly" != "20.04" ]; then | ||
echo "This curl upgrade script is only verified on Ubuntu 20.04, please check if you are running this on the correct version of Ubuntu" | ||
exit 1 | ||
fi | ||
|
||
echo "Current installed version of cURL is: $(curl -V)" | ||
echo "Removing old curl..." | ||
apt remove -y curl && apt purge curl | ||
echo "Updating apt cache..." | ||
apt-get update | ||
echo "Installing build-tools..." | ||
apt-get install -y libssl-dev autoconf libtool make | ||
echo "Download & extract curl version: $VERSION" | ||
cd /usr/local/src | ||
rm -rf curl* | ||
wget -v https://curl.haxx.se/download/curl-$VERSION.zip && unzip curl-$VERSION.zip && cd curl-$VERSION | ||
echo "Building & Configuring curl..." | ||
./buildconf && ./configure --with-ssl && make && make install | ||
echo "Moving curl to /usr/bin/curl and linking" | ||
cp /usr/local/bin/curl /usr/bin/curl | ||
ldconfig | ||
echo "New upgraded version of curl is: $(curl -V)" | ||
echo "curl upgraded successfully to version $VERSION!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters