I currently have a project setup using a linux (ubuntu) virtual machine in combination with a Verdin AM62 module and this has been working correctly for several months now (i can debug just fine).
I want to setup the AM62 module in such a way that it boots my application at startup and i think i need a release version for that, please correct me if i am wrong about this.
I want to build release version of the project using the Visual Studio Torizon IDE extension tasks but i can’t figure out why this does not work.
According to the documentation (“Build, Test and Push Applications for Production | Toradex Developer Center”) i can generate a release version using the ‘run-container-torizon-release-arm64’ task, this however fails in a resulting error code 17.
output of task:
* Executing task: pwsh -nop .conf/validateDepsRunning.ps1
⚠️ VALIDATING ENVIRONMENT
✅ Environment is valid!
* Terminal will be reused by tasks, press any key to close it.
* Executing task: bash -c [[ ! -z "10.194.154.65" ]] && true || false
* Terminal will be reused by tasks, press any key to close it.
* Executing task: bash -c [[ "aarch64" == "aarch64" ]] && true || false
* Terminal will be reused by tasks, press any key to close it.
* Executing task: sleep 1
* Terminal will be reused by tasks, press any key to close it.
* Executing task: sshpass -p test scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/richard/GatewayUnitApplication/docker-compose.yml torizon@10.194.154.65:~/
Warning: Permanently added '10.194.154.65' (ED25519) to the list of known hosts.
* Terminal will be reused by tasks, press any key to close it.
* Executing task: DOCKER_HOST=10.194.154.65:2375 docker image prune -f --filter=dangling=true
Total reclaimed space: 0B
* Terminal will be reused by tasks, press any key to close it.
* Executing task: docker compose -p torizon stop gateway_unit_application gateway_unit_application-debug && docker compose -p torizon rm -f gateway_unit_application gateway_unit_application-debug
No stopped containers
* Terminal will be reused by tasks, press any key to close it.
* Executing task: pwsh -nop /home/richard/GatewayUnitApplication/.conf/torizonPackages.ps1 arm64
Applying torizonPackages.json ...
Applying to Dockerfile.debug ...
✅ Dockerfile.debug
Applying to Dockerfile ...
✅ Dockerfile
torizonPackages.json applied
* Terminal will be reused by tasks, press any key to close it.
* Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm64 --build-arg GPU= gateway_unit_application
WARN[0000] /home/richard/GatewayUnitApplication/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
WARN[0000] The "LOCAL_REGISTRY" variable is not set. Defaulting to a blank string.
[+] Building 0.0s (0/0) docker:default
invalid tag "localhost:5002/:gateway_unit_applicationarm64": invalid reference format
* The terminal process "/usr/bin/bash '-c', 'DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm64 --build-arg GPU= gateway_unit_application'" failed to launch (exit code: 17).
* Terminal will be reused by tasks, press any key to close it.
configuration of ‘tasks.json’ “build-container-torizon-release-arm64”
{
"label": "build-container-torizon-release-arm64",
"detail": "",
"hide": true,
"command": "DOCKER_HOST=",
"type": "shell",
"options": {
"env": {
"DOCKER_LOGIN": "localhost:5002",
"TAG": "arm64",
"GPU": "${config:torizon_gpu}",
"DEBUG_SSH_PORT": "${config:torizon_debug_ssh_port}",
"DEBUG_PORT1": "${config:torizon_debug_port1}",
"DEBUG_PORT2": "${config:torizon_debug_port2}",
"DEBUG_PORT3": "${config:torizon_debug_port3}"
}
},
"args": [
"docker",
"compose",
"build",
"--pull",
"--build-arg",
"SSHUSERNAME=${config:torizon_run_as}",
"--build-arg",
"APP_ROOT=${config:torizon_app_root}",
"--build-arg",
"IMAGE_ARCH=arm64",
"--build-arg",
"GPU=${config:torizon_gpu}",
"gateway_unit_application"
],
"dependsOrder": "sequence",
"dependsOn": [
"apply-torizon-packages-arm64"
],
"problemMatcher": "$msCompile",
"icon": {
"id": "tools",
"color": "terminal.ansiYellow"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"group": "build-execution"
}
},
Kind regards,
Richard.