#Docker IMAGE of my WebServices
This Project will allow you to migrate that WebService into a docker container instance, that acts as a more portable and modular framework for hosting services.
##STEPS TO RUN THE IMAGE:
DOWNLOAD THE IMAGE FROM THE URL
###https://drive.google.com/open?id=0B_ekJ5IfVKtXZl9NNG5kWW8zSHc :->>IMAGE LOCATION
-
Install the docker in aws environment. Install (as root): $sudo yum update -y
$sudo yum install -y docker
$ sudo service docker start
$ sudo usermod -a -G docker ec2-user
Start the docker service (as root): service docker start -
Docker load -i webserver.tar
//new image will be created and displays the container id. -
Copy the newly created IMAGEid (visible below the docker load command).
-
Docker run -d -p 8081:80 <<//copied IMAGEid>>
-
Check in the browser with your instance ip.
##PROCESS FOLLOWED FOR BUILDING DOCKER IMAGE
- AMAZON Linux Instance is launched
2. Install Docker
3. Followed steps present in here http://codeomitted.com/deploy-war-file-to-docker-image/
4. Entered the Bash for the base container created using
$ docker exec -it /createdcontainerId/ bash
$ apt-get update //updates packages
$ apt-get install vim //installs Vim editor
5. Changing portfrom 8080 to 80 in /confi/server.xml
6. exit from bash
7. Checking in URL at port 80.
###DONE