From e7a850f8a5d33e78473f59b17d8b8f647c4dae0d Mon Sep 17 00:00:00 2001 From: devome Date: Sun, 14 Nov 2021 13:08:34 +0800 Subject: [PATCH] =?UTF-8?q?Dockerfile=E5=A2=9E=E5=8A=A0=E5=AE=89=E8=A3=85s?= =?UTF-8?q?qlite=EF=BC=8C=E5=B0=B1=E5=87=A0=E7=99=BEK=EF=BC=9B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9docker=E5=AE=89=E8=A3=85=E8=AF=B4=E6=98=8E=EF=BC=8C?= =?UTF-8?q?=E6=97=A0=E9=9C=80/bin/bash=EF=BC=9B=E5=A2=9E=E5=8A=A0=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=B9=B3=E5=8F=B0=E7=9A=84=E8=AF=B4=E6=98=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 + README.md | 14 ++++---------- README_EN.md | 14 ++++---------- 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index dbee24c3..da7c396c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories tzdata \ tini \ acme.sh \ + sqlite \ && fc-cache -f -v \ && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \ && echo "${TZ}" > /etc/timezone \ diff --git a/README.md b/README.md index 1f6e4bc1..cd793ddd 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ Windows: java -jar -Xmx64m D:/home/nginxWebUI/nginxWebUI.jar --server.port=8080 #### docker安装说明 -本项目制作了docker镜像, 同时包含nginx和nginxWebUI在内, 一体化管理与运行nginx. +本项目制作了docker镜像, 支持 amd64/arm64/armv7 三大平台,同时包含nginx和nginxWebUI在内, 一体化管理与运行nginx. 1.安装docker容器环境 @@ -144,7 +144,7 @@ docker pull cym1102/nginxwebui:latest 3.启动容器: ``` -docker run -itd -v /home/nginxWebUI:/home/nginxWebUI -e BOOT_OPTIONS="--server.port=8080" --privileged=true --net=host cym1102/nginxwebui:latest /bin/bash +docker run -itd -v /home/nginxWebUI:/home/nginxWebUI -e BOOT_OPTIONS="--server.port=8080" --privileged=true --net=host cym1102/nginxwebui:latest ``` 注意: @@ -179,18 +179,12 @@ services: #### 编译说明 -1. 使用maven编译打包 +使用maven编译打包 ``` mvn clean package ``` -2. 使用docker构建镜像 - -``` -docker build -t nginxwebui:latest . -``` - #### 添加开机启动 @@ -290,7 +284,7 @@ systemctl start nginxwebui.service 如果忘记了登录密码,可按如下教程找回密码 -1. 安装sqlite3命令 +1. 安装sqlite3命令(Docker镜像已经安装好了) ``` apt install sqlite3 diff --git a/README_EN.md b/README_EN.md index edce1000..fdb97acb 100644 --- a/README_EN.md +++ b/README_EN.md @@ -112,7 +112,7 @@ Note that the command ends with an & to indicate that the project is running in #### docker installation instructions -Note that an & sign is added at the end of the command, indicating that the docker image of this project has been produced by the background operation of the project, including nginx and nginxWebUI, for integrated management and operation of Nginx. +Docker image supports AMD64 / ARM64 / ARMV7 platforms. Note that an & sign is added at the end of the command, indicating that the docker image of this project has been produced by the background operation of the project, including nginx and nginxWebUI, for integrated management and operation of Nginx. 1.Install the Docker environment @@ -137,7 +137,7 @@ docker pull cym1102/nginxwebui:latest 3.start container ``` -docker run -itd -v /home/nginxWebUI:/home/nginxWebUI -e BOOT_OPTIONS="--server.port=8080" --privileged=true --net=host cym1102/nginxwebui:latest /bin/bash +docker run -itd -v /home/nginxWebUI:/home/nginxWebUI -e BOOT_OPTIONS="--server.port=8080" --privileged=true --net=host cym1102/nginxwebui:latest ``` notice: @@ -172,18 +172,12 @@ services: #### Compile -1. Compile the package with Maven +Compile the package with Maven ``` mvn clean package ``` -2. Compile the image with Docker - -``` -docker build -t nginxwebui:latest . -``` - #### Add boot up run 1. Edit service file @@ -283,7 +277,7 @@ Note: In the parameter description, all fields with * prefix are required. If you forget your login password, follow the following tutorial to retrieve it -1. install sqlite3 +1. install sqlite3 (docker image has already included) ``` apt install sqlite3 -- Gitee