Title
#fleet
r

ryan

07/26/2021, 3:33 PM
trying to compile fleet using the Dockerfile run and getting this error
Step 5/7 : COPY ./build/binary-bundle/linux/fleet ./build/binary-bundle/linux/fleetctl /usr/bin/
COPY failed: file not found in build context or excluded by .dockerignore: stat build/binary-bundle/linux/fleet: file does not exist
Tomas Touceda

Tomas Touceda

07/26/2021, 3:51 PM
hi ryan, sorry to hear you're experiencing issues. Could you tell me exactly what you're running?
r

ryan

07/26/2021, 5:47 PM
docker build -t fleet .
[+] Building 1.8s (8/8) FINISHED                                                                                          
 => [internal] load build definition from Dockerfile                                                                 0.0s
 => => transferring dockerfile: 348B                                                                                 0.0s
 => [internal] load .dockerignore                                                                                    0.0s
 => => transferring context: 106B                                                                                    0.0s
 => [internal] load metadata for <http://docker.io/library/alpine:latest|docker.io/library/alpine:latest>                                                     1.1s
 => [internal] load build context                                                                                    0.0s
 => => transferring context: 2B                                                                                      0.0s
 => CACHED [1/4] FROM <http://docker.io/library/alpine@sha256:234cb88d3020898631af0ccbbcca9a66ae7306ecd30c9720690858c1b007d|docker.io/library/alpine@sha256:234cb88d3020898631af0ccbbcca9a66ae7306ecd30c9720690858c1b007d>  0.0s
 => CANCELED [2/4] RUN apk --update add ca-certificates                                                              0.4s
 => CACHED [3/4] RUN addgroup -S fleet && adduser -S fleet -G fleet                                                  0.0s
 => ERROR [4/4] COPY ./build/binary-bundle/linux/fleet ./build/binary-bundle/linux/fleetctl /usr/bin/                0.0s
5:48 PM
or following this GCP guide to build/upload the image to Cloud Run is what provides the exact error I posted.
gcloud run deploy --image <http://gcr.io/PROJECT-ID/helloworld|gcr.io/PROJECT-ID/helloworld>
Tomas Touceda

Tomas Touceda

07/26/2021, 7:17 PM
are you looking to build form source? or just run in docker? we publish official images that you can docker pull
r

ryan

07/26/2021, 9:09 PM
Was looking to setup continuous deployment but got it with the official image. Thanks!