【问题标题】:Kiwi TCMS under Docker windows issuesDocker windows下的Kiwi TCMS问题
【发布时间】:2019-03-20 05:36:10
【问题描述】:

下面是我的配置:

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

我正在评估这个工具供我个人使用。但问题是我的一些标准端口已经被主机上的 IIS/System 使用。我能够获取 kiwi docker 映像并克隆 GIT 存储库。

由于标准端口已经在使用,我将 docker-compose.yml 文件更改如下:

ports:
        - 90:8080
        - 1443:8443

现在 docker 容器 kiwi_web 已启动并在 1443 端口上成功运行。但是当我访问该页面时,它会显示 Internal Server 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

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

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

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

$ 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$

看来我设法解决了这个问题。

【问题讨论】:

    标签: docker kiwi-tcms


    【解决方案1】:

    看起来像这个https://github.com/kiwitcms/Kiwi/issues/231,我们对此无能为力。这是来自您的 docker 安装的一个神秘错误,因此您最好的选择是在谷歌上搜索它。我们在尝试挂载文件而不是目录时看到了这种错误,但可能是其他原因造成的。

    【讨论】:

      猜你喜欢
      • 2018-07-04
      • 1970-01-01
      • 1970-01-01
      • 2020-02-01
      • 1970-01-01
      • 2023-01-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多