• Dockerfile部署jar项目

    发布于:2020-05-07 作者:Garany 评论(0) 引用(0) 浏览(481)   分类:破万卷书  

    1.Dockerfile # vim Dockerfile FROM java:8 ENV LANG en_US.UTF-8 ENV LC_ALL en_US.UTF-8 RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone COPY trip-eureka-1.0.jar /app/eureka.jar EXPOSE 8761 ENTRYPOINT ["java","-Xms512m","-Xmx512m","-Xss256k","-Dlogging.file=/swallow/log/eureka.log","-jar","/app/eureka.jar"] 2.docker build # docker build -t eureka . 3.docker run # docker run -itd --name eureka -p 8080:8761 -v /swallow/log/eureka.log:/s...

    阅读全文>>

  • Dockerfile_lnmp

    发布于:2017-07-14 作者:Garany 评论(1) 引用(0) 浏览(543)   分类:破万卷书  

    1.准备文件 # pwd /data # tree ./ -L 2 ./ ├── docker │   ├── dockerfile │   ├── lnmp.sh │   └── ser1.conf └── lnmp ├── mysql └── web 4 directories, 3 files 2.dockerfile文件 # vim docker/dockerfile FROM centos:6 MAINTAINER garany@qq.com RUN rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm \ && yum install nginx mysql mysql-server mysql-devel php-fpm php-mysql -y \ && rm -rf /...

    阅读全文>>