forked from The-OpenROAD-Project/OpenROAD-flow-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
29 lines (20 loc) · 966 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
29 lines (20 loc) · 966 Bytes
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
# 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 InstallerOpenROAD.sh \
/tmp/installer/tools/OpenROAD/etc/DependencyInstaller.sh
ARG options=""
ARG constantBuildDir="-constant-build-dir"
ENV CFLAGS="-Wno-builtin-macro-redefined"
ENV CXXFLAGS="-Wno-builtin-macro-redefined"
RUN ./DependencyInstaller.sh -base $options $constantBuildDir \
&& ./DependencyInstaller.sh -common $options $constantBuildDir \
&& 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'"