-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
combined update of depandabot recomendations
- Loading branch information
1 parent
76c84be
commit 59c9446
Showing
7 changed files
with
33 additions
and
35 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
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
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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
#!/bin/sh -eu | ||
case "${1:-}" in | ||
armv7hf|aarch64) | ||
;; | ||
*) | ||
# error | ||
echo "Invalid argument '${1:-}', valid arguments are armv7hf or aarch64" | ||
exit 1 | ||
;; | ||
armv7hf | aarch64) ;; | ||
*) | ||
# error | ||
echo "Invalid argument '${1:-}', valid arguments are armv7hf or aarch64" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
imagetag="${2:-docker-acap-with-compose:1.0}" | ||
|
||
# Now build and copy out the acap | ||
# Build and copy out the acap | ||
docker buildx build --build-arg ACAPARCH="$1" \ | ||
--build-arg HTTP_PROXY="${HTTP_PROXY:-}" \ | ||
--build-arg HTTPS_PROXY="${HTTPS_PROXY:-}" \ | ||
--file Dockerfile \ | ||
--no-cache \ | ||
--tag "$imagetag" . | ||
--build-arg HTTP_PROXY="${HTTP_PROXY:-}" \ | ||
--build-arg HTTPS_PROXY="${HTTPS_PROXY:-}" \ | ||
--file Dockerfile \ | ||
--no-cache \ | ||
--tag "$imagetag" . | ||
|
||
docker cp "$(docker create "$imagetag")":/opt/app/ ./build-"$1" |