fpga-build: add osmo-ci

Clone osmo-ci.git, and install all files from scripts/* to
/usr/local/bin.

Related: OS#4911
Change-Id: I3625d6f10e566101fb25963757da6827670ca41b
This commit is contained in:
Oliver Smith 2021-01-13 11:17:05 +01:00
parent 26003afcbc
commit b68cfd7fa9
1 changed files with 8 additions and 0 deletions

View File

@ -41,3 +41,11 @@ RUN chown build:build /build
RUN echo "PATH=/opt/fpga-toolchain/bin:/opt/xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}/bin:\$PATH" >> /etc/environment
ENV PATH=/opt/fpga-toolchain/bin:/opt/xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}/bin:${PATH}
# Install osmo-ci.git/scripts to /usr/local/bin
ADD http://git.osmocom.org/osmo-ci/patch /tmp/osmo-ci-commit
RUN git clone https://git.osmocom.org/osmo-ci osmo-ci && \
cp -v $(find osmo-ci/scripts \
-maxdepth 1 \
-type f ) \
/usr/local/bin