-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM efrecon/runner-krunvm.base:main | ||
|
||
ARG INSTALL_VERSION=latest | ||
ARG INSTALL_NAMESPACE=/opt/gh-runner-krunvm | ||
|
||
COPY runner/*.sh ${INSTALL_NAMESPACE}/bin/ | ||
RUN chmod a+x "${INSTALL_NAMESPACE}/bin/*.sh" \ | ||
&& "${INSTALL_NAMESPACE}/bin/install.sh" -v -l /dev/stdout | ||
|
||
ENTRYPOINT ["${INSTALL_NAMESPACE}/bin/entrypoint.sh"] | ||
CMD ["./bin/Runner.Listener", "run", "--startuptype", "service"] |
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,27 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
# shellcheck shell=sh | ||
|
||
# Shell sanity. Stop on errors and undefined variables. | ||
set -eu | ||
|
||
# This is a readlink -f implementation so this script can (perhaps) run on MacOS | ||
abspath() { | ||
is_abspath() { | ||
case "$1" in | ||
/* | ~*) true;; | ||
*) false;; | ||
esac | ||
} | ||
|
||
if [ -d "$1" ]; then | ||
( cd -P -- "$1" && pwd -P ) | ||
elif [ -L "$1" ]; then | ||
if is_abspath "$(readlink "$1")"; then | ||
abspath "$(readlink "$1")" | ||
else | ||
abspath "$(dirname "$1")/$(readlink "$1")" | ||
fi | ||
else | ||
printf %s\\n "$(abspath "$(dirname "$1")")/$(basename "$1")" | ||
fi | ||
} |