Преглед изворни кода

docker: reorganize dockerfiles

heyitaki пре 2 година
родитељ
комит
b7d870efcb

+ 1 - 1
.github/workflows/guardiand-docker.yml

@@ -43,7 +43,7 @@ jobs:
         uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
         with:
           context: .
-          file: ./Dockerfile.node
+          file: ./node/Dockerfile
           push: true
           tags: ${{ steps.meta.outputs.tags }}
           target: export

+ 4 - 4
Tiltfile

@@ -114,7 +114,7 @@ if bigTableKeyPath != "":
 docker_build(
     ref = "guardiand-image",
     context = ".",
-    dockerfile = "Dockerfile.node",
+    dockerfile = "node/Dockerfile",
     target = "build",
     ignore=["./sdk/js"]
 )
@@ -371,7 +371,7 @@ if solana:
         ref = "bridge-client",
         context = ".",
         only = ["./proto", "./solana", "./clients"],
-        dockerfile = "Dockerfile.client",
+        dockerfile = "solana/Dockerfile.client",
         # Ignore target folders from local (non-container) development.
         ignore = ["./solana/*/target"],
     )
@@ -600,7 +600,7 @@ if terra2:
     docker_build(
         ref = "terra2-contracts",
         context = ".",
-        dockerfile = "./Dockerfile.cosmwasm",
+        dockerfile = "./cosmwasm/Dockerfile",
     )
 
     k8s_yaml_with_ns("devnet/terra2-devnet.yaml")
@@ -720,7 +720,7 @@ if wormchain:
     docker_build(
         ref = "wormchaind-image",
         context = ".",
-        dockerfile = "./Dockerfile.wormchain",
+        dockerfile = "./wormchain/Dockerfile",
         only = [],
         ignore = ["./wormchain/testing", "./wormchain/ts-sdk", "./wormchain/design", "./wormchain/vue", "./wormchain/build/wormchaind"],
     )

+ 0 - 0
Dockerfile.cosmwasm → cosmwasm/Dockerfile


+ 1 - 1
cosmwasm/Makefile

@@ -22,7 +22,7 @@ ifndef VALID_$(NETWORK)
 endif
 
 $(WASMS) artifacts/checksums.txt: $(SOURCE_FILES)
-	DOCKER_BUILDKIT=1 docker build --target artifacts -o artifacts -f ../Dockerfile.cosmwasm ../
+	DOCKER_BUILDKIT=1 docker build --target artifacts -o artifacts -f ./Dockerfile ../
 
 payer-$(NETWORK).json:
 	$(error Missing private key in payer-$(NETWORK).json)

+ 0 - 0
Dockerfile.node → node/Dockerfile


+ 0 - 0
Dockerfile.lint → scripts/Dockerfile.lint


+ 1 - 1
scripts/lint.sh

@@ -4,7 +4,7 @@
 set -eo pipefail -o nounset
 
 ROOT="$(dirname "$(dirname "$(realpath "$0")")")"
-DOCKERFILE="$ROOT/Dockerfile.lint"
+DOCKERFILE="$ROOT/scripts/Dockerfile.lint"
 
 VALID_COMMANDS=("lint" "format")
 

+ 0 - 0
Dockerfile.client → solana/Dockerfile.client


+ 0 - 0
Dockerfile.wormchain → wormchain/Dockerfile