Giter Site home page Giter Site logo

nvjdc's Introduction

nvjdc

Net core5 vue3 puppeteer sharp的一次尝试

提示

由于我自己的环境是centos x86,理论是支持arm的需要自行测试

安装教程

1 执行命令

yum install wget unzip -y

2创建一个目录放配置以及chromium

mkdir nolanjdc && cd nolanjdc

3下载config.json 配置文件 并且修改自己的配置 不能缺少

wget -O Config.json  https://raw.githubusercontent.com/NolanHzy/nvjdc/main/Config.json

国内请使用

wget -O Config.json   https://ghproxy.com/https://raw.githubusercontent.com/NolanHzy/nvjdc/main/Config.json

4 创建chromium文件夹并进入

mkdir -p  .local-chromium/Linux-884014 && cd .local-chromium/Linux-884014

5下载 chromium

wget https://mirrors.huaweicloud.com/chromium-browser-snapshots/Linux_x64/884014/chrome-linux.zip && unzip chrome-linux.zip

6删除刚刚下载的压缩包

rm  -f chrome-linux.zip

7 回到刚刚创建的目录

cd  /nolanjdc

8拉镜像

sudo docker pull nolanhzy/nvjdc:0.1

9启动镜像

sudo docker run   --name nolanjdc -p 5701:80 -d  -v  "$(pwd)"/Config.json:/app/Config/Config.json:ro \
-v "$(pwd)"/.local-chromium:/app/.local-chromium  \
-it --privileged=true  nolanhzy/nvjdc:0.1 

10查看 日志

docker logs -f nolanjdc 

出现 NETJDC started 即可

注意事项

容器启动后第一次获取验证码的时候可能卡住刷新一下即可

Config.json 是配置文件 可以热更新 修改后不用重启容器

最后

觉得不错。回来帮我点个stars

nvjdc's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.