Skip to content

This Repo Contains Analysis Code for Network Tracing

License

Notifications You must be signed in to change notification settings

jgockley62/networktracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Igraph Sandbox

Install Git, Docker, and Docker-Compose if needed

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

Setup The Git Repo

git clone https://github.com/jgockley62/networktracing.git
cd networktracing

Start Docker

sudo service docker start
sudo usermod -aG docker <USR_ID>

Build RStudio Images

#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/.

Build the envronment object containing login credentials

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

Build Containers


docker-compose up -d

Ported Browser Access

RStudio Instance Available at: https://:8787

Caddy Proxy Login to Access Cytoscape NoVNC VIM Available at: https://:6080

Shut Containers Down


docker-compose down -v

Deprecated code


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

About

This Repo Contains Analysis Code for Network Tracing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published