-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ARG TARGET_UBUNTU=ubuntu20.04 | ||
ARG CMAKE_CXX_STANDARD=11 | ||
ARG CMAKE_CXX_STANDARD=14 | ||
FROM icecube/icetray-base:devel-${TARGET_UBUNTU} as install | ||
|
||
MAINTAINER IceCube <[email protected]> | ||
|
@@ -15,15 +15,18 @@ RUN mkdir /root/icetray && mkdir /root/icetray/build | |
|
||
## GitHub clone | ||
## Most recent release.. | ||
ARG VERSION=v1.4.1 | ||
ARG VERSION=v1.7.2 | ||
RUN --mount=type=secret,id=GHTOKEN GHTOKEN=$(cat /run/secrets/GHTOKEN) && \ | ||
git clone -c advice.detachedHead=false --depth 1 -b ${VERSION} https://oauth:${GHTOKEN}@github.com/icecube/icetray.git /usr/local/icetray_src | ||
RUN echo ${VERSION} > /usr/local/icetray_src/version_tag | ||
RUN echo ${CMAKE_CXX_STANDARD} > /usr/local/icetray_src/cxx_standard | ||
|
||
RUN env | sort | ||
|
||
# build icetray | ||
WORKDIR /root/icetray/build | ||
RUN cmake /usr/local/icetray_src \ | ||
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD} \ | ||
-DCMAKE_CXX_STANDARD= \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DINSTALL_TOOL_LIBS=OFF \ | ||
-DCMAKE_INSTALL_PREFIX=/usr/local/icetray \ | ||
|