您好,登錄后才能下訂單哦!
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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。