-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved nomad-oasis example to nomad-oasis_files
- Loading branch information
1 parent
cf53403
commit 9444ab8
Showing
7 changed files
with
22 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
Binary file not shown.
File renamed without changes.
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,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
working_dir=$(pwd) | ||
project_dir=$(dirname $(dirname $(dirname $(realpath $0)))) | ||
|
||
cd $project_dir | ||
|
||
# Copy nomad.yaml to the configs directory | ||
cp -rf nomad.yaml nomad-oasis_files/nomad-oasis/configs/nomad.yaml | ||
|
||
# Replace the default docker image path with the actual docker image path | ||
if [[ -n $1 ]]; then | ||
sed -i "s|hampusnasstrom/nomad-example-image|$1|g" nomad-oasis_files/nomad-oasis/docker-compose.yaml | ||
sed -i "s|hampusnasstrom/nomad-example-image|$1|g" README.md | ||
fi | ||
|
||
# Compress the nomad-oasis directory | ||
zip -r nomad-oasis_files/nomad-oasis.zip nomad-oasis_files/nomad-oasis |
This file was deleted.
Oops, something went wrong.