Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
usrbinkat committed Sep 30, 2024
1 parent 2c21dec commit a208a53
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
55 changes: 55 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,58 @@ FROM ghcr.io/containercraft/devcontainer:latest
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/* \
# && echo

##################################################################################
# Install AWS CLI v2

USER root
RUN echo \
&& ARCH=$(uname -m | awk '{ if ($1 == "x86_64") print "x86_64"; else if ($1 == "aarch64" || $1 == "arm64") print "aarch64"; else print "unknown" }') \
&& NAME="aws" \
&& PKG="awscli-exe-linux-${ARCH}.zip" \
&& URL="https://awscli.amazonaws.com/${PKG}" \
&& DIR="/tmp/awscli" \
&& echo "---------------------------------------------------------"\
&& echo "INFO[${NAME}] Installed:" \
&& echo "INFO[${NAME}] Command: ${NAME}" \
&& echo "INFO[${NAME}] Package: ${PKG}" \
&& echo "INFO[${NAME}] Architecture: ${ARCH}" \
&& echo "INFO[${NAME}] Source: ${URL}" \
&& echo "---------------------------------------------------------"\
&& mkdir -p ${DIR} \
&& curl -L ${URL} --output ${DIR}/${PKG} \
&& unzip ${DIR}/${PKG} -d ${DIR} \
&& bash ${DIR}/aws/install \
&& rm -rf ${DIR} \
&& aws --version \
&& echo
USER vscode

###################################################################################
## Install Google Cloud SDK
#
#ENV CLOUDSDK_INSTALL_DIR /usr/local/gcloud/
#ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
#
#USER root
#RUN echo \
# && export ARCH=$(uname -m | awk '{ if ($1 == "x86_64") print "amd64"; else if ($1 == "aarch64" || $1 == "arm64") print "arm64"; else print "unknown" }') \
# && export NAME="gcloud" \
# && export TEST="${NAME} version" \
# && export PKG="google-cloud-sdk.tar.gz" \
# && export URL="https://dl.google.com/dl/cloudsdk/release/${PKG}" \
# && export DIR="/usr/local/gcloud" \
# && echo "---------------------------------------------------------"\
# && echo "INFO[${NAME}] Installed:" \
# && echo "INFO[${NAME}] Command: ${NAME}" \
# && echo "INFO[${NAME}] Package: ${PKG}" \
# && echo "INFO[${NAME}] Architecture: ${ARCH}" \
# && echo "INFO[${NAME}] Source: ${URL}" \
# && echo "---------------------------------------------------------"\
# && mkdir -p ${DIR} \
# && ${curl} ${URL} | tar xzvf - --directory ${DIR} \
# && /usr/local/gcloud/google-cloud-sdk/install.sh -q \
# && ${dir_clean} \
# && ${TEST} \
# && echo
#USER vscode
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export BROWSER=echo
##################################################################################
# Pulumi Environment Variables
# - https://www.pulumi.com/docs/cli/environment-variables
export PULUMI_HOME=$PWD/.pulumi
#export PULUMI_HOME=$PWD/.pulumi
export PULUMI_SKIP_UPDATE_CHECK=true
export PULUMI_SKIP_CONFIRMATIONS=true
export PULUMI_AUTOMATION_API_SKIP_VERSION_CHECK=true
Expand Down

0 comments on commit a208a53

Please sign in to comment.