uber / cadence

Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.
https://cadenceworkflow.io
MIT License
8.14k stars 786 forks source link

Docker build error #4105

Closed longquanzheng closed 3 years ago

longquanzheng commented 3 years ago

In current latest master, run

docker build . -t qlong-test --build-arg TARGET=auto-setup 

will get this error

....
....
...
touch .bin/protoc-3.14.0 .bin/protoc-gen-gogofast .bin/protoc-gen-yarpc-go
touch .build/protoc
touch .bin/thriftrw .bin/thriftrw-plugin-yarpc
touch
BusyBox v1.31.1 () multi-call binary.

Usage: touch [-c] [-d DATE] [-t DATE] [-r FILE] FILE...

Update the last-modified date on the given FILE[s]

    -c  Don't create files
    -h  Don't follow links
    -d DT   Date/time to use
    -t DT   Date/time to use
    -r FILE Use FILE's date/time
make: *** [Makefile:255: .fake-thrift] Error 1
The command '/bin/sh -c make .fake-codegen' returned a non-zero code: 2
longquanzheng commented 3 years ago

to mitigate, run this command before docker build to make sure idls/ is checkout:

 git submodule update --init --recursive