Skip to content

Commit

Permalink
feat(awsbatch): install aws CLI in a portable location with `minico…
Browse files Browse the repository at this point in the history
…nda`
  • Loading branch information
mehalter committed Oct 2, 2024
1 parent 82c4f5e commit 3cc7b84
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nextflow.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ami_name_prefix = "nextflow"
additional_packages = "java-21-amazon-corretto-devel bzip2"
additional_packages = "java-21-amazon-corretto-devel"
7 changes: 7 additions & 0 deletions scripts/additional-scripts/awsbatch/01-install-awscli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -ex

curl -L https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh
bash miniconda.sh -b -f -p ~/miniconda
~/miniconda/bin/conda install -c conda-forge -y awscli=2.17.63
rm miniconda.sh
2 changes: 1 addition & 1 deletion variables.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ packer {
}

locals {
packages = "amazon-efs-utils amazon-ssm-agent amazon-ec2-net-utils acpid tmux"
packages = "amazon-efs-utils amazon-ssm-agent amazon-ec2-net-utils acpid bzip2 tmux"
}

variable "additional_packages" {
Expand Down

0 comments on commit 3cc7b84

Please sign in to comment.