美文网首页
Activiti Cloud在docker上搭建

Activiti Cloud在docker上搭建

作者: 小石头_ | 来源:发表于2018-07-03 21:46 被阅读0次

    1、前置条件是系统上安装了docker和git

    [root@localhost ~]# git version

    git version 1.8.3.1

    2、从github上拉取代码

    [root@localhost src]# git clone https://github.com/Activiti/activiti-cloud-examples

    Cloning into 'activiti-cloud-examples'...

    remote: Counting objects: 2509, done.

    remote: Compressing objects: 100% (5/5), done.

    remote: Total 2509 (delta 1), reused 1 (delta 1), pack-reused 2503

    Receiving objects: 100% (2509/2509), 485.16 KiB | 15.00 KiB/s, done.

    Resolving deltas: 100% (1075/1075), done.

    3、进入项目docker的目录

    [root@localhost src]# mv activiti-cloud-examples acticitiCloud

    [root@localhost src]# cd acticitiCloud/

    [root@localhost acticitiCloud]# cd docker/

    [root@localhost docker]# ll

    total 16

    -rw-r--r--. 1 root root 3137 Jul  3 08:37 application-docker-compose.yml

    drwxr-xr-x. 2 root root  91 Jul  3 08:37 config-server

    -rw-r--r--. 1 root root  422 Jul  3 08:37 frontend-docker-compose.yml

    -rw-r--r--. 1 root root  710 Jul  3 08:37 infrastructure-docker-compose.yml

    -rw-r--r--. 1 root root  379 Jul  3 08:37 modelling-docker-compose.yml

    [root@localhost docker]#

    4、问题,docker-compose: command not found

    [root@localhost docker]# docker-compose -f infrastructure-docker-compose.yml up -d

    -bash: docker-compose: command not found

    解决方案:

    [root@localhost docker]# yum -y install epel-release

    [root@localhost docker]# yum -y install python-pip

    [root@localhost docker]# pip install --upgrade pip

    [root@localhost docker]# pip install docker-compose

    5、执行(等待时间够长的):docker-compose -f infrastructure-docker-compose.yml up -d

    [root@localhost docker]# docker-compose -f infrastructure-docker-compose.yml up -d

    6、执行(等待的时间还是长,哈哈):docker-compose -f application-docker-compose.yml up -d

    [root@localhost docker]# docker-compose -f application-docker-compose.yml up -d

    7、执行命令:docker ps,找出访问登录的端口,我这里的访问端口是8180

    8、访问我这里的地址:http://192.168.56.120:8180/auth/;官方的文档说的地址端口是:3000(感觉不对,我哭)

    9、点击Administration Console

    10、登录的帐号密码是:admin/admin;官方文档是说的:Login with testuser/password(我试了好久,累死我了。)

    11、获取镜像:docker pull activiti/activiti-cloud-demo-ui:7-201802-EA

    # 启动下载下来的镜像

    docker run -p 3000:3000 -d -e "ACT_GATEWAY_URL=http://localhost:8080" -e "ACT_IDM_URL=http://localhost:8180/auth/token" activiti/activiti-cloud-demo-ui:7-201802-EA

    相关文章

      网友评论

          本文标题:Activiti Cloud在docker上搭建

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