Install OpenBalena with NGINX

I tried another more simple app to try to check if it was the other app source ( sense-snake.

I tried with balena-go-hello-world and I got this error:

aburbanol@Aburbanol-laptop:~/dev/balena/balena-go-hello-world$ sudo balena deploy myApp --logs --source . --emulated
[Info] No “docker-compose.yml” file found at “/home/aburbanol/dev/balena/balena-go-hello-world”
[Info] Creating default composition with source: “/home/aburbanol/dev/balena/balena-go-hello-world”
[Info] Building for armv7hf/asus-tinker-board-s
[Build] Building services…
[Build] main Preparing…
[Info] Emulation is enabled
[Build] main Step 1/7 : FROM balenalib/asus-tinker-board-s-golang:latest-build AS build
[Build] main —> 07830db438a5
[Build] main Step 2/7 : WORKDIR /go/src/github.com/balena-io-projects/app
[Build] main —> Running in 840d23f7a9ca
[Build] main Removing intermediate container 840d23f7a9ca
[Build] main —> 2ca0e96e5f99
[Build] main Step 3/7 : COPY /app ./
[Build] main —> bfb6cd08ae38
[Build] main Step 4/7 : RUN go build
[Build] main —> Running in 6b0836e42d0d
[Build] main standard_init_linux.go:211: exec user process caused “exec format error”
[Build] Built 1 service in 1:58
[Error] Deploy failed
The command ‘/bin/sh -c go build’ returned a non-zero code: 1

Additional information may be available by setting a DEBUG=1 environment
variable: “set DEBUG=1” on a Windows command prompt, “$env:DEBUG = 1” on
powershell, or “export DEBUG=1” on Linux or macOS.

If you need help, don’t hesitate in contacting our support forums at
https://forums.balena.io

For CLI bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

Hello,
You’re trying to build an arm image on an x86 or x64 computer.
Please check https://www.balena.io/docs/reference/base-images/base-images/#building-arm-containers-on-x86-machines
Adding RUN [ "cross-build-start" ] and RUN [ "cross-build-end" ] in the Dockerfile.template should make it work.