Code Monkey home page Code Monkey logo

reachabilitycheck's Introduction

可达性检测

说明

偶然发现了更好的开源项目MyIP,之前版本宣告破产,之后该仓库将使用MyIP,进行一些私有化修改。

历史版本,界面如下图: image-1

当前版本,界面如下图:

image-2 image-2

修改连通性测试的站点

src/res/app.js中修改connectivityTests,示例如下:

    {
        id: 'HuggingFace',
        name: 'HuggingFace',
        icon: 'ticket-detailed-fill',
        url: 'https://huggingface.co/front/assets/huggingface_logo-noborder.svg?',
        status: ''
    }

其中icon图标在getbootstrap中选取。 url和之前那个版本一样,也是选取目标站点中的一个图片,通过加载图片来判断连通性。

使用docker运行

生成镜像

sudo docker build -t reachability-check .

启动容器

sudo docker run -d -p 2222:80 reachability-check

访问127.0.0.1:2222

可以直接使用我的镜像

sudo docker run -d -p 2222:80 lissettecarlr/reachability-check:latest

上传镜像到hub

如果想在自定义镜像后,方便其他设备使用,则可以将镜像上传到自己的hub

生成需要上传的镜像,名字格式:<your-dockerhub-username>/<image-name>:<tag>

sudo docker build -t lissettecarlr/reachability-check:latest .

登录hub

docker login

上传镜像

sudo docker push lissettecarlr/reachability-check:latest

后续迭代

sudo docker build -t lissettecarlr/reachability-check:v0.2 .
sudo docker tag lissettecarlr/reachability-check:v0.1 lissettecarlr/reachability-check:v0.2
sudo docker push lissettecarlr/reachability-check:v0.2

reachabilitycheck's People

Contributors

lissettecarlr avatar

Watchers

 avatar

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.