generated from dabble-of-devops-bioanalyze/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
34 additions
and
4 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,28 @@ | ||
# https://aws.amazon.com/blogs/hpc/custom-amis-with-parallelcluster-3/ | ||
name: Gromacs | ||
description: This is a sample component to show how to install spack and gromacs. | ||
schemaVersion: 1.0 | ||
|
||
phases: | ||
- name: build | ||
steps: | ||
- name: spackInstallation | ||
action: ExecuteBash | ||
inputs: | ||
commands: | ||
- | | ||
set -v | ||
# Install latest spack release | ||
export SPACK_ROOT=/opt/spack | ||
mkdir -p ${SPACK_ROOT} | ||
git clone https://github.com/spack/spack.git ${SPACK_ROOT} | ||
cd ${SPACK_ROOT} | ||
echo "export SPACK_ROOT=$SPACK_ROOT" > /etc/profile.d/spack.sh | ||
echo "source $SPACK_ROOT/share/spack/setup-env.sh" >> /etc/profile.d/spack.sh | ||
source ${SPACK_ROOT}/share/spack/setup-env.sh | ||
# Install some spack packages | ||
spack install gromacs | ||
spack install openfoam | ||
spack install lampps |
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