-
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
1 parent
95c8c0d
commit f6b472b
Showing
10 changed files
with
71 additions
and
11 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ RUN apt-get update && apt-get install -y git openssh-client && rm -rf /var/lib/a | |
# Download and install AiiDA plugin for MarketPlace UC3 | ||
RUN git config --global user.name "MarketPlace" && git config --global user.email "[email protected]" | ||
RUN mkdir -p /marketplace | ||
RUN --mount=type=secret,id=mp_gitlab_token git clone "https://token:$(cat /run/secrets/mp_gitlab_token)@gitlab.cc-asp.fraunhofer.de/Daniel.Marchand/aiida-marketusercase3.git" /marketplace/aiida-marketusercase3 | ||
RUN git clone [email protected]:daniel-sintef/aiida-marketusercase3.git /marketplace/aiida-marketusercase3 | ||
RUN pip install -e /marketplace/aiida-marketusercase3 && reentry scan | ||
|
||
# Copy in UC3 App | ||
|
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 |
---|---|---|
|
@@ -3,10 +3,10 @@ FROM aiidalab/aiidalab-docker-stack:latest | |
RUN apt-get update && apt-get install -y git openssh-client && rm -rf /var/lib/apt/lists/* | ||
|
||
# Download and install AiiDA plugin for MarketPlace UC3 | ||
RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.cc-asp.fraunhofer.de >> ~/.ssh/known_hosts | ||
RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
RUN git config --global user.name "MarketPlace" && git config --global user.email "[email protected]" | ||
RUN mkdir -p /marketplace | ||
RUN --mount=type=ssh git clone git@gitlab.cc-asp.fraunhofer.de:Daniel.Marchand/aiida-marketusercase3.git /marketplace/aiida-marketusercase3 | ||
RUN --mount=type=ssh git clone 'git@github.com:daniel-sintef/aiida-marketusercase3.git' /marketplace/aiida-marketusercase3 | ||
RUN pip install -e /marketplace/aiida-marketusercase3 && reentry scan | ||
|
||
# Copy in UC3 App | ||
|
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,17 @@ | ||
if [ -f "/home/aiida/.ssh/config" ]; then | ||
cat /home/aiida/apps/aiidalab-mp-uc3/sshfiles/config >> /home/aiida/.ssh/config | ||
else | ||
cp /home/aiida/apps/aiidalab-mp-uc3/sshfiles/config /home/aiida/.ssh/ | ||
fi | ||
|
||
# I'm certain smarter use of options would mean we can bypass copying the known_hosts | ||
# AiiDA's AutoAdd policy *should* handle this, but doesn't... | ||
if [ -f "/home/aiida/.ssh/known_hosts" ]; then | ||
cat /home/aiida/apps/aiidalab-mp-uc3/sshfiles/known_hosts >> /home/aiida/.ssh/known_hosts | ||
else | ||
cp /home/aiida/apps/aiidalab-mp-uc3/sshfiles/known_hosts /home/aiida/.ssh/ | ||
fi | ||
|
||
verdi computer setup --config /home/aiida/apps/aiidalab-mp-uc3/setup_files/droplet/computer_setup.yml | ||
verdi computer configure ssh --config /home/aiida/apps/aiidalab-mp-uc3/setup_files/droplet/computer_configure.yml droplet | ||
verdi code setup --config /home/aiida/apps/aiidalab-mp-uc3/setup_files/droplet/code_setup.yml |
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 @@ | ||
label: "FSP-dummy" | ||
description: "Dummy Flame spray code " | ||
input_plugin: "dummy_marketuc3" | ||
on_computer: true | ||
remote_abs_path: "/home/aiida/bin/wait_watch.sh" | ||
computer: "droplet" | ||
prepend_text: "" | ||
append_text: "" |
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,17 @@ | ||
username: "root" | ||
port: 22 | ||
look_for_keys: True | ||
key_filename: "/home/aiida/.ssh/aiidalabkey" | ||
timeout: 60 | ||
allow_agent: True | ||
proxy_jump: "" | ||
proxy_command: "" | ||
compress: True | ||
gss_auth: False | ||
gss_kex: False | ||
gss_deleg_creds: False | ||
gss_host: "" | ||
load_system_host_keys: True | ||
key_policy: "AutoAddPolicy" | ||
use_login_shell: True | ||
safe_interval: 30.0 |
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 @@ | ||
label: droplet | ||
hostname: 161.35.206.72 | ||
description: "droplet instance" | ||
transport: "ssh" | ||
scheduler: "direct" | ||
shebang: "#!/bin/bash" | ||
work_dir: "/home/aiida" | ||
mpirun_command: "run -np {tot_num_mpiprocs}" | ||
mpiprocs_per_machine: 1 | ||
prepend_text: " " | ||
append_text: " " |
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
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
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
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