-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
da5ef30
commit 1f38f40
Showing
3 changed files
with
49 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,14 @@ | ||
environments: | ||
dev: | ||
variables: | ||
- name: MY_APP_HOST | ||
value: "localhost" | ||
|
||
prod: | ||
variables: | ||
- name: MY_APP_HOST | ||
value: "prod" | ||
|
||
config: | ||
default: | ||
environment: dev |
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,7 @@ | ||
FROM debian:12.5-slim | ||
|
||
RUN apt update && apt install -y bash dash zsh fish ksh tcsh csh curl unzip | ||
|
||
RUN curl -L "https://github.com/PierreBeucher/novops/releases/download/v0.12.0/novops-X64-Linux.zip" -o novops.zip && \ | ||
unzip novops.zip && \ | ||
mv novops /usr/local/bin/novops |
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 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# Manual script to test various shells | ||
# | ||
|
||
set -ex | ||
|
||
cur_dir="$(dirname $0)" | ||
podman build -f "${cur_dir}/Containerfile.shells" -t novops-shells-test:local | ||
|
||
# Test novops with various shells | ||
|
||
function test_novops_shell() { | ||
podman run -it --rm \ | ||
-v "./${cur_dir}/.novops.yml:/app/.novops.yml" \ | ||
-w /app \ | ||
--entrypoint "$1" \ | ||
novops-shells-test:local | ||
# -c 'source <(novops load) && env | grep "^MY_APP_HOST=localhost$"' | ||
} | ||
|
||
test_novops_shell bash | ||
test_novops_shell dash | ||
test_novops_shell zsh | ||
test_novops_shell fish | ||
test_novops_shell tcsh | ||
test_novops_shell csh |