Closed sierra-moxon closed 1 year ago
name: go-fastapi-dev (on bbop AWS, Virginia - us-east-1) EC2 m2.xlarge with 20G of disk security group - default + custom TCP to anywhere (port 8080) ssh key group is: sierra-goapi-bbop-dev.pem, user is ubuntu
ubuntu
after spinning up the EC2 instance
ubuntu@ip-10-0-1-220:~/go-fastapi$ history 1 exit 2 export HISTSIZE=1000 3 sudo apt-get remove docker docker-engine docker.io containerd runc 4 sudo apt-get update 5 sudo apt-get install ca-certificates curl gnupg 6 sudo mkdir -m 0755 -p /etc/apt/keyrings 7 echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null 8 sudo apt-get update 9 sudo chmod a+r /etc/apt/keyrings/docker.gpg 10 sudo apt-get update 11 which git 12 git clone https://github.com/geneontology/go-fastapi 13 docker build -t geneontology/go-fastapi . 14 sudo docker build -t geneontology/go-fastapi . 15 cd go-fastapi/ 16 sudo docker build -t geneontology/go-fastapi . 17 sudo docker run -p 8080:8080 geneontology/go-fastapi
API can be accessed here: http://ec2-54-158-128-3.compute-1.amazonaws.com:8080/docs
name: go-fastapi-dev (on bbop AWS, Virginia - us-east-1) EC2 m2.xlarge with 20G of disk security group - default + custom TCP to anywhere (port 8080) ssh key group is: sierra-goapi-bbop-dev.pem, user is
ubuntu
after spinning up the EC2 instance
API can be accessed here: http://ec2-54-158-128-3.compute-1.amazonaws.com:8080/docs