From 40102a774e0fa2a529ba92621f97a265f6461b27 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Wed, 21 Sep 2022 21:35:18 -0600 Subject: [PATCH] Add laconic-client build --- .../cerc-eth-statediff-fill-service/build.sh | 1 + container-build/cerc-go-ethereum/build.sh | 1 + container-build/cerc-ipld-eth-beacon-db/build.sh | 1 + container-build/cerc-ipld-eth-beacon-indexer/build.sh | 1 + container-build/cerc-ipld-eth-db/build.sh | 1 + container-build/cerc-ipld-eth-server/build.sh | 1 + container-build/cerc-laconic-client/Dockerfile | 10 ++++++++++ container-build/cerc-laconic-client/build.sh | 7 +++++++ container-build/cerc-laconicd/build.sh | 3 +++ container-build/cerc-test-contract/build.sh | 1 + container-image-list.txt | 1 + 11 files changed, 28 insertions(+) create mode 100644 container-build/cerc-laconic-client/Dockerfile create mode 100755 container-build/cerc-laconic-client/build.sh create mode 100755 container-build/cerc-laconicd/build.sh diff --git a/container-build/cerc-eth-statediff-fill-service/build.sh b/container-build/cerc-eth-statediff-fill-service/build.sh index a88129c4..2a73352f 100755 --- a/container-build/cerc-eth-statediff-fill-service/build.sh +++ b/container-build/cerc-eth-statediff-fill-service/build.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash # Build cerc/eth-statediff-fill-service docker build -t cerc/eth-statediff-fill-service:local ${CERC_REPO_BASE_DIR}/eth-statediff-fill-service diff --git a/container-build/cerc-go-ethereum/build.sh b/container-build/cerc-go-ethereum/build.sh index da59ec34..0ab91354 100755 --- a/container-build/cerc-go-ethereum/build.sh +++ b/container-build/cerc-go-ethereum/build.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash # Build cerc/go-ethereum docker build -t cerc/go-ethereum:local ${CERC_REPO_BASE_DIR}/go-ethereum diff --git a/container-build/cerc-ipld-eth-beacon-db/build.sh b/container-build/cerc-ipld-eth-beacon-db/build.sh index b0bc8973..c3c620d2 100755 --- a/container-build/cerc-ipld-eth-beacon-db/build.sh +++ b/container-build/cerc-ipld-eth-beacon-db/build.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash # Build cerc/ipld-eth-beacon-db docker build -t cerc/ipld-eth-beacon-db:local ${CERC_REPO_BASE_DIR}/ipld-eth-beacon-db diff --git a/container-build/cerc-ipld-eth-beacon-indexer/build.sh b/container-build/cerc-ipld-eth-beacon-indexer/build.sh index 59395bfc..78a4cd00 100755 --- a/container-build/cerc-ipld-eth-beacon-indexer/build.sh +++ b/container-build/cerc-ipld-eth-beacon-indexer/build.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash # Build cerc/ipld-eth-beacon-indexer docker build -t cerc/ipld-eth-beacon-indexer:local ${CERC_REPO_BASE_DIR}/ipld-eth-beacon-indexer diff --git a/container-build/cerc-ipld-eth-db/build.sh b/container-build/cerc-ipld-eth-db/build.sh index e6b164dc..ec5a905e 100755 --- a/container-build/cerc-ipld-eth-db/build.sh +++ b/container-build/cerc-ipld-eth-db/build.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash # Build cerc/ipld-eth-db docker build -t cerc/ipld-eth-db:local ${CERC_REPO_BASE_DIR}/ipld-eth-db diff --git a/container-build/cerc-ipld-eth-server/build.sh b/container-build/cerc-ipld-eth-server/build.sh index 41f2b8a2..7e714294 100755 --- a/container-build/cerc-ipld-eth-server/build.sh +++ b/container-build/cerc-ipld-eth-server/build.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash # Build cerc/ipld-eth-server docker build -t cerc/ipld-eth-server:local ${CERC_REPO_BASE_DIR}/ipld-eth-server diff --git a/container-build/cerc-laconic-client/Dockerfile b/container-build/cerc-laconic-client/Dockerfile new file mode 100644 index 00000000..b83d034f --- /dev/null +++ b/container-build/cerc-laconic-client/Dockerfile @@ -0,0 +1,10 @@ +FROM node:16.13.1-alpine3.14 + +ARG NPM_AUTH_TOKEN +WORKDIR /app + +COPY . . + +RUN echo //npm.pkg.github.com/:_authToken=$NPM_AUTH_TOKEN > ~/.npmrc + +RUN apk --update --no-cache add git && yarn diff --git a/container-build/cerc-laconic-client/build.sh b/container-build/cerc-laconic-client/build.sh new file mode 100755 index 00000000..aa6a603d --- /dev/null +++ b/container-build/cerc-laconic-client/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Build cerc/laconic-client +set -x +# See: https://stackoverflow.com/a/246128/1701505 +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +docker build -t cerc/laconic-client:local -f ${SCRIPT_DIR}/Dockerfile --build-arg NPM_AUTH_TOKEN=$(NPM_AUTH_TOKEN) ${CERC_REPO_BASE_DIR}/laconic-client diff --git a/container-build/cerc-laconicd/build.sh b/container-build/cerc-laconicd/build.sh new file mode 100755 index 00000000..f5685097 --- /dev/null +++ b/container-build/cerc-laconicd/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +# Build cerc/chiba-clonk +docker build -t cerc/laconicd:local ${CERC_REPO_BASE_DIR}/laconicd \ No newline at end of file diff --git a/container-build/cerc-test-contract/build.sh b/container-build/cerc-test-contract/build.sh index 1f721658..1b3c925e 100755 --- a/container-build/cerc-test-contract/build.sh +++ b/container-build/cerc-test-contract/build.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash # Build cerc/test-contract docker build -t cerc/test-contract:local --build-arg ETH_ADDR=http://go-ethereum:8545 ${CERC_REPO_BASE_DIR}/ipld-eth-db-validator/test/contract diff --git a/container-image-list.txt b/container-image-list.txt index de89408c..7db5b94c 100644 --- a/container-image-list.txt +++ b/container-image-list.txt @@ -8,3 +8,4 @@ cerc/ipld-eth-beacon-db cerc/ipld-eth-beacon-indexer cerc/ipld-eth-server cerc/laconicd +cerc/laconic-client