mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-25 07:29:25 -05:00
Minimize number of Dockerfile RUN commands to lower number of
used layers in the image. Too many layers will give an error.
This commit is contained in:
parent
1941a22007
commit
08a204dfa6
@ -72,8 +72,8 @@ RUN git clone --depth=1 https://github.com/YosysHQ/icestorm /src
|
|||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN git checkout 738af822905fdcf0466e9dd784b9ae4b0b34987f \
|
RUN git checkout 738af822905fdcf0466e9dd784b9ae4b0b34987f \
|
||||||
&& make -j$(nproc --ignore=2) \
|
&& make -j$(nproc --ignore=2) \
|
||||||
&& make install
|
&& make install \
|
||||||
RUN git describe --all --always --long --dirty > /usr/local/repo-commit-icestorm
|
&& git describe --all --always --long --dirty > /usr/local/repo-commit-icestorm
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN rm -rf /src
|
RUN rm -rf /src
|
||||||
|
|
||||||
@ -81,8 +81,8 @@ RUN rm -rf /src
|
|||||||
RUN git clone -b interfaces --depth=1 https://github.com/tillitis/icestorm /src
|
RUN git clone -b interfaces --depth=1 https://github.com/tillitis/icestorm /src
|
||||||
WORKDIR /src/iceprog
|
WORKDIR /src/iceprog
|
||||||
RUN make -j$(nproc --ignore=2) \
|
RUN make -j$(nproc --ignore=2) \
|
||||||
&& make PROGRAM_PREFIX=tillitis- install
|
&& make PROGRAM_PREFIX=tillitis- install \
|
||||||
RUN git describe --all --always --long --dirty > /usr/local/repo-commit-tillitis--icestorm
|
&& git describe --all --always --long --dirty > /usr/local/repo-commit-tillitis--icestorm
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN rm -rf /src
|
RUN rm -rf /src
|
||||||
|
|
||||||
@ -90,8 +90,8 @@ RUN git clone -b 0.45 --depth=1 https://github.com/YosysHQ/yosys /src
|
|||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN git submodule update --init \
|
RUN git submodule update --init \
|
||||||
&& make -j$(nproc --ignore=2) \
|
&& make -j$(nproc --ignore=2) \
|
||||||
&& make install
|
&& make install \
|
||||||
RUN git describe --all --always --long --dirty > /usr/local/repo-commit-yosys
|
&& git describe --all --always --long --dirty > /usr/local/repo-commit-yosys
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN rm -rf /src
|
RUN rm -rf /src
|
||||||
|
|
||||||
@ -104,8 +104,8 @@ RUN sed -i 's/if (do_route) {/if (do_route \&\& !had_nonfatal_error) {/' common/
|
|||||||
RUN sed -i 's/bool warn_on_failure = false/bool warn_on_failure = true/' common/kernel/timing.h
|
RUN sed -i 's/bool warn_on_failure = false/bool warn_on_failure = true/' common/kernel/timing.h
|
||||||
RUN cmake -DARCH=ice40 . \
|
RUN cmake -DARCH=ice40 . \
|
||||||
&& make -j$(nproc --ignore=2) \
|
&& make -j$(nproc --ignore=2) \
|
||||||
&& make install
|
&& make install \
|
||||||
RUN git describe --all --always --long --dirty > /usr/local/repo-commit-nextpnr
|
&& git describe --all --always --long --dirty > /usr/local/repo-commit-nextpnr
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN rm -rf /src
|
RUN rm -rf /src
|
||||||
|
|
||||||
@ -114,8 +114,8 @@ WORKDIR /src
|
|||||||
RUN sh autoconf.sh \
|
RUN sh autoconf.sh \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
&& make -j$(nproc --ignore=2) \
|
&& make -j$(nproc --ignore=2) \
|
||||||
&& make install
|
&& make install \
|
||||||
RUN git describe --all --always --long --dirty > /usr/local/repo-commit-iverilog
|
&& git describe --all --always --long --dirty > /usr/local/repo-commit-iverilog
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN rm -rf /src
|
RUN rm -rf /src
|
||||||
|
|
||||||
@ -125,8 +125,8 @@ RUN autoconf \
|
|||||||
&& ./configure \
|
&& ./configure \
|
||||||
&& make -j$(nproc --ignore=2) \
|
&& make -j$(nproc --ignore=2) \
|
||||||
&& make test \
|
&& make test \
|
||||||
&& make install
|
&& make install \
|
||||||
RUN git describe --all --always --long --dirty > /usr/local/repo-commit-verilator
|
&& git describe --all --always --long --dirty > /usr/local/repo-commit-verilator
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN rm -rf /src
|
RUN rm -rf /src
|
||||||
|
|
||||||
@ -140,8 +140,8 @@ RUN rm -rf /src
|
|||||||
|
|
||||||
RUN git clone -b v1.9.1 https://github.com/cocotb/cocotb.git /src
|
RUN git clone -b v1.9.1 https://github.com/cocotb/cocotb.git /src
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN pip install . --break-system-packages
|
RUN pip install . --break-system-packages \
|
||||||
RUN git describe --all --always --long --dirty > /usr/local/repo-commit-cocotb
|
&& git describe --all --always --long --dirty > /usr/local/repo-commit-cocotb
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN rm -rf /src
|
RUN rm -rf /src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user