Docker Windows下的Kiwi TCMS [英] Kiwi TCMS under Docker windows issues

查看:94
本文介绍了Docker Windows下的Kiwi TCMS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的配置:

  • Docker版本18.09.2,内部版本6247962
  • 主机操作系统:Win 10 Pro

我正在评估此工具供个人使用.但是问题是主机上的IIS/系统已经在使用我的某些标准端口.我能够获得猕猴桃码头工人形象,也克隆了GIT仓库.

I am evaluating this tool for my personal use. But the problem is that some of my standard port is already in use either by IIS/System on the host. I was able to get the kiwi docker image and also clone the GIT repo.

由于已经使用了标准端口,因此我更改了docker-compose.yml文件,如下所示:

Since the standard ports are already in use, I changed the docker-compose.yml file as shown below:

ports:
        - 90:8080
        - 1443:8443

现在,docker容器kiwi_web已启动并在1443端口上成功运行.但是当我访问该页面时,它会显示内部服务器错误.我猜这个错误是因为有更多的命令要执行?

Now the docker container kiwi_web is up and running successfully on 1443 port. But it displays Internal Server Error when I visit the page. I guess this error is because more commands to be executed?

根据文档,现在我正在尝试执行下一条命令,这将导致错误.

As per the documentation, now I am trying to execute the next command, which results in an error.

    $ winpty docker exec -it kiwi_web /Kiwi/manage.py migrate
OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"C:/Program Files/Git/Kiwi/manage.py\": stat C:/Program Files/Git/Kiwi/manag
e.py: no such file or directory": unknown

我该怎么办?是的,我正在从克隆的存储库目录中执行此命令.

What should I do? Yes, I am executing this command from the cloned repository directory.

在Windows计算机上是否有更好的说明来执行此活动?

Are there better instructions to do this activity on Windows machines?

更新:我设法找到OIC问题.下面是更改后的命令:

UPDATE: I managed to find the OIC problem issue. Below is the changed command:

$ winpty docker exec -it kiwi_web //bin//sh
sh-4.2$ ls
Kiwi               bin   dev  home              lib    media  opt   root  sbin  sys  usr  venv
anaconda-post.log  boot  etc  httpd-foreground  lib64  mnt    proc  run   srv   tmp  var
sh-4.2$ cd Kiwi/
sh-4.2$ ls
kiwitcms-6.5.3.tar.gz  manage.py  node_modules  package.json  requirements  ssl  static  uploads
sh-4.2$ manage.py migrate
sh: manage.py: command not found
sh-4.2$ ./manage.py migrate
Operations to perform:
  Apply all migrations: admin, attachments, auth, contenttypes, core, django_comments, kiwi_auth, linkreference, manag
ement, sessions, sites, testcases, testplans, testruns
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying attachments.0001_initial... OK
  Applying attachments.0002_auto_20180104_1247... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying sites.0001_initial... OK
  Applying core.0001_squashed... OK
  Applying django_comments.0001_initial... OK
  Applying django_comments.0002_update_user_email_field_length... OK
  Applying django_comments.0003_add_submit_date_index... OK
  Applying kiwi_auth.0001_initial... OK
  Applying management.0003_squashed... OK
  Applying testplans.0005_squashed... OK
  Applying testcases.0001_initial... OK
  Applying testruns.0004_squashed... OK
  Applying linkreference.0001_squashed... OK
  Applying management.0004_remove_sortkey_description... OK
  Applying management.0005_order_by_name... OK
  Applying sessions.0001_initial... OK
  Applying sites.0002_alter_domain_unique... OK
  Applying testcases.0004_squashed... OK
  Applying testcases.0005_remove_unused_fields... OK
  Applying testcases.0006_merge_text_field_into_testcase_model... OK
  Applying testcases.0007_convert_is_automated_to_boolean... OK
  Applying testcases.0008_notifications_default_true... OK
  Applying testplans.0006_remove_testplan_owner... OK
  Applying testplans.0007_notifications_default_true... OK
  Applying testruns.0005_remove_unused_fields... OK
sh-4.2$

好像我设法解决了这个问题.

Looks like I managed to solve the problem.

推荐答案

像这样的一个 https://github.com/kiwitcms/Kiwi/issues/231 ,我们对此无能为力.这是来自docker安装的一个神秘错误,因此最好的选择是在google上找到它.尝试挂载文件而不是目录时,我们已经看到这种错误,但可能是其他原因导致的.

Looks like this one https://github.com/kiwitcms/Kiwi/issues/231 and there isn't anything we can do about it. This is a cryptic error comming from your docker installation so your best bet is to google about it. We've seen this kind of error when trying to mount files instead of directories but there could be other things causing it.

这篇关于Docker Windows下的Kiwi TCMS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆