/j360-docker

j360-boot系列在docker中的发布使用

j360-docker

j360系列集成spring-docker 使用docker集成j360-boot.jar/j360-boot.war jdk1.7-x64因为太大不上传,自行下载放到soft目录下

##j360-simple## docker-simple/Dockerfile

##j360-simplewar## docker-simplewar/Dockerfile

##j360-standard##

  • j360-standard需要redis服务器 docker-standard/Dockerfile

==================== 发布执行

##服务器安装git## you cannot ADD ../something /something, because the first step of a docker build is to send the context directory (and subdirectories) to the docker daemon. 所以执行前需要执行cp

##执行docker##

##执行redis,用于测试redis用##

  • 这个redis用于j360-standard测试用的,可放到虚拟机当中,修改application.properties中的redis路径为虚拟机的ip即可
  • cp -f ../soft/redis-3.0.4.gz .
  • docker run -d -p 6379:6379 redis/j360
  • cd docker-redis
  • docker build -t redis/j360 .
  • docker run -d -p 6379:6379 redis/j360

##执行simple##

  • cd docker-simple
  • cp -f ../jdk-7u80-linux-x64.tar.gz .
  • docker build -t simple/j360 .
  • docker run -d -p 8080:8000 simple/j360
  • curl http://192.168.247.128:8000/hello -> hello

##执行standard##

  • cp -f ../apache-tomcat-7.0.63.tar.gz .

  • cp -f ../jdk-7u80-linux-x64.tar.gz .

  • 修改application.properties中的redis路径为localhost

  • cd docker-standard

  • docker build -t standard/j360 .

  • docker run -d -p 8080:9000 standard/j360

  • curl http://192.168.247.128:9000/