1.准备tomcat7
下载地址:https://tomcat.apache.org/download-70.cgi
下载文件名:tar.gz (pgp, sha512)
2.准备jdk8
下载地址:https://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html
下载文件名:jdk-8u181-linux-i586.tar.gz
3.准备activiti6
下载地址:https://github.com/Activiti/Activiti/releases/download/activiti-6.0.0/activiti-6.0.0.zip
解压activiti-6.0.0.zip
将activiti6.0.0/wars下的activiti-admin.war,activiti-app.war,activiti-rest.war三个文件拷贝到tomcat7/webapps目录下
4.编写Dockerfile文件
FROM centos
MAINTAINER dengyunshuo "dengyunshuo@163.com"
RUN mkdir -p /home/java/jdk8
ADD jdk8 /home/java/jdk8
RUN mkdir -p /home/java/tomcat7
ADD tomcat7 /home/java/tomcat7
ENV JAVA_HOME /home/java/jdk8
ENV CATALINA_HOME /home/java/tomcat7
ENV PATH $PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin
EXPOSE 8080
CMD ["/home/java/tomcat7/bin/catalina.sh","run"]
5.构建镜像
docker build -t activiti5:0.0.1 .
docker images
6.启动容器
docker run -d -p 8081:8080 --name activiti5 activiti5:0.0.1
docker ps -a
7.访问地址
地址:http://localhost:8081/
用户名:admin
密码:test
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。