Skip to content

Commit 4f2c7c0

Browse files
committed
Fixup based on @nuclearsandwich's feedback
1 parent f3e5f99 commit 4f2c7c0

File tree

4 files changed

+41
-39
lines changed

4 files changed

+41
-39
lines changed

linux_docker_resources/.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

ros2_batch_job/__main__.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -521,20 +521,15 @@ def run(args, build_function, blacklisted_package_names=None):
521521
with change_directory(args.workspace):
522522
print('# BEGIN SUBSECTION: install Python packages')
523523
# Update setuptools
524-
pip_cmd = ['"%s"' % job.python, '-m', 'pip', 'install', '-U']
525-
if args.do_venv or sys.platform == 'win32':
526-
# Force reinstall so all dependencies are in virtual environment
527-
# On Windows since we switch between the debug and non-debug
528-
# interpreter all packages need to be reinstalled too
529-
pip_cmd.append('--force-reinstall')
530-
job.run(pip_cmd + ['pip', 'setuptools',], shell=True)
524+
job.run(['"%s"' % job.python, '-m', 'pip', 'install', '-U', 'pip', 'setuptools'],
525+
shell=True)
531526
# Print setuptools version
532527
job.run(['"%s"' % job.python, '-c', '"import setuptools; print(setuptools.__version__)"'],
533528
shell=True)
534529
# Print the pip version
535530
job.run(['"%s"' % job.python, '-m', 'pip', '--version'], shell=True)
536531
# Install pip dependencies
537-
pip_packages = ['pip', 'setuptools', ] + list(pip_dependencies)
532+
pip_packages = list(pip_dependencies)
538533
if sys.platform == 'win32':
539534
if args.cmake_build_type == 'Debug':
540535
pip_packages += [
@@ -561,6 +556,12 @@ def run(args, build_function, blacklisted_package_names=None):
561556
job.run(
562557
['"%s"' % job.python, '-m', 'pip', 'uninstall', '-y'] +
563558
['cryptography', 'lxml', 'numpy'], shell=True)
559+
pip_cmd = ['"%s"' % job.python, '-m', 'pip', 'install', '-U']
560+
if args.do_venv or sys.platform == 'win32':
561+
# Force reinstall so all dependencies are in virtual environment
562+
# On Windows since we switch between the debug and non-debug
563+
# interpreter all packages need to be reinstalled too
564+
pip_cmd.append('--force-reinstall')
564565
job.run(
565566
pip_cmd + pip_packages,
566567
shell=True)

windows_docker_resources/.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

windows_docker_resources/Dockerfile.msvc2019

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# To find this value run in powershell:
66
# $(Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').ReleaseId
7-
ARG WINDOWS_RELEASE_ID=1809
7+
ARG WINDOWS_RELEASE_ID=1909
88
ARG TODAYS_DATE=0
99

1010
# Indicates that the windows image will be used as the base image. Must be same or older than host.
@@ -54,7 +54,9 @@ ADD https://www.zlatkovic.com/pub/libxml/64bit/iconv-1.14-win32-x86_64.7z C:\TEM
5454
# Restore the default Windows shell for correct batch processing.
5555
SHELL ["cmd", "/S", "/C"]
5656

57-
# 3010 is an acceptable exit code, but it will confuse docker
57+
# 3010 is an acceptable exit code (install was successful but restart required), but it will confuse docker.
58+
# See documentation for installer at:
59+
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2019
5860
RUN C:\TEMP\vs_BuildTools.exe --quiet --wait --norestart --includeRecommended `
5961
--add Microsoft.Net.Component.4.8.SDK `
6062
--add Microsoft.VisualStudio.Workload.VCTools `
@@ -72,9 +74,10 @@ RUN C:\TEMP\python-37.exe /quiet `
7274
RUN powershell -noexit "Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"
7375

7476
# choco installs
75-
RUN choco install -y cmake curl git KB3035131 KB3033929 KB2919442 vcredist2013 vcredist140 cppcheck
77+
RUN choco install -y cmake curl git vcredist2013 vcredist140 cppcheck patch
78+
#RUN choco install -y cmake curl git KB3035131 KB3033929 KB2919442 vcredist2013 vcredist140 cppcheck patch
7679
RUN choco install -y -s C:\TEMP asio cunit eigen tinyxml-usestl tinyxml2 log4cxx
77-
RUN choco install -y patch
80+
# RUN choco install -y patch
7881

7982
RUN C:\TEMP\Win64OpenSSL.exe /VERYSILENT
8083

@@ -100,7 +103,7 @@ RUN setx PATH "%PATH%;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Ope
100103
# Invalidate once a day to cause online installers to check for updates
101104
RUN echo %TODAYS_DATE%
102105

103-
# Run the same install commands but just with the update/upgrade options
106+
# Run the same install commands but just with the update/upgrade options.
104107
RUN C:\TEMP\vs_BuildTools.exe update --quiet --wait --norestart --includeRecommended `
105108
--add Microsoft.Net.Component.4.8.SDK `
106109
--add Microsoft.VisualStudio.Workload.VCTools `
@@ -119,30 +122,30 @@ RUN choco upgrade -y all
119122

120123
RUN python -m pip install -U pydot PyQt5
121124

122-
COPY rticonnextdds-license\rti_license.dat C:\connext\
123-
ENV RTI_LICENSE_FILE C:\connext\rti_license.dat
124-
125-
COPY rticonnextdds-src\openssl-1.0.2n-target-x64Win64VS2017.zip C:\TEMP\connext\
126-
RUN 7z.exe x C:\TEMP\connext\openssl-1.0.2n-target-x64Win64VS2017.zip -aoa -oC:\connext\
127-
ENV RTI_OPENSSL_BIN C:\connext\openssl-1.0.2n\x64Win64VS2017\release\bin
128-
ENV RTI_OPENSSL_LIB C:\connext\openssl-1.0.2n\x64Win64VS2017\release\lib
129-
130-
COPY rticonnextdds-src\rti_connext_dds-5.3.1-pro-host-x64Win64.exe.??? C:\TEMP\connext\
131-
RUN copy /b C:\TEMP\connext\rti_connext_dds-5.3.1-pro-host-x64Win64.exe.??? C:\TEMP\connext\rti_connext_dds-5.3.1-pro-host-x64Win64.exe
132-
RUN C:\TEMP\connext\rti_connext_dds-5.3.1-pro-host-x64Win64.exe `
133-
--mode unattended `
134-
--unattendedmodeui minimalWithDialogs `
135-
--prefix "%ProgramFiles%"
136-
137-
COPY rticonnextdds-src\openssl-1.0.2n-5.3.1-host-x64Win64.rtipkg C:\TEMP\connext\
138-
RUN ""%ProgramFiles%\rti_connext_dds-5.3.1\bin\rtipkginstall.bat" C:\TEMP\connext\openssl-1.0.2n-5.3.1-host-x64Win64.rtipkg"
139-
COPY rticonnextdds-src\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg.??? C:\TEMP\connext\
140-
RUN copy /b C:\TEMP\connext\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg.??? C:\TEMP\connext\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg
141-
RUN ""%ProgramFiles%\rti_connext_dds-5.3.1\bin\rtipkginstall.bat" C:\TEMP\connext\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg"
142-
COPY rticonnextdds-src\rti_security_plugins-5.3.1-host-x64Win64.rtipkg C:\TEMP\connext\
143-
RUN ""%ProgramFiles%\rti_connext_dds-5.3.1\bin\rtipkginstall.bat" C:\TEMP\connext\rti_security_plugins-5.3.1-host-x64Win64.rtipkg"
144-
COPY rticonnextdds-src\rti_security_plugins-5.3.1-target-x64Win64VS2017.rtipkg C:\TEMP\connext\
145-
RUN ""%ProgramFiles%\rti_connext_dds-5.3.1\bin\rtipkginstall.bat" C:\TEMP\connext\rti_security_plugins-5.3.1-target-x64Win64VS2017.rtipkg"
125+
# COPY rticonnextdds-license\rti_license.dat C:\connext\
126+
# ENV RTI_LICENSE_FILE C:\connext\rti_license.dat
127+
128+
# COPY rticonnextdds-src\openssl-1.0.2n-target-x64Win64VS2017.zip C:\TEMP\connext\
129+
# RUN 7z.exe x C:\TEMP\connext\openssl-1.0.2n-target-x64Win64VS2017.zip -aoa -oC:\connext\
130+
# NV RTI_OPENSSL_BIN C:\connext\openssl-1.0.2n\x64Win64VS2017\release\bin
131+
# ENV RTI_OPENSSL_LIB C:\connext\openssl-1.0.2n\x64Win64VS2017\release\lib
132+
133+
# COPY rticonnextdds-src\rti_connext_dds-5.3.1-pro-host-x64Win64.exe.??? C:\TEMP\connext\
134+
# RUN copy /b C:\TEMP\connext\rti_connext_dds-5.3.1-pro-host-x64Win64.exe.??? C:\TEMP\connext\rti_connext_dds-5.3.1-pro-host-x64Win64.exe
135+
# RUN C:\TEMP\connext\rti_connext_dds-5.3.1-pro-host-x64Win64.exe `
136+
# --mode unattended `
137+
# --unattendedmodeui minimalWithDialogs `
138+
# --prefix "%ProgramFiles%"
139+
140+
# COPY rticonnextdds-src\openssl-1.0.2n-5.3.1-host-x64Win64.rtipkg C:\TEMP\connext\
141+
# RUN ""%ProgramFiles%\rti_connext_dds-5.3.1\bin\rtipkginstall.bat" C:\TEMP\connext\openssl-1.0.2n-5.3.1-host-x64Win64.rtipkg"
142+
# COPY rticonnextdds-src\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg.??? C:\TEMP\connext\
143+
# RUN copy /b C:\TEMP\connext\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg.??? C:\TEMP\connext\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg
144+
# RUN ""%ProgramFiles%\rti_connext_dds-5.3.1\bin\rtipkginstall.bat" C:\TEMP\connext\rti_connext_dds-5.3.1-pro-target-x64Win64VS2017.rtipkg"
145+
# COPY rticonnextdds-src\rti_security_plugins-5.3.1-host-x64Win64.rtipkg C:\TEMP\connext\
146+
# RUN ""%ProgramFiles%\rti_connext_dds-5.3.1\bin\rtipkginstall.bat" C:\TEMP\connext\rti_security_plugins-5.3.1-host-x64Win64.rtipkg"
147+
# COPY rticonnextdds-src\rti_security_plugins-5.3.1-target-x64Win64VS2017.rtipkg C:\TEMP\connext\
148+
# RUN ""%ProgramFiles%\rti_connext_dds-5.3.1\bin\rtipkginstall.bat" C:\TEMP\connext\rti_security_plugins-5.3.1-target-x64Win64VS2017.rtipkg"
146149

147150
RUN powershell -Command Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
148151
RUN mkdir C:\ws

0 commit comments

Comments
 (0)