Skip to content

Commit

Permalink
nc
Browse files Browse the repository at this point in the history
  • Loading branch information
thedemoncat committed Feb 7, 2022
1 parent 0c18acf commit ddb71c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile_s
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM alpine:latest
COPY oneget /
RUN set -x; \
chmod +x /oneget; \
apk add curl
chmod +x /oneget
ENV ONEGET_HTTP_SERVER_PORT=8080
ENV ONEGET_ENABLE_HTTP_SERVER=true
HEALTHCHECK --interval=1m --timeout=3s \
CMD curl -f http://localhost:$ONEGET_HTTP_SERVER_PORT/ || exit 1
CMD nc -vz -w 2 localhost $ONEGET_HTTP_SERVER_PORT || exit 1'
ENTRYPOINT ["/oneget"]
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,12 @@ docker run \
--debug \
get \
--path /tmp/download \
platform:[email protected]
--extract \
platform:[email protected]
```

После скачивания дистрибутивов и перевода контейнера в статус `UP` дистрибутивы платформы будут доступны по URL `http://localhost:8080`

## Настройка логов

### Через файл настройки
Expand Down

0 comments on commit ddb71c7

Please sign in to comment.