Oryx/build/buildPlatformBinaries.sh

51 строка
1.7 KiB
Bash
Исходник Обычный вид История

#!/bin/bash
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
# --------------------------------------------------------------------------------------------
set -e
declare -r REPO_DIR=$( cd $( dirname "$0" ) && cd .. && pwd )
PLATFORM_TO_BUILD=$1
DEBIAN_FLAVOR_TO_BUILD=$2
SDK_STORAGE_ACCOUNT_URL=$3
platformsDir="$REPO_DIR/platforms"
case $PLATFORM_TO_BUILD in
'dotnet')
chmod +x "$platformsDir/dotnet/getDotNetSdk.sh"
"$platformsDir/dotnet/getDotNetSdk.sh" $DEBIAN_FLAVOR_TO_BUILD $SDK_STORAGE_ACCOUNT_URL
;;
'python')
chmod +x "$platformsDir/python/buildPython.sh"
"$platformsDir/python/buildPython.sh" $DEBIAN_FLAVOR_TO_BUILD $SDK_STORAGE_ACCOUNT_URL
;;
'php')
chmod +x "$platformsDir/php/buildPhp.sh"
"$platformsDir/php/buildPhp.sh" $DEBIAN_FLAVOR_TO_BUILD $SDK_STORAGE_ACCOUNT_URL
;;
'nodejs')
chmod +x "$platformsDir/nodejs/getNode.sh"
"$platformsDir/nodejs/getNode.sh" $DEBIAN_FLAVOR_TO_BUILD $SDK_STORAGE_ACCOUNT_URL
2020-08-27 02:11:43 +03:00
;;
Add platform binary for golang (#1084) * Add platform binary for golang * Add golang platform & build scripts * Update buildplatformbinaries with golang * Test permission fix * Test chmod for buildGolang.sh * Test permissions by removing u * Test add cd imagesDir * Test add cd buildDir * Test add ls statement to see what is in the folder * Update name of build golang version bash script * Update the name of the golang versions for jamstack image * Test golang version constant name * Test version update * Update GOLANG_VERSION name * Test docker build command updates * Update with typo fix * Update with golang version fix * Update to include compressedSdkDir * Remove patch version * Test add make * Test remove make * Test minor change * Add go installation code * Remove sudo * Test remove apt-get * Test update version * Test update version * Test update installtion * Test remove golang prereq * Test update to prereqs * Test update to prereqs * Test update to prereqs * Test update to prereqs * Test update to prereqs * update defaultversion for golang * Revert nodejs dockerfile * Test minor update * update publishtoazurestorage script * update * Test update golang sdk file name * update * update platform binary creation for golang * update * update * udpate default golang version to 1.17 * udpate * update * remove adding duplicate golang support in full build image * Add unit tests for go binary check * Update with minor fix * Update with minor fix * Upate with minor changes * Remove code that is used for buildBuildImages * Revert env & sha code changes * Revert accidental delete from dotnet nuget * Revert benv code * Update rm a few lines up Co-authored-by: Arjun Roy Chaudhuri <arroyc@microsoft.com>
2021-08-26 02:59:15 +03:00
'golang')
chmod +x "$platformsDir/golang/getGolangSdk.sh"
"$platformsDir/golang/getGolangSdk.sh" $DEBIAN_FLAVOR_TO_BUILD $SDK_STORAGE_ACCOUNT_URL
Add platform binary for golang (#1084) * Add platform binary for golang * Add golang platform & build scripts * Update buildplatformbinaries with golang * Test permission fix * Test chmod for buildGolang.sh * Test permissions by removing u * Test add cd imagesDir * Test add cd buildDir * Test add ls statement to see what is in the folder * Update name of build golang version bash script * Update the name of the golang versions for jamstack image * Test golang version constant name * Test version update * Update GOLANG_VERSION name * Test docker build command updates * Update with typo fix * Update with golang version fix * Update to include compressedSdkDir * Remove patch version * Test add make * Test remove make * Test minor change * Add go installation code * Remove sudo * Test remove apt-get * Test update version * Test update version * Test update installtion * Test remove golang prereq * Test update to prereqs * Test update to prereqs * Test update to prereqs * Test update to prereqs * Test update to prereqs * update defaultversion for golang * Revert nodejs dockerfile * Test minor update * update publishtoazurestorage script * update * Test update golang sdk file name * update * update platform binary creation for golang * update * update * udpate default golang version to 1.17 * udpate * update * remove adding duplicate golang support in full build image * Add unit tests for go binary check * Update with minor fix * Update with minor fix * Upate with minor changes * Remove code that is used for buildBuildImages * Revert env & sha code changes * Revert accidental delete from dotnet nuget * Revert benv code * Update rm a few lines up Co-authored-by: Arjun Roy Chaudhuri <arroyc@microsoft.com>
2021-08-26 02:59:15 +03:00
;;
2020-08-27 02:11:43 +03:00
'ruby')
chmod +x "$platformsDir/ruby/buildRuby.sh"
"$platformsDir/ruby/buildRuby.sh" $DEBIAN_FLAVOR_TO_BUILD $SDK_STORAGE_ACCOUNT_URL
2020-08-27 02:11:43 +03:00
;;
'java')
chmod +x "$platformsDir/java/getJavaSdk.sh"
"$platformsDir/java/getJavaSdk.sh" $DEBIAN_FLAVOR_TO_BUILD $SDK_STORAGE_ACCOUNT_URL
;;
'maven')
chmod +x "$platformsDir/java/maven/getMaven.sh"
"$platformsDir/java/maven/getMaven.sh" $DEBIAN_FLAVOR_TO_BUILD $SDK_STORAGE_ACCOUNT_URL
;;
*) echo "Unknown image directory";;
esac