Skip to content

Instantly share code, notes, and snippets.

@jwgstr
jwgstr / gist:4dcc9f16c52529486de0f6fa78c55aef
Created May 24, 2022 18:42
An Example of a Dockerfile for Lambda Running Python 3.10.4
ARG FUNCTION_DIR="/app/"
ARG AWS_LINUX_VERSION="2022"
ARG PYTHON_VERSION="3.10.4"
FROM amazonlinux:${AWS_LINUX_VERSION} as python-layer
ARG PYTHON_VERSION
# install python
@jwgstr
jwgstr / stratus_bash_completion
Created July 14, 2011 21:04
Stratus Bash Completion
_stratus()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="exec list list-storage create-formatted-snapshot"
if [[ ${prev} == stratus ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0