Skip to content

Commit

Permalink
Moved nomad-oasis example to nomad-oasis_files
Browse files Browse the repository at this point in the history
  • Loading branch information
hampusnasstrom committed Feb 26, 2024
1 parent cf53403 commit 9444ab8
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Remember to also update the `nomad.yaml` config file to include the new plugins.
- Make sure you have [docker](https://docs.docker.com/engine/install/) installed.
Docker nowadays comes with `docker compose` build in. Prior, you needed to
install the stand alone [docker-compose](https://docs.docker.com/compose/install/).
- Download the modified configuration files [nomad-oasis.zip](nomad-oasis.zip) from this repository.
- Download the modified configuration files [nomad-oasis.zip](nomad-oasis_files/nomad-oasis.zip) from this repository.
- Run the following commands (skip `chown` on MacOS and Windows computers)


Expand All @@ -37,7 +37,7 @@ systems docker gid. The user id 1000 is used as the nomad user inside all contai

## Adding a plugin

To add a new plugin to the docker image you should add it to the [plugins.txt](https://github.com/hampusnasstrom/nomad-example-image/blob/main/plugins.txt) file.
To add a new plugin to the docker image you should add it to the [plugins.txt](plugins.txt) file.

Here you can put either plugins distributed to PyPI, e.g.
```
Expand Down
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions nomad-oasis_files/scripts/update_nomad_oasis_dir.sh
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
7 changes: 0 additions & 7 deletions scripts/update_nomad_oasis_dir.sh

This file was deleted.

0 comments on commit 9444ab8

Please sign in to comment.