-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#77) created and updated build scripts for new base image
- Loading branch information
Showing
3 changed files
with
30 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
NODE_VERSION=${1:-lts/erbium} | ||
|
||
echo "node version: $NODE_VERSION" | ||
|
||
echo "Running obfuscator" | ||
npm --prefix ./license-validator ci | ||
echo "Removing possible leftovers" | ||
rm -rf ./src/common/env | ||
mkdir -p ./src/common/env | ||
echo "Copy files" | ||
cp -rf ./license-validator/dist/index.js ./src/common/env/startup.js | ||
cp -rf ./license-validator/node_modules ./src/common/env/node_modules | ||
|
||
docker build \ | ||
--pull \ | ||
--no-cache \ | ||
-t taconsol/sakuli-base \ | ||
-f Dockerfile.sakuli-base . \ | ||
--build-arg=NODE_VERSION=${NODE_VERSION} \ | ||
--build-arg=BUILD_DATE=$(date +"%F") |
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