Posts
read more
How to Set Up Docker on an AWS Ubuntu EC2 Instance
Docker setup on AWS
Choose a Ubuntu AMI rather that Amazon Linux 2 (AL2), because there wasn’t a specific repository for AL2.
Found instructions for installing Docker on AL2 on https://docs.aws.amazon.com/AmazonECS/latest/developerguide/create-container-image.html#create-container-image-prerequisites
Install using the repository
From https://docs.docker.com/engine/install/ubuntu/#set-up-the-repository
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-releaseAdd Docker’s official GPG key:
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgUse the following command to set up the repository:
Posts
read more
How to Install Node.js, TypeScript and AWS CDK on Ubuntu
Install Node.js, Typescript, CDK on Ubuntu
The following is based on https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_prerequisites and https://www.linode.com/docs/guides/how-to-install-use-node-version-manager-nvm/
- Install Node.sh.
sudo apt install node - Install nvm.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash - Run the following to enable nvm without having to log back in.
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion- Switch to Node.js version 16.
nvm install 16 && nvm use 16 - Install TypeScript
npm -g install typescript - Install aws-cdk
npm install -g aws-cdk - Check the CDK version
cdk --version