-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): cleanup docker files (#4044)
* feat(docker): use one common build script for most containers * feat(docker): cleanup and unify docker files (clang, target, flags) * remove(docker): remove unused `iota-services` docker files * rename(docker): rename `iota-source-service` to `iota-source-validation-service` * feat(workflow): add toolchain version to docker build workflow * chore(docker): move rosetta docker files to root docker folder * fix(docker): small cleanups and fixes --------- Co-authored-by: Bing-Yang <51323441+bingyanglin@users.noreply.github.com>
- Loading branch information
1 parent
82c06b3
commit cac0f0b
Showing
38 changed files
with
697 additions
and
586 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 was deleted.
Oops, something went wrong.
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 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,26 +1,5 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
# Copyright (c) Mysten Labs, Inc. | ||
# Modifications Copyright (c) 2024 IOTA Stiftung | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# fast fail. | ||
set -e | ||
|
||
DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
REPO_ROOT="$(git rev-parse --show-toplevel)" | ||
DOCKERFILE="$DIR/Dockerfile" | ||
GIT_REVISION="$(git describe --always --abbrev=12 --dirty --exclude '*')" | ||
BUILD_DATE="$(date -u +'%Y-%m-%d')" | ||
|
||
echo | ||
echo "Building bridge-indexer docker image" | ||
echo "Dockerfile: \t$DOCKERFILE" | ||
echo "docker context: $REPO_ROOT" | ||
echo "build date: \t$BUILD_DATE" | ||
echo "git revision: \t$GIT_REVISION" | ||
echo | ||
|
||
docker build -f "$DOCKERFILE" "$REPO_ROOT" \ | ||
--build-arg GIT_REVISION="$GIT_REVISION" \ | ||
--build-arg BUILD_DATE="$BUILD_DATE" \ | ||
"$@" | ||
./../utils/build-script.sh --container-name "iotaledger/bridge-indexer" |
Oops, something went wrong.