From 8f1c35a0107fdac52d79ed8006ab03f03135d00c Mon Sep 17 00:00:00 2001 From: iwumingz Date: Fri, 8 Apr 2022 14:52:38 +0800 Subject: [PATCH] Update description --- Dockerfile | 3 ++- data/command.yml | 13 ++++++++++++- install.sh | 6 +++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12972ae..8c1e076 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ LABEL maintainer=iwumingz WORKDIR /sycgram COPY . /sycgram -RUN apk add --no-cache libjpeg libwebp libpng py3-lxml bc neofetch \ +# The libc6-compat dependency is required to use the host's docker commands +RUN apk add --no-cache libjpeg libwebp libpng py3-lxml bc neofetch libc6-compat \ && apk add --no-cache --virtual build-deps gcc g++ zlib-dev jpeg-dev libxml2-dev libxslt-dev libwebp-dev libpng-dev \ && pip install -r requirements.txt --no-cache-dir \ && apk del build-deps \ diff --git a/data/command.yml b/data/command.yml index 613f81d..5809c5f 100644 --- a/data/command.yml +++ b/data/command.yml @@ -1,4 +1,5 @@ -# 注意,勿随意更改顶级的Key +# 注意,如无修改能力,勿随意更改顶级的Key +# 建议:如无修改能力,勿改动容器名,即sycgram # 按需改动 # 指令 - 例子 - 格式二选一 @@ -127,3 +128,13 @@ unarchive: cmd: unarch format: -unarch usage: 撤销归档当前对话 + +restart: + cmd: restart + format: -restart + usage: 重启sycgram + +update: + cmd: update + format: -update + usage: 更新sycgram到主分支的最新版本 diff --git a/install.sh b/install.sh index dcfdc79..bfaa750 100644 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ CONTAINER_NAME="sycgram" GITHUB_IMAGE_NAME="iwumingz/${CONTAINER_NAME}" GITHUB_IMAGE_PATH="ghcr.io/${GITHUB_IMAGE_NAME}" PROJECT_PATH="/opt/${CONTAINER_NAME}" -PROJECT_VERSION="v1.0.4" +PROJECT_VERSION="v1.0.5" red='\033[0;31m' green='\033[0;32m' @@ -133,6 +133,10 @@ install_sycgram(){ --restart always \ --hostname ${CONTAINER_NAME} \ -v ${PROJECT_PATH}/data:/sycgram/data \ + # 注意这里是docker的一些默认路径 + # 如果你有过路径更改,请按需修改即可 + -v /var/run/docker.sock:/var/run/docker.sock \ + -v $(which docker):/usr/local/bin/docker \ ${GITHUB_IMAGE_PATH}:latest }