ApeWorX / silverback

Blockchain automation library, and SDK for the Silverback Platform
https://apeworx.io/silverback
Apache License 2.0
88 stars 10 forks source link

fix: `silverback build` fails if you do not have a requirements.txt or an ape-config.yaml #150

Open johnson2427 opened 2 days ago

johnson2427 commented 2 days ago

Environment information

$ ape --version
any

$ ape plugins list
any

What went wrong?

When running silverback build without requirements.txt or ape-config.yaml, the build command fails due to the hard coded values in the generate Dockerfile. This only occurs if you use the automatic generation of Dockerfiles. If you are using a custom dockerfile and run sivlerback build this error doesn't occur due to the silverback build command.

How can it be fixed?

Fix silverback build --generate so it checks the root folder for these files before adding the lines to the dockerfile

linear[bot] commented 2 days ago

SBK-604 fix: `silverback build` fails if you do not have a requirements.txt or an ape-config.yaml