# create image with dependencies needed to compile openroad app and run openroad flow scripts # NOTE: don't use this file directly unless you know what you are doing, # instead use etc/DockerHelper.sh ARG fromImage=ubuntu:22.04 FROM $fromImage WORKDIR /tmp/installer/etc COPY DependencyInstaller.sh . COPY requirements-common_lock.txt . COPY requirements-pip_lock.txt . COPY InstallerOpenROAD.sh \ /tmp/installer/tools/OpenROAD/etc/DependencyInstaller.sh ARG options="" ARG constantBuildDir="-constant-build-dir" # add compiler wrapper scripts for reproducible builds COPY setup_compiler_wrappers.sh /tmp/ RUN sh /tmp/setup_compiler_wrappers.sh && rm /tmp/setup_compiler_wrappers.sh ENV PATH="/usr/local/bin/wrapped-cc:$PATH" RUN ./DependencyInstaller.sh -base $options $constantBuildDir -save-deps-prefixes=/etc/openroad_deps_prefixes.txt \ && ./DependencyInstaller.sh -common $options $constantBuildDir -save-deps-prefixes=/etc/openroad_deps_prefixes.txt \ && rm -rf /tmp/installer /tmp/* /var/tmp/* /var/lib/apt/lists/* ARG fromImage RUN echo "$fromImage" | grep -q "ubuntu" && \ strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so || \ echo "Skipping strip command as fromImage does not contain 'ubuntu'" WORKDIR /OpenROAD-flow-scripts