mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 06:05:29 -04:00
Docker: Make AiiDA test less broken
This commit is contained in:
parent
f3e2b45219
commit
c75b9cced4
1 changed files with 11 additions and 2 deletions
|
|
@ -19,6 +19,8 @@ apt-get install -qq --no-install-recommends \
|
|||
postgresql \
|
||||
libpq-dev \
|
||||
rabbitmq-server \
|
||||
locales \
|
||||
plocate \
|
||||
sudo \
|
||||
git \
|
||||
ssh
|
||||
|
|
@ -57,13 +59,20 @@ service rabbitmq-server start
|
|||
# start and configure PostgreSQL
|
||||
service postgresql start
|
||||
|
||||
# create aiida profile
|
||||
$AS_UBUNTU_USER /opt/venv/bin/verdi presto
|
||||
|
||||
# fake the presents of conda
|
||||
ln -s /bin/true /usr/bin/conda
|
||||
|
||||
# setup code
|
||||
cat > /usr/bin/cp2k << EndOfMessage
|
||||
mkdir -p /opt/conda/envs/cp2k/bin/
|
||||
cat > /opt/conda/envs/cp2k/bin/cp2k.psmp << EndOfMessage
|
||||
#!/bin/bash -e
|
||||
export OMP_NUM_THREADS=2
|
||||
/opt/cp2k/build/bin/cp2k.ssmp "\$@"
|
||||
EndOfMessage
|
||||
chmod +x /usr/bin/cp2k
|
||||
chmod +x /opt/conda/envs/cp2k/bin/cp2k.psmp
|
||||
|
||||
echo -e "\n========== Running AiiDA-CP2K Tests =========="
|
||||
set +e # disable error trapping for remainder of script
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue