suborbital / e2core

Server for sandboxed third-party plugins, powered by WebAssembly
https://suborbital.dev
Apache License 2.0
722 stars 41 forks source link

Ensure Wasmer binaries are downloaded on build #79

Open MacklinEngineering opened 3 years ago

MacklinEngineering commented 3 years ago
make docker/dev
docker build . -t suborbital/atmo:dev
[+] Building 9.3s (17/23)                                                                 
 => [internal] load build definition from Dockerfile                                 0.0s
 => => transferring dockerfile: 1.18kB                                               0.0s
 => [internal] load .dockerignore                                                    0.0s
 => => transferring context: 55B                                                     0.0s
 => [internal] load metadata for docker.io/library/debian:buster-slim                2.1s
 => [internal] load metadata for docker.io/library/golang:1.17                       1.8s
 => [auth] library/debian:pull token for registry-1.docker.io                        0.0s
 => [auth] library/golang:pull token for registry-1.docker.io                        0.0s
 => [stage-1 1/8] FROM docker.io/library/debian:buster-slim@sha256:47e092810f101be8  0.0s
 => [builder 1/8] FROM docker.io/library/golang:1.17@sha256:285cf0cb73ab995caee61b9  0.0s
 => [internal] load build context                                                    5.4s
 => => transferring context: 85.70MB                                                 5.4s
 => CACHED [stage-1 2/8] RUN groupadd -g 999 atmo &&     useradd -r -u 999 -g atmo   0.0s
 => CANCELED [stage-1 3/8] RUN apt-get update  && apt-get install -y ca-certificate  7.0s
 => CACHED [builder 2/8] RUN mkdir -p /go/src/github.com/suborbital/atmo             0.0s
 => [builder 3/8] COPY . /go/src/github.com/suborbital/atmo/                         0.5s
 => [builder 4/8] WORKDIR /go/src/github.com/suborbital/atmo/                        0.0s
 => [builder 5/8] RUN mkdir -p /tmp/wasmerio                                         0.4s
 => [builder 6/8] RUN cp -R ./vendor/github.com/wasmerio/wasmer-go/wasmer/packaged/  0.3s
 => ERROR [builder 7/8] RUN ./scripts/copy-libs.sh                                   0.3s
------                                                                                    
 > [builder 7/8] RUN ./scripts/copy-libs.sh:                                              
#17 0.326 using /tmp/wasmerio/linux-aarch64/libwasmer.so                                  
#17 0.331 cp: cannot stat '/tmp/wasmerio/linux-aarch64/libwasmer.so': No such file or directory                                                                                     
------                                                                                    
executor failed running [/bin/sh -c ./scripts/copy-libs.sh]: exit code: 1
make: *** [docker/dev] Error 1
cohix commented 3 years ago

This is a strange one, the libwasmer should be downloaded with go get

MacklinEngineering commented 2 years ago

Have to verify that this is still an issue