Skip to content

Commit

Permalink
[#225] Create and example to show how to use LemonTree.Automation Doc…
Browse files Browse the repository at this point in the history
…ker container for pipeline tasks.
  • Loading branch information
danielsiegl committed Nov 19, 2024
1 parent d1462af commit 1c5277a
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions example-scripts/powershell/dockerLTA.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@
#this is not a finished script - it is just the basic info to get you started using LemonTree.Automation deployed as a Docker Container into your pipeline.
#sample models can be found on computers with LemonTree Desktop installed: C:\ProgramData\LieberLieber\LemonTree\Examples


$ltaLicenses = "$(Get-Location)/licenses"
$ltaData ="$(Get-Location)/data"

#prepare mapping directories for docker mapping
New-Item -ItemType Directory -Force -Path "$ltaLicenses"
New-Item -ItemType Directory -Force -Path "$ltaData"

#copy my locallicense to the folder - pls use yours as they fit
Copy-Item -Path "C:\tmp\license000_ANY.lic" -Destination "$ltaLicenses" -Force
Copy-Item -Path "C:\ProgramData\LieberLieber\LemonTree\Examples\A.qeax" -Destination "$ltaData" -Force
Copy-Item -Path "C:\ProgramData\LieberLieber\LemonTree\Examples\B.qeax" -Destination "$ltaData" -Force
Copy-Item -Path "C:\ProgramData\LieberLieber\LemonTree\Examples\Base.qeax" -Destination "$ltaData" -Force

docker stop ltacli
docker rm ltacli
docker run -itd --name ltacli `
-v "$(Get-Location)\data:/data" `
-v "$(Get-Location)\licenses:/app/licenses" `
nexus.lieberlieber.com:5000/lieberlieber/lemontree.automation:latest
docker run -itd --name ltacli -v "${ltaData}:/data" -v "${ltaLicenses}:/app/licenses" nexus.lieberlieber.com:5000/lieberlieber/lemontree.automation:latest

docker exec -it ltacli ./lemontree.automation diff --license /app/licenses/ --base /data/Base.qeax --theirs /data/A.qeax --mine /data/B.qeax

Expand Down

0 comments on commit 1c5277a

Please sign in to comment.