Files
bundler/dockers/bundler/dbuild.sh
Alex Forshtat a1d487478c AA-41: ERC-4337 Provider, Bundler Server and a Docker Image (#1)
* Initial commit with lerna AA-4337 provider, bundler and helper contract

* Initial CircleCI workflow

* Initial commit for eslint task

* Initial bundler class decomposition

* Initial migration to commander.js

* Transaction is sent by MethodHandler

* Get transaction receipt by requestID

* Create yarn script for Flows with Hardhat-node, Bundler as separate processes

* Add server-side error handling to avoid unreadable errors (still WIP)

* Add docker step

* Added docker-compose.yml file

* Enable depcheck task
2022-08-23 16:20:21 +02:00

23 lines
618 B
Bash
Executable File

#!/bin/bash -e
cd `cd \`dirname $0\`;pwd`
#need to preprocess first to have the Version.js
yarn preprocess
test -z "$VERSION" && VERSION=`node -e "console.log(require('../../packages/common/dist/src/Version.js').erc4337RuntimeVersion)"`
echo version=$VERSION
IMAGE=alexforshtat/erc4337bundler
#build docker image of bundler
#rebuild if there is a newer src file:
find ./dbuild.sh ../../packages/*/src/ -type f -newer dist/bundler.js 2>&1 | grep . && {
npx webpack
}
docker build -t $IMAGE .
docker tag $IMAGE $IMAGE:$VERSION
echo "== To publish"
echo " docker push $IMAGE:latest; docker push $IMAGE:$VERSION"