-
Notifications
You must be signed in to change notification settings - Fork 36
Use chef configuration in windows dockerfile setup #425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3127495
Switching dockerfile to install from chef config.
brawner 54f768b
Updating with connext fixes
brawner 2779c69
Updating cookbooks
brawner dd16f76
Update cookbook usage to handle multiple rosdistros. (#496)
nuclearsandwich 02c9f2b
Add windows_docker_resources README
brawner d52e90c
Address PR feedback
brawner d715ef3
Update README
brawner f114aab
PR Fixup
brawner f62a17d
Remove opensplice from foxy/rolling
brawner f355355
Fixup readme
brawner b087b67
mkdir if not exist
brawner 88b4bbd
Update ros2-cookbooks version.
nuclearsandwich 818c320
Opencv fix branch
brawner 1831ed7
Revert ros2-cookbooks to latest
brawner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| # escape=` | ||
| # This Dockerfile needs to be built from the parent directory (ros2/ci) so the build context | ||
| # includes the python scripts | ||
|
|
||
| # To find this value run in powershell: | ||
| # $(Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').ReleaseId | ||
| ARG WINDOWS_RELEASE_ID=1909 | ||
|
|
||
| # In order to ensure the image is correctly compatible with the host system a | ||
| # more precise version than the release id is required. To find this value run | ||
| # the following in powershell. | ||
| # $(Get-ItemProperty -Path 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Update\TargetingInfo\Installed\Server.OS.amd64' -Name Version).Version" | ||
| # Fall back to the Release ID | ||
| ARG WINDOWS_RELEASE_VERSION=$WINDOWS_RELEASE_ID | ||
|
|
||
| # Indicates that the windows image will be used as the base image. Must be same or older than host. | ||
| # --isolation=hyperv is needed for both build/run if the image id is older than the host id | ||
| # Use --isolation=process if you need to build in a mounted volume | ||
| FROM mcr.microsoft.com/windows:$WINDOWS_RELEASE_VERSION | ||
|
|
||
| # Install cinc-solo, a compiled binary of chef-solo | ||
|
brawner marked this conversation as resolved.
|
||
| RUN powershell "iex ((New-Object System.Net.WebClient).DownloadString('https://omnitruck.cinc.sh/install.ps1')); install -version 15.10.12" | ||
|
|
||
| # Install Chocolatey by powershell script | ||
| RUN powershell -noexit "Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" | ||
|
|
||
| # choco installs. chefdk is being installed to get berks and download cookbook dependencies | ||
| RUN choco install -y git chefdk | ||
|
brawner marked this conversation as resolved.
|
||
|
|
||
| # Copy over necessary files into container | ||
| RUN mkdir C:\TEMP | ||
|
brawner marked this conversation as resolved.
Outdated
|
||
| COPY rticonnextdds-license\ C:\TEMP\rticonnextdds-license | ||
| COPY rticonnextdds-src\ C:\TEMP\rticonnextdds-src | ||
| RUN copy /b C:\TEMP\rticonnextdds-src\rti_connext_dds-5.3.1-pro-host-x64Win64.exe.??? C:\TEMP\rticonnextdds-src\rti_connext_dds-5.3.1-pro-host-x64Win64.exe | ||
| RUN copy /b C:\TEMP\rticonnextdds-src\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg.??? C:\TEMP\rticonnextdds-src\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg | ||
|
|
||
| # ROS_DISTRO argument should be set to install dependencies for the target ROS version. | ||
| ARG ROS_DISTRO | ||
|
|
||
| COPY install_ros2_${ROS_DISTRO}.json C:\TEMP\ | ||
| COPY solo.rb C:\TEMP\ | ||
| COPY ros2-cookbooks\ C:\TEMP\ros2-cookbooks | ||
| COPY qtaccount\qtaccount.ini C:\TEMP\ros2-cookbooks\cookbooks\ros2_windows\files\ | ||
|
|
||
| # Download vendor cookbooks | ||
| WORKDIR C:\TEMP\ros2-cookbooks\cookbooks\ros2_windows | ||
| RUN C:\opscode\chefdk\bin\berks vendor C:\TEMP\ros2-cookbooks\cookbooks | ||
|
|
||
| # Initial run | ||
| RUN c:\cinc-project\cinc\bin\cinc-solo.bat -c C:\TEMP\solo.rb -j C:\TEMP\install_ros2_%ROS_DISTRO%.json | ||
|
|
||
| # Invalidate daily to run updates | ||
| RUN echo "@todays_date" | ||
|
brawner marked this conversation as resolved.
|
||
| RUN c:\cinc-project\cinc\bin\cinc-solo.bat -c C:\TEMP\solo.rb -j C:\TEMP\install_ros2_%ROS_DISTRO%.json | ||
|
|
||
| WORKDIR C:\ci | ||
| CMD ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Auxiliary\\Build\\vcvarsall.bat", "x86_amd64", "&&", ` | ||
| "python", "run_ros2_batch.py", "%CI_ARGS%"] | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.