Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Исправил путь к исполняемому файлу #82

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

thedemoncat
Copy link

@thedemoncat thedemoncat commented Feb 7, 2021

В текущем образе entrypoin ведет в никуда

$ docker pull evilbeaver/oscript-web:latest
latest: Pulling from evilbeaver/oscript-web
Digest: sha256:5d54a340382d2c57cdbf36f13d821364b4c6356596e522f673857ad1d17a54f7
Status: Image is up to date for evilbeaver/oscript-web:latest
docker.io/evilbeaver/oscript-web:latest

$ docker run  evilbeaver/oscript-web:latest                                                                                                                            
docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/var/osp.net/OneScript.WebHost": stat /var/osp.net/OneScript.WebHost: no such file or directory: unknown.
ERRO[0006] error waiting for container: context canceled

По факту, OneScript.WebHost находится в другом месте

@@ -8,6 +8,6 @@ ENV ASPNETCORE_URLS=http://0.0.0.0:5000

WORKDIR /app
COPY . /var/osp.net
ENTRYPOINT ["/var/osp.net/OneScript.WebHost"]
ENTRYPOINT ["/var/osp.net/artifact/core/linux-x64/OneScript.WebHost"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ой, нет, что-то пошло не так. Почему такой путь?

Copy link
Author

@thedemoncat thedemoncat Feb 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У тебя по этому пути собираются бинари, а в 10-й строчке ты копируешь весь WS в контейнер

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нене, в контейнере не надо такой дженкинсоподобный путь

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants