无法在 alpine docker 映像中运行我的 exe 文件

Can't run my exe file in alpine docker image

提问人:sekerbekova 提问时间:10/26/2023 更新时间:10/26/2023 访问量:18

问:

我正在尝试在 gitlab ci-cd 中创建 doxygen 文档页面

我的.gitlab-ci.yml文件如下所示:

image: alpine 

pages:
  script:
    - apk update
    - apk add doxygen
    - doxygen Doxyfile

  artifacts:
    paths:
      - public

它可以工作,但它下载了一个旧版本的 doxygen,我需要一个具有最新功能的最新版本

所以我尝试以 zip 格式下载二进制文件并解压缩

image: alpine 

pages:
  script:
    - apk update
    - apk add zip
    - wget "https://www.doxygen.nl/files/doxygen-1.9.8.windows.x64.bin.zip" 
    - unzip doxygen-1.9.8.windows.x64.bin.zip
    - ls
    - .\doxygen.exe -v
    - .\doxygen.exe Doxyfile

  artifacts:
    paths:
      - public

ls 命令显示文件在这里,但下一步它找不到它 输出如下所示

$ ls
Doxyfile
README.md
doxygen-1.9.8.windows.x64.bin.zip
doxygen.exe
doxyindexer.exe
doxysearch.cgi.exe
doxywizard.exe
libclang.dll
pom.xml
public
src
/bin/sh: eval: line 136: .doxygen.exe: not found
$ .\doxygen.exe -v
ERROR: Job failed: exit code 127
exe doxygen gitlab-ci-runner alpine-linux bin

评论

0赞 albert 10/26/2023
你有没有尝试过没有 or 和 ?.\ ./
2赞 β.εηοιτ.βε 10/26/2023
exe 和这些 DLL 库是 Windows 软件。您不能在 Linux 容器中运行它们。

答: 暂无答案