diff --git a/.github/workflows/testnet_deploy_services.yml b/.github/workflows/testnet_deploy_services.yml index 10aceaea..9242b0e8 100644 --- a/.github/workflows/testnet_deploy_services.yml +++ b/.github/workflows/testnet_deploy_services.yml @@ -159,6 +159,7 @@ jobs: -t $ECR_REPOSITORY_RESOURCE_PROVIDER \ -f ./docker/resource-provider/Dockerfile \ --build-arg="network=testnet" \ + --build-arg="disable_pow=true" \ . docker tag $ECR_REPOSITORY_RESOURCE_PROVIDER:latest $ECR_REGISTRY/$ECR_REPOSITORY_RESOURCE_PROVIDER:latest docker push $ECR_REGISTRY/$ECR_REPOSITORY_RESOURCE_PROVIDER:latest diff --git a/docker/resource-provider/Dockerfile b/docker/resource-provider/Dockerfile index 38283f17..ca935f7a 100644 --- a/docker/resource-provider/Dockerfile +++ b/docker/resource-provider/Dockerfile @@ -3,6 +3,7 @@ WORKDIR /usr/src/app # Build args ARG NETWORK=testnet +ARG DISABLE_POW=false # Default environment variables ENV LOG_LEVEL=info @@ -43,9 +44,9 @@ RUN echo "sleep 3" >> run # Launch Bacalhau RUN echo "/usr/local/bin/bacalhau serve --node-type compute,requester --peer none --private-internal-ipfs=false --job-selection-accept-networked &" >> run # Launch Lilypad -RUN echo "/usr/local/bin/lilypad resource-provider --network ${NETWORK} &" >> run +RUN echo "/usr/local/bin/lilypad resource-provider --network ${NETWORK} --disable-pow ${DISABLE_POW} &" >> run RUN echo "wait -n" >> run RUN chmod +x run # Run startup script when container starts -CMD ["/bin/bash", "./run"] \ No newline at end of file +CMD ["/bin/bash", "./run"] diff --git a/stack b/stack index cb19a54e..985ed339 100755 --- a/stack +++ b/stack @@ -207,7 +207,7 @@ function job-creator-docker-run() { function resource-provider() { echo "- Reminder to do doppler setup to project->resource-provider and config->dev" - doppler run --preserve-env -p resource-provider -c dev -- go run . resource-provider "$@" --network dev + doppler run --preserve-env -p resource-provider -c dev -- go run . resource-provider "$@" --network dev --disable-pow true } function resource-provider-docker-build() { @@ -215,6 +215,7 @@ function resource-provider-docker-build() { -t resource-provider \ -f ./docker/resource-provider/Dockerfile \ --build-arg NETWORK=dev \ + --build-arg DISABLE_POW=true \ . }