File size: 1,299 Bytes
784ee2c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # 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
|