cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2172
Views
5
Helpful
1
Replies

Run simple nginx on IR510 error

rod.leon
Level 1
Level 1

I tried to run a simple nginx default server on IR510 but I can't start it.

  • ioxclient version 1.12.1.0 (On my Ubuntu 20.04 development machine)

Here the steps

  1. OK. Create the Dockerfile
     
    FROM arm32v7/nginx
    EXPOSE 80

    # Commands and test:
    # docker build -t ir510/nginx_test .
    # docker run --rm --name nt1 ir510/nginx_test
     
  2. Ok. ioxclient Package the Docker image (armv7/nginx)
    ioxclient docker package ir510/nginx_test .
  3. Ok.ioxclient Install the app on device IR510
    ioxclient app install app_nginx package.tar
  4. Ok.ioxclient Activate the app
    ioxclient app activate --payload activation.json app_nginx
  5. Fail.ioxclient Run the app
    ioxclient app start app_nginx

Error message:

{
 "description": "",
 "errorcode": -1014,
 "message": "Error while changing app state"
}

package.yaml content

descriptor-schema-version: "2.7"
info:
  name: nginx
  version: 0.1

app:
  cpuarch: "armv7l"
  type: docker
  resources:
    cpu: "400"
    memory: "128"
    network:
    - interface-name: eth0
      ports:
        tcp:
        - "8010"
    profile: custom
  startup:
    rootfs: rootfs.tar
    target:
    - nginx

activation.json

{
    "resources": {
        "profile": "c1.tiny",
        "network": [{
            "interface-name": "eth0",
            "network-name": "iox-nat0",
            "port_map": {
                "mode": "auto",
                "tcp": {
                    "8010": "8010"
                }
            }
        }]
    }
}

 

I don't find any information about to solve this problem.

 
1 Accepted Solution

Accepted Solutions

rod.leon
Level 1
Level 1

Finally solved. It was architecture issue, the original Dockerfile for this nginx is on arm64, so I changed to arm32v7 and that works. For this I built the dockerfile using docker buildx tool, Raspberry Pi can builds ARMs too.

View solution in original post

1 Reply 1

rod.leon
Level 1
Level 1

Finally solved. It was architecture issue, the original Dockerfile for this nginx is on arm64, so I changed to arm32v7 and that works. For this I built the dockerfile using docker buildx tool, Raspberry Pi can builds ARMs too.