ExaWorks / SDK

ExaWorks SDK
11 stars 12 forks source link

CI: fix docker deployment #36

Closed SteVwonder closed 3 years ago

SteVwonder commented 3 years ago

The past two build and deploys have failed with:

/usr/bin/docker buildx build --tag exaworks/sdk-base:latest --tag ghcr.io/exaworks/sdk-base:latest --platform linux/amd64 --iidfile /tmp/docker-build-push-vLzWDC/iidfile --cache-from type=local,src=/tmp/.buildx-cache --cache-to type=local,dest=/tmp/.buildx-cache-new --file ./Dockerfile --push ./docker/base
time="2021-04-28T21:08:04Z" level=warning msg="local cache import at /tmp/.buildx-cache not found due to err: could not read /tmp/.buildx-cache/index.json: open /tmp/.buildx-cache/index.json: no such file or directory"
#1 [internal] load build definition from Dockerfile
#1 sha256:14d787a222126e92fbbb1938360cf940f749ea550d17c1fb2a4b6ccfbc935413
#1 transferring dockerfile: 2B done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:719dbdf75589761c07b705135d70294df1a0b40ce97c6c23508a52bc29358081
#2 transferring context: 2B done
#2 DONE 0.0s
error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /tmp/buildkit-mount676590885/Dockerfile: no such file or directory
Error: buildx call failed with: error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /tmp/buildkit-mount676590885/Dockerfile: no such file or directory

Looks like we should either drop docker buildx (unnecessary complexity) or re-evaluate if context does what I thought it did (i.e., set cwd)

SteVwonder commented 3 years ago

44 fixed this issue