-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from cesarjorgemartinez/task/update_2024_04_1
task/update_2024_04_1
- Loading branch information
Showing
59 changed files
with
2,923 additions
and
1,593 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o pipefail | ||
|
||
RESULT=0 | ||
trap catch_errors ERR | ||
function catch_errors() { | ||
RESULT=$? | ||
} | ||
|
||
SCRIPT_BASEDIR="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))" | ||
HOME_BASEDIR="$(dirname $(readlink -f "${SCRIPT_BASEDIR}"))" | ||
PARENT_HOME_BASEDIR="$(dirname $(readlink -f "${HOME_BASEDIR}"))" | ||
cd ${HOME_BASEDIR} | ||
set -e | ||
source ${HOME_BASEDIR}/conf/vm.conf | ||
|
||
echo "INFO: show environment variables" | ||
env | egrep '^PACKER_|^SO_|^PATH=' | sort | ||
|
||
mkdir -p ${SO_ARTIFACT_DIR}/isos | ||
cd ${SO_ARTIFACT_DIR}/isos | ||
|
||
echo "INFO: Get <${SO_ISOURLIMAGE}> into <${SO_ARTIFACT_DIR}/isos> if already is not downloaded" | ||
curl -C - -L -O "${SO_ISOURLIMAGE}" | ||
|
||
echo "INFO: Get <${SO_ISOURLSHA256SUM}> into <${SO_ARTIFACT_DIR}/isos> if already is not downloaded" | ||
curl -C - -L -o ${SO_ISOSHA256SUMNAME} "${SO_ISOURLSHA256SUM}" | ||
|
||
cd ${HOME_BASEDIR} | ||
|
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o pipefail | ||
|
||
RESULT=0 | ||
trap catch_errors ERR | ||
function catch_errors() { | ||
RESULT=$? | ||
} | ||
|
||
SCRIPT_BASEDIR="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))" | ||
HOME_BASEDIR="$(dirname $(readlink -f "${SCRIPT_BASEDIR}"))" | ||
cd ${HOME_BASEDIR} | ||
set -e | ||
source ${HOME_BASEDIR}/conf/vm.conf | ||
|
||
echo "INFO: show environment variables" | ||
env | egrep '^PACKER_|^SO_|^PATH=' | sort | ||
|
||
echo "INFO: Get packer software <${PACKER_VERSION}> into <${HOME_BASEDIR}/packer.zip>" | ||
if [ "${PACKER_VERSION}" == "nightly" ] | ||
then | ||
curl -L -o ${HOME_BASEDIR}/packer.zip $(curl -L -s 'https://api.github.com/repos/hashicorp/packer/releases/tags/nightly' | jq -r '.assets[] | select(.browser_download_url | endswith("windows_amd64.zip")) | .browser_download_url') | ||
else | ||
curl -L -o ${HOME_BASEDIR}/packer.zip https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_windows_amd64.zip | ||
fi | ||
|
||
echo "INFO: Unzip packer ${PACKER_VERSION}" | ||
unzip -L -o packer.zip 'packer*' | ||
chmod 755 *.exe | ||
echo "INFO: Show packer version from the executable: $(${HOME_BASEDIR}/packer --version)" | ||
|
||
cd ${HOME_BASEDIR} | ||
|
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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.