-
Notifications
You must be signed in to change notification settings - Fork 10
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
2 changed files
with
105 additions
and
9 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,28 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG LABVIEW_VERSION=2024 | ||
FROM ghcr.io/vipm-io/actions-runner-labview-${LABVIEW_VERSION}-linux:dev | ||
|
||
ARG LABVIEW_BITNESS=64 | ||
ARG VIPC_TIMEOUT=600 | ||
ARG GITHUB_REPOSITORY | ||
|
||
USER labview | ||
ENV USER=labview | ||
ENV GITHUB_REPOSITORY=${GITHUB_REPOSITORY} | ||
|
||
# note that files after the first COPY are optional, which is nice (since might not have a dev.vipc) | ||
# also note that dockerfile doesn't do whitespace characters, which is why we have a * in the COPY command | ||
COPY 'src/JSON Serialization.vipc' ./source.vipc | ||
|
||
# the script below will apply VIPC files, if they are found. | ||
RUN if [ -f dev.vipc ] || [ -f source.vipc ]; then \ | ||
init_labview && \ | ||
echo "Refreshing Package List..." && \ | ||
dragon refresh --vipm && \ | ||
if [ -f source.vipc ]; then \ | ||
echo "Applying VIPC (Library Deps)..." && \ | ||
dragon vipm apply-vipc --labview-version ${LABVIEW_VERSION} --labview-bitness ${LABVIEW_BITNESS} --timeout ${VIPC_TIMEOUT} source.vipc && \ | ||
rm source.vipc; \ | ||
fi; \ | ||
fi |