• docker部署OceanBase

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

    mkdir -p /data/oceanbase/ob mkdir -p /data/oceanbase/obd/ docker run -itd --name oceanbase \ --network=host -p 2881:2881 \ -e MODE=normal -e TZ=Asia/Shanghai \ -v /data/oceanbase/ob/:/root/ob/ \ -v /data/oceanbase/obd/:/root/.obd/ \ oceanbase/oceanbase-ce:4.3.0 查看集群列表 docker exec -it oceanbase obd cluster list 查看obcluster集群状态 docker exec -it oceanbase obd cluster display obcluster

    阅读全文>>

  • Dockerfile部署jar项目

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

    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) 浏览(1072)   分类:破万卷书  

    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 m...

    阅读全文>>