美文网首页
finebi部署

finebi部署

作者: designer | 来源:发表于2021-03-19 22:28 被阅读0次

一 准备文件夹

image.png

二 docker-entrypoint.sh

#!/bin/bash

export LANG=zh_CN.UTF-8
export LANGUAGE=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
/usr/local/tomcat/bin/catalina.sh run

三 Dockerfile

# set base image
FROM tomcat:8.5.28

# Dockerfile authoer

MAINTAINER fql <1024886296@qq.com>

# 安装apache,ssh, 然后清理apt缓存

COPY sources.list /etc/apt/sources.list

#RUN  sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN  apt-get clean
#RUN apt-get update --fix-missing && apt-get install -y git --fix-missing
RUN apt-get update
RUN apt-get install -y nano locales net-tools
RUN apt-get clean
RUN locale-gen zh_CN.UTF-8
RUN sed -i -e 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/' /etc/locale.gen && locale-gen

# 设置中文
ENV LANG zh_CN.UTF-8
ENV LANGUAGE zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8

##~/fineReport/FineReport/webapps$ docker cp webroot SlaveBI6:/usr/local/tomcat/webapps
COPY FineReport/webapps/webroot /usr/local/tomcat/webapps/webroot
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh

# 容器启动时运行命令
EXPOSE 8080
ENTRYPOINT ["docker-entrypoint.sh"]


四 sources.list

deb http://mirrors.aliyun.com/debian stretch main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free
deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free

相关文章

网友评论

      本文标题:finebi部署

      本文链接:https://www.haomeiwen.com/subject/qhabcltx.html