zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 281 forks source link

Deployment for ARM (AWS EC2 t4g) #1208

Open tosinek opened 3 years ago

tosinek commented 3 years ago

I am trying to upgrade my EC2 instances, but it is not building the image. I am very inexperienced in this field, so I don't know what is the issue. Is it the docker image, the meteor build command (where there is the architecture parameter) or something else? It is a new instance and the config is tailored for that, but I believe the config itself should be fine.

Mup version (mup --version): 1.5.1

Mup config

{
  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "ubuntu",
      "pem": "~/.ssh/pem"
    }
  },
  "proxy": {
    "domains": "sifty.pigmonitor.cz",
    "ssl": {
      "letsEncryptEmail": "tosinek@gmail.com",
      "forceSSL": true
    }
  },
  "app": {
    "name": "my-app",
    "path": "../",
    "servers": {
      "one": {}
    },
    "buildOptions": {
      "debug": true,
      "serverOnly": true
    },
    "env": {
      "ROOT_URL": "https://subdomain.host.com",
      "MONGO_URL": "mongodb://subdomain.subdomain.host.com:27017/db",
    },
    "docker": {
      "image": "abernix/meteord:node-12-base",
      "prepareBundle": true,
      "useBuildKit": true,
    },
    "enableUploadProgressBar": true,
    "deployCheckWaitTime": 600,
  }
}

Output of command

tosi@DESKTOP-TBQE8NR:/mnt/c/meteor/barcode-scanner/.deploy$ mup deploy --verbose
Building App Bundle Locally

Started TaskList: Pushing Meteor App
[ec2-18-197-99-165.eu-central-1.compute.amazonaws.com] - Pushing Meteor App Bundle to the Server
[ec2-18-197-99-165.eu-central-1.compute.amazonaws.com] - Pushing Meteor App Bundle to the Server: SUCCESS
[ec2-18-197-99-165.eu-central-1.compute.amazonaws.com] - Prepare Bundle
Updating base image
node-12-base: Pulling from abernix/meteord
Digest: sha256:ce0b262902c9430230fd840fbef52690edcfdb3ba2c96015f83d310715c899f1
Status: Image is up to date for abernix/meteord:node-12-base
docker.io/abernix/meteord:node-12-base
Preparing for docker build
Creating Dockerfile
Finished creating Dockerfile
Building image
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 657B done
#1 DONE 0.0s

#3 resolve image config for docker.io/docker/dockerfile:1-experimental
#3 DONE 1.0s

#4 docker-image://docker.io/docker/dockerfile:1-experimental@sha256:de85b2f...
#4 CACHED

#5 [internal] load metadata for docker.io/abernix/meteord:node-12-base
#5 DONE 0.0s

#6 [1/4] FROM docker.io/abernix/meteord:node-12-base
#6 CACHED

#8 [internal] load build context
#8 transferring context: 44.51MB 0.3s done
#8 DONE 0.3s

#7 [2/4] RUN mkdir /built_app || true
#7 0.354 standard_init_linux.go:211: exec user process caused "exec format error"
#7 ERROR: executor failed running [/bin/sh -c mkdir /built_app || true]: runc did not terminate sucessfully
------
 > [2/4] RUN mkdir /built_app || true:
------
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = failed to build LLB: executor failed running [/bin/sh -c mkdir /built_app || true]: runc did not terminate sucessfully

real    0m1.869s
user    0m0.139s
sys     0m0.052s
[ec2-18-197-99-165.eu-central-1.compute.amazonaws.com] x Prepare Bundle: FAILED

              ------------------------------------STDERR------------------------------------
              #2 [internal] load .dockerignore
        #2 transferring context: 2B done
        #2 DONE 0.0s

        #1 [internal] load build definition from Dockerfile
        #1 transferring dockerfile: 657B done
        #1 DONE 0.0s

        #3 resolve image config for docker.io/docker/dockerfile:1-experimental
        #3 DONE 1.0s

        #4 docker-image://docker.io/docker/dockerfile:1-experimental@sha256:de85b2f...
        #4 CACHED

        #5 [internal] load metadata for docker.io/abernix/meteord:node-12-base
        #5 DONE 0.0s

        #6 [1/4] FROM docker.io/abernix/meteord:node-12-base
        #6 CACHED

        #8 [internal] load build context
        #8 transferring context: 44.51MB 0.3s done
        #8 DONE 0.3s

        #7 [2/4] RUN mkdir /built_app || true
        #7 0.354 standard_init_linux.go:211: exec user process caused "exec format error"
        #7 ERROR: executor failed running [/bin/sh -c mkdir /built_app || true]: runc did not terminate sucessfully
        ------
         > [2/4] RUN mkdir /built_app || true:
        ------
        failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = failed to build LLB: executor failed running [/bin/sh -c mkdir /built_app || true]: runc did not terminate sucessfully

        real    0m1.869s
        user    0m0.139s
        sys     0m0.052s

              ------------------------------------STDOUT------------------------------------
              Updating base image
        node-12-base: Pulling from abernix/meteord
        Digest: sha256:ce0b262902c9430230fd840fbef52690edcfdb3ba2c96015f83d310715c899f1
        Status: Image is up to date for abernix/meteord:node-12-base
        docker.io/abernix/meteord:node-12-base
        Preparing for docker build
        Creating Dockerfile
        Finished creating Dockerfile
        Building image

              ------------------------------------------------------------------------------