Setup an EC2 AWS instance with Git, Python (Miniconda), Emacs, and aliases in ~/.bash_profile
- Install git
sudo apt-get install -y python-software-properties && \
# http://lifeonubuntu.com/upgrading-ubuntu-to-use-the-latest-git-version/
sudo add-apt-repository -y ppa:git-core/ppa && \
sudo apt-get update && \
sudo apt-get install -y git && \
git --version
- Create SSH key and add it to GitHub account
ssh-keygen -t rsa -q -N "" -f ~/.ssh/id_rsa && cat ~/.ssh/id_rsa.pub
- Clone repo with setup script
mkdir proj && cd proj && git clone [email protected]:druogury/aws-ec2-setup.git
- Run install scripts
cd ~/proj/aws-ec2-setup/ && ./setup_ec2.bash
- Clone working repo
# cd ~/proj && git clone [email protected]:druogury/apps-embedding.git
cd ~/proj && git clone [email protected]:Ogury/lab-apps-iab-categorization.git
-
Install Docker following the script
-
Download the Docker image
sudo docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PWD
sudo docker pull drudocker/ogury-dev-tools
- Run a Docker container inside a tmux
tmux new -s dckr
sudo docker run -it drudocker/ogury-dev-tools /bin/bash
sudo shutdown now