This is configured for AWS EC-2 instance
sudo yum install -y git
git version
sudo amazon-linux-extras install docker
docker version
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
git clone https://github.com/jgockley62/networktracing.git
cd networktracing
sudo service docker start
sudo chmod 666 /var/run/docker.sock
sudo usermod -aG docker $USER
#RStudio
docker image build -t network ~/networktracing/Docker/
#Cytoscape Linux VIM
docker pull biodepot/novnc-cynetworkbma
#Caddy proxy https login
docker build -t cyto-caddy caddy/.
This example will create the user name of both IP's as jgockley and the password as test
#Copy the scratch environment file into the used .env file
sudo cp ENV_Scratch .env
#Insert the hashed the password for the caddy image
sudo sed -i "s/hash/$(docker run --rm -it cyto-caddy caddy hash-password -plaintext 'test')/" .env
#Insert the User name
sudo sed -i "s/user/jgockley/" .env
#Insert the RStudio Password
sudo sed -i "s/pass/test/" .env
#Add the values to the env
HASH=$(docker run --rm -it cyto-caddy caddy hash-password -plaintext 'test')
USER=ssm-user
PASS=test
docker-compose up -d
RStudio Instance Available at: https://:8787
Caddy Proxy Login to Access Cytoscape NoVNC VIM Available at: https://:6080
docker-compose down -v
docker run -v "~/networktracing/:~/networktracing/" -e USER=<USERID> -e PASSWORD=<PassWD> -d -p 8787:8787 <ImageID>
docker run -v /home/jgockley/networktracing:/home/jgockley/networktracing -d -p 6080:6080 biodepot/novnc-cynetworkbma