Skip to content

Commit

Permalink
Merge pull request torizon#214 from toradex/dev
Browse files Browse the repository at this point in the history
Release v2.5.2
  • Loading branch information
microhobby authored Jul 5, 2024
2 parents b6bc001 + f31c8d7 commit cbcbcde
Show file tree
Hide file tree
Showing 8 changed files with 204 additions and 5 deletions.
46 changes: 46 additions & 0 deletions cmakeConsole/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,52 @@
],
"preLaunchTask": "build-debug-amd64-local"
},
{
"name": "Torizon AMD64",
"type": "cppdbg",
"request": "launch",
"program": "${config:torizon_app_root}/__change__",
"args": [],
"stopAtEntry": false,
"cwd": "${config:torizon_app_root}",
"environment": [],
"externalConsole": false,
"internalConsoleOptions": "openOnSessionStart",
"sourceFileMap": {
"${config:torizon_app_root}": "${workspaceFolder}"
},
"pipeTransport": {
"debuggerPath": "/usr/bin/gdb",
"pipeProgram": "ssh",
"pipeArgs": [
"-T",
"-q",
"-p",
"${config:torizon_debug_ssh_port}",
"-i",
"${workspaceFolder}/.conf/id_rsa", // ssh key path
"-o",
"StrictHostKeyChecking=no",
"-o",
"UserKnownHostsFile /dev/null",
"${config:torizon_run_as}@${config:torizon_ip}" // user@device
]
},
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "deploy-torizon-amd64"
},
{
"name": "Torizon ARMv7",
"type": "cppdbg",
Expand Down
115 changes: 115 additions & 0 deletions cmakeConsole/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,121 @@
"build-container-image-sdk-arm64"
]
},
{
"label": "build-configure-amd64",
"hide": true,
"command": "DOCKER_HOST=",
"type": "shell",
"args": [
"docker",
"run",
"--rm",
"-v",
"${workspaceFolder}:${config:torizon_app_root}",
"cross-toolchain-amd64-__container__",
"cmake",
"-DCMAKE_BUILD_TYPE=Debug",
"-DCMAKE_CXX_COMPILER=x86_64-linux-gnu-g++",
"-DCMAKE_C_COMPILER=x86_64-linux-gnu-gcc",
"-Bbuild-amd64"
],
"problemMatcher": [
"$gcc"
],
"icon": {
"id": "flame",
"color": "terminal.ansiYellow"
},
"dependsOrder": "sequence",
"dependsOn": [
"build-container-image-sdk-amd64"
]
},
{
"label": "build-debug-amd64",
"detail": "Build a debug version of the application for amd64 using\nthe toolchain from the SDK container.",
"command": "DOCKER_HOST=",
"type": "shell",
"args": [
"docker",
"run",
"--rm",
"-v",
"${workspaceFolder}:${config:torizon_app_root}",
"cross-toolchain-amd64-__container__",
"cmake",
"--build",
"build-amd64"
],
"problemMatcher": [
"$gcc"
],
"icon": {
"id": "flame",
"color": "terminal.ansiYellow"
},
"dependsOrder": "sequence",
"dependsOn": [
"build-configure-amd64"
]
},
{
"label": "deploy-torizon-amd64",
"detail": "",
"hide": true,
"command": "sleep",
"type": "process",
"args": [
"1"
],
"dependsOn": [
"validate-settings",
"validate-arch-amd64",
"copy-docker-compose",
"pre-cleanup",
"build-debug-amd64",
"build-container-torizon-debug-amd64",
"push-container-torizon-debug-amd64",
"pull-container-torizon-debug-amd64",
"run-container-torizon-debug-amd64"
],
"dependsOrder": "sequence",
"problemMatcher": "$msCompile",
"icon": {
"id": "flame",
"color": "terminal.ansiYellow"
}
},
{
"label": "clean-amd64",
"detail": "Clean the build folder for amd64 using the\ncontainer SDK toolchain.",
"command": "DOCKER_HOST=",
"type": "shell",
"args": [
"docker",
"run",
"--rm",
"-v",
"${workspaceFolder}:${config:torizon_app_root}",
"cross-toolchain-amd64-__container__",
"cmake",
"--build",
"build-amd64",
"--target",
"clean"
],
"problemMatcher": [
"$gcc"
],
"icon": {
"id": "trash",
"color": "terminal.ansiYellow"
},
"dependsOrder": "sequence",
"dependsOn": [
"build-container-image-sdk-arm64"
]
},
],
"inputs": []
}
12 changes: 10 additions & 2 deletions cmakeConsole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,16 @@ RUN cmake --build build-${IMAGE_ARCH}
# BUILD ------------------------------------------------------------------------


# DEPLOY -----------------------------------------------------------------------
FROM --platform=linux/${IMAGE_ARCH} torizon/debian:${BASE_VERSION} AS Deploy
##
# Deploy Step
#
# This is using commontorizon/debian only by the ease of the use of the
# same image tags for x86_64 architectures:
# - AMD64 -> torizon/debian-upstream:3 == commontorizon/debian:3.3.0-bookworm
# - ARM64 -> torizon/debian:3 == commontorizon/debian:3.3.0-bookworm
# - ARM -> torizon/debian:3 == commontorizon/debian:3.3.0-bookworm
##
FROM --platform=linux/${IMAGE_ARCH} commontorizon/debian:${BASE_VERSION} AS Deploy

ARG IMAGE_ARCH
ARG APP_ROOT
Expand Down
8 changes: 7 additions & 1 deletion cmakeConsole/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ ARG APP_ROOT=
# BUILD ------------------------------------------------------------------------
##
# Deploy Step
#
# This is using commontorizon/debian only by the ease of the use of the
# same image tags for x86_64 architectures:
# - AMD64 -> torizon/debian-upstream:3 == commontorizon/debian:3.3.0-bookworm
# - ARM64 -> torizon/debian:3 == commontorizon/debian:3.3.0-bookworm
# - ARM -> torizon/debian:3 == commontorizon/debian:3.3.0-bookworm
##
FROM --platform=linux/${IMAGE_ARCH} \
torizon/debian:${BASE_VERSION} AS Debug
commontorizon/debian:${BASE_VERSION} AS Debug

ARG IMAGE_ARCH
ARG SSH_DEBUG_PORT
Expand Down
12 changes: 12 additions & 0 deletions python3Console/.conf/update.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,17 @@
{
"source": ".vscode/launch.json",
"target": ".vscode/launch.json"
},
{
"source": "requirements-local.txt",
"target": "requirements-local.txt"
},
{
"source": "requirements-debug.txt",
"target": "requirements-debug.txt"
},
{
"source": "requirements-release.txt",
"target": "requirements-release.txt"
}
]
12 changes: 12 additions & 0 deletions python3Pyside2QML/.conf/update.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,17 @@
{
"source": ".vscode/launch.json",
"target": ".vscode/launch.json"
},
{
"source": "requirements-local.txt",
"target": "requirements-local.txt"
},
{
"source": "requirements-debug.txt",
"target": "requirements-debug.txt"
},
{
"source": "requirements-release.txt",
"target": "requirements-release.txt"
}
]
2 changes: 1 addition & 1 deletion scripts/createDockerComposeMultiProduction.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ foreach ($project in $codeWorkspace.folders) {
"Reading $path/docker-compose.prod.yml"

$yamlFile = Get-Content ("$path/docker-compose.prod.yml") | Out-String
$yamlObj = ConvertFrom-Yaml $yamlFile -AllDocuments
$yamlObj = ConvertFrom-Yaml $yamlFile -AllDocuments -Ordered

if ($null -eq $retYaml) {
$retYaml = $yamlObj
Expand Down
2 changes: 1 addition & 1 deletion scripts/createDockerComposeProduction.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Write-Host -ForegroundColor DarkGreen "✅ powershell-yaml loaded"
# read the yaml file
Write-Host "Reading docker-compose.yml file ..."
$composeContent = Get-Content ("$compoFilePath/docker-compose.yml") | Out-String
$composeLoad = ConvertFrom-Yaml $composeContent -AllDocuments
$composeLoad = ConvertFrom-Yaml $composeContent -AllDocuments -Ordered
$composeServices = $composeLoad.Services
$removeKeys = New-Object Collections.Generic.List[String]
$prodKeys = New-Object Collections.Generic.List[String]
Expand Down

0 comments on commit cbcbcde

Please sign in to comment.