Skip to content

Commit

Permalink
Merge pull request #1 from pscedu/icaoberg-2025
Browse files Browse the repository at this point in the history
Added version 2.8.11
  • Loading branch information
icaoberg authored Jan 4, 2025
2 parents 5edf771 + dafc163 commit c241af8
Show file tree
Hide file tree
Showing 12 changed files with 139 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:

build:
name: Build
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
singularity_version:
Expand All @@ -15,7 +15,7 @@ jobs:
steps:
- name: Check out code for the container build
uses: actions/checkout@v1

- name: Install useful utilities
run: apk update && apk add --no-cache tree figlet wget

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pretty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Install useful utilities
run: sudo apt-get install -y tree

Expand All @@ -17,7 +17,7 @@ jobs:
if [ -f "$FILE" ]; then
echo "File "$FILE" exists."
exit 0
else
else
echo "File $FILE does not exist."
exit 1
fi
Expand Down
Empty file added 2.2.16/.ignore
Empty file.
31 changes: 31 additions & 0 deletions 2.22.28/Singularity
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Bootstrap: docker
From: debian:latest

%labels
AUTHOR icaoberg
EMAIL [email protected]
SUPPORT [email protected]
REPOSITORY http://gitub.com/pscedu/singularity-aws-cli
COPYRIGHT Copyright © 2021-2025 Pittsburgh Supercomputing Center. All Rights Reserved.
VERSION 2.22.28

%post
apt update
apt install -y curl unzip groff
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
cd aws
./install -i /opt/aws-cli -b /usr/bin
cd ..
rm -f awscliv2.zip
rm -rfv aws

%runscript
/usr/bin/aws "$@"

%test
echo "Testing AWS CLI installation and version..."
if ! command -v aws > /dev/null; then
echo "AWS CLI is not installed or not found in PATH"
exit 1
fi
18 changes: 18 additions & 0 deletions 2.22.28/aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

VERSION=2.22.28
PACKAGE=aws-cli
TOOL=aws
DIRECTORY=$(dirname $0)

STORAGES=(/ocean /bil /hive /local)

OPTIONS=""
for STORAGE in "${STORAGES[@]}"
do
if [ -d "$STORAGE" ]; then
OPTIONS=$OPTIONS" -B $STORAGE"
fi
done

singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif /usr/bin/$TOOL "$@"
19 changes: 19 additions & 0 deletions 2.22.28/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Copyright © 2025 Pittsburgh Supercomputing Center.
# All Rights Reserved.

IMAGE=singularity-aws-cli-2.22.28.sif
DEFINITION=Singularity

if [ -f $IMAGE ]; then
rm -fv $IMAGE
fi

sudo singularity build $IMAGE $DEFINITION

if [ -f $IMAGE ]; then
exit 0
else
exit 1
fi
43 changes: 43 additions & 0 deletions 2.22.28/modulefile.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
--
-- aws-cli 2.22.28 modulefile
--
-- "URL: https://www.psc.edu/resources/software"
-- "Category: Other"
-- "Description: The AWS Command Line Interface (AWS CLI) is a unified tool that provides a consistent interface for interacting with all parts of AWS."

whatis("Name: aws-cli")
whatis("Version: 2.22.28")
whatis("Category: Other")
whatis("URL: https://www.psc.edu/resources/software")
whatis("Description: The AWS Command Line Interface (AWS CLI) is a unified tool that provides a consistent interface for interacting with all parts of AWS.")

help([[
The AWS Command Line Interface (AWS CLI) is a unified tool to manage and automate your interactions with AWS services using command-line scripts. This module provides version 2.22.28 of the AWS CLI.
Features include:
- Managing AWS resources like EC2, S3, Lambda, RDS, and more.
- Automating tasks with scripts and command-line operations.
- Synchronous and asynchronous command execution.
- Cross-platform support.
To load this module, use the following command:
module load aws-cli/2.22.28
To unload this module, use:
module unload aws-cli/2.22.28
Available commands in this module:
* `aws`: The primary AWS CLI tool for executing commands.
For usage details, refer to the official AWS CLI documentation:
https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html
]])

local package = "aws-cli"
local version = "2.22.28"
local base = pathJoin("/opt/packages",package,version)
prepend_path("PATH", base)
19 changes: 19 additions & 0 deletions 2.22.28/rbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Copyright © 2025 Pittsburgh Supercomputing Center.
# All Rights Reserved.

IMAGE=singularity-aws-cli-2.22.28.sif
DEFINITION=Singularity

if [ -f $IMAGE ]; then
rm -fv $IMAGE
fi

singularity build --remote $IMAGE $DEFINITION

if [ -f $IMAGE ]; then
exit 0
else
exit 1
fi
3 changes: 3 additions & 0 deletions 2.22.28/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

singularity run ./singularity-aws-cli-2.22.28.sif help
Empty file added 2.4.17/.ignore
Empty file.
Empty file added 2.8.11/.ignore
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ bash ./test.sh
```

---
Copyright © 2020-2021 Pittsburgh Supercomputing Center. All Rights Reserved.
Copyright © 2020-2025 Pittsburgh Supercomputing Center. All Rights Reserved.

The [Biomedical Applications Group](https://www.psc.edu/biomedical-applications/) at the [Pittsburgh Supercomputing Center](http://www.psc.edu) in the [Mellon College of Science](https://www.cmu.edu/mcs/) at [Carnegie Mellon University](http://www.cmu.edu).

0 comments on commit c241af8

Please sign in to comment.