-
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.
chore: added a mechanism to have specific syntax per OS on custom logic
Signed-off-by: Adrian Riobo Lorenzo <[email protected]>
- Loading branch information
1 parent
1b5a141
commit 7a3cdcc
Showing
9 changed files
with
36 additions
and
4 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 |
---|---|---|
|
@@ -4,6 +4,6 @@ LABEL org.opencontainers.image.authors="Adrian Riobo <[email protected]>" | |
|
||
RUN microdnf install -y openssh-clients sshpass zip jq | ||
|
||
COPY lib/* entrypoint.sh /usr/local/bin/ | ||
COPY lib/common/* lib/os/ entrypoint.sh /usr/local/bin/ | ||
|
||
ENTRYPOINT ["entrypoint.sh"] |
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,4 +1,4 @@ | ||
VERSION ?= 0.0.5 | ||
VERSION ?= 0.0.6 | ||
CONTAINER_MANAGER ?= podman | ||
IMG ?= quay.io/rhqp/deliverest:v${VERSION} | ||
|
||
|
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
File renamed without changes.
File renamed without changes.
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,8 @@ | ||
#!/bin/bash | ||
|
||
# This lib includes common functions with specific syntax for darwin | ||
|
||
# #1 folder name to be removed | ||
remove_folder () { | ||
echo "rm -r ${1}" | ||
} |
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,8 @@ | ||
#!/bin/bash | ||
|
||
# This lib includes common functions with specific syntax for linux | ||
|
||
# #1 folder name to be removed | ||
remove_folder () { | ||
echo "rm -r ${1}" | ||
} |
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,4 @@ | ||
# This file represents the interface os should comply with | ||
|
||
# This will return syntax remove a folder | ||
remove_folder($1 folder name) string |
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,9 @@ | ||
#!/bin/bash | ||
|
||
# This lib includes common functions with specific syntax for windows | ||
|
||
# #1 folder name to be removed | ||
remove_folder () { | ||
echo "Remove-Item \"${1}\" -Recurse -Force" | ||
} | ||
|