-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 parent
5f43c45
commit 3ed5a8c
Showing
6 changed files
with
47 additions
and
335 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 was deleted.
Oops, something went wrong.
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
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,23 @@ | ||
# syntax=docker/dockerfile:1.2 | ||
|
||
FROM redhat/ubi9 as builder | ||
|
||
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | ||
RUN yum install -y socat g++ libstdc++-static cmake git openssl-devel python3-devel file libmodbus libmodbus-devel | ||
|
||
RUN git clone --recurse-submodules https://github.com/neilstephens/opendatacon.git | ||
ARG BUILD_COMMIT=develop | ||
RUN git -C opendatacon checkout $BUILD_COMMIT | ||
|
||
ARG BUILD_TYPE=Release | ||
RUN mkdir opendatacon-build | ||
|
||
RUN cmake -DFULL=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_SYSTEM_VERSION=rhel9 \ | ||
-DOPENSSL_ROOT_DIR=/usr/ -S opendatacon -B opendatacon-build | ||
|
||
RUN cmake --build opendatacon-build --parallel 8 | ||
RUN cmake --build opendatacon-build --target install | ||
RUN cmake --build opendatacon-build --target package | ||
|
||
FROM scratch AS export-stage | ||
COPY --from=builder opendatacon-build/opendatacon*.sh / |
Oops, something went wrong.