-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: create a separate docker Image based on the gr4 build image for n…
…ot having to build all dependencies each time
- Loading branch information
Showing
2 changed files
with
97 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM ghcr.io/fair-acc/gr4-build-container:latest | ||
LABEL authors="akrimm" | ||
|
||
# Install pkg-config | ||
RUN sudo apt-get update && sudo apt-get -y install build-essential pkg-config && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Install timing system dependencies: etherbone" | ||
RUN sudo apt-get -y install build-essential autoconf automake libtool \ | ||
&& git clone --branch v2.1.3 --depth=1 https://ohwr.org/project/etherbone-core.git \ | ||
&& cd etherbone-core/api \ | ||
&& touch ChangeLog \ | ||
&& sed -e "s%AC_MSG_ERROR%AC_MSG_NOTICE%g" -i configure.ac \ | ||
&& autoreconf -i \ | ||
&& ./configure \ | ||
&& make -j \ | ||
&& sudo make install | ||
|
||
# Install timing system dependencies: saftlib" | ||
RUN sudo apt-get -y install libsigc++-2.0-dev libxslt1-dev libboost-all-dev \ | ||
&& git clone --branch v3.0.3 --depth=1 https://github.com/GSI-CS-CO/saftlib.git \ | ||
&& cd saftlib \ | ||
&& ./autogen.sh \ | ||
&& ./configure \ | ||
&& make \ | ||
&& sudo make install \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install picoscope libraries https://www.picotech.com/downloads/linux | ||
RUN wget -O - https://labs.picotech.com/Release.gpg.key|sudo apt-key add - \ | ||
&& sudo add-apt-repository 'deb https://labs.picotech.com/rc/picoscope7/debian/ picoscope main' \ | ||
&& sudo apt update \ | ||
&& ( sudo apt install -y udev libusb-1.0-0-dev libps3000a libps4000a libps5000a libps6000 libps6000a libx11-dev libgl1-mesa-dev libsdl2-dev || true ) \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
USER user | ||
ENTRYPOINT ["/bin/bash", "-c"] |