Developers
New Developers
Developers
New Developers
Please set the development environment.
Tomcat, MySQL, Redis,
Node .... etc
You can spread it.
Developers
New Developers
Yep!
Finished!
Developers
New Developers
How do you spread this?
Here is the error message.
Can the version be xx?
I was able to distribute it well and I got an error.
Please set a new person too!
I did what you told me.
How do I debug?
Developers
New Developers
How do you spread this?
Here is the error message.
Can the version be xx?
I was able to distribute it well and it was an error ..
Please set a new person too!
I did what you said.
How do I debug?
Docker
Docker-made
$ docker run [OPTIONS] IMAGE_NAME [COMMAND] [ARG...]
I am container!
$ docker run [OPTIONS] IMAGE_NAME[COMMAND][ARG...]
$ docker run [OPTIONS] IMAGE_NAME[COMMAND][ARG...]
$ docker run [OPTIONS] IMAGE_NAME[COMMAND][ARG...]
$ docker run [OPTIONS] IMAGE_NAME[COMMAND][ARG...]
$ docker run [OPTIONS] IMAGE_NAME[COMMAND][ARG...]
Multi-container
.
------------------------------ web container
------------- redis container
- Development environments
- Automated testing environments
- Single host deployments
- using in docker swarm
- Development environments
- Automated testing environments
- Single host deployments
- using in docker swarm
Try applying docker-compose to existing project
1. UI Project ( Application Context : "/" ) - Spring MVC
2. API Project ( Application Context : "/api" ) - Spring MVC
3. Admin Project ( Application Context : "/admin" ) - Spring MVC
Client ( / )
Fire (/ api)
Admin (/ admin)
WAS ( Tomcat )
Database
( MySQL )
Client ( / )
Fire (/ api)
Admin (/ admin)
WAS ( Tomcat )
Database
( MySQL )
Location of MySQL Dockerfile
Location of Tomcat Dockerfile
MySQL
MySQL
Tomcat
MySQL
Tomcat
MySQL
Tomcat
127.0.0.1:3306 !!!
??????
MySQL
Tomcat
registration-database:3306 !!!
!!!!!!
Developers
New Developers
Developers
New Developers
$ docker-compose up
Please
Vagrant 란?
Using Virtual Box ...
Using Virtual Box ...
Using Virtual Box ...
Using Virtual Box ...
Vagrant
Provisioning
etc...
Providers
Apply vagrant to existing project
Client ( / )
Fire (/ api)
Admin (/ admin)
WAS ( Tomcat )
Database
( MySQL )
setup.sh
1. Install Java 8
2. Install Tomcat 8.0.x
3. Installing MySQL 5.6.x
startup.sh
1. Tomcat, MySQL run !
Developers
New Developers
Developers
New Developers
$ vagrant up
Please
Docker-compose vs Vagrant
Docker for Mac can not ping the container from the docker host.
172.18.0.2
MySQL
172.18.0.2:3306 !!!
MySQL
?????
127.0.0.1:3306 !!!
MySQL
!!!!
Docker for Mac can not ping the container from the docker host.
vagrant
Real Server
Deploy
Tomcat
MySQL
Tomcat
MySQL
But perhaps the most important thing ...
Comfort