File tree Expand file tree Collapse file tree 8 files changed +42
-7
lines changed
Expand file tree Collapse file tree 8 files changed +42
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Deploying Image on Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Logging into Github Container Registry
13+ run : |
14+ echo $CR_PAT | docker login ghcr.io -u utkarsh-1905 --password-stdin
15+ env :
16+ CR_PAT : ${{ secrets.CR_PAT }}
17+ - name : Building Docker Image
18+ run : |
19+ docker build . -t ghcr.io/utkarsh-1905/docker-network-vis:${{ github.sha }}
20+ - name : Pushing Docker Image
21+ run : |
22+ docker push ghcr.io/utkarsh-1905/docker-network-vis:${{ github.sha }}
Original file line number Diff line number Diff line change 1- TODO.md
1+ TODO.md
2+ start.dev.sh
3+ * .exe
Original file line number Diff line number Diff line change @@ -21,5 +21,6 @@ LABEL traefik.port=80
2121LABEL traefik.http.routers.network.rule="Host(`network.utkarsh.ninja`)"
2222LABEL traefik.http.routers.network.tls=true
2323LABEL traefik.http.routers.network.tls.certresolver="lets-encrypt"
24+ LABEL org.opencontainers.image.source="https://github.com/utkarsh-1905/docker-network-vis"
2425EXPOSE 3000
2526CMD [ "./main.exe" ]
Original file line number Diff line number Diff line change 1- ### Current UI
1+ ### How to use
22
3- ![ UI] ( ./assets/ui-1.png )
3+ 1 . Clone the repository
4+ 2 . Run the start.sh bash file in your linux terminal to build and start the container on local port 6904.
5+ 3 . Open your browser and go to localhost:6904 and you should see the app running and displaying all your containers in your network buckets.
6+
7+ ### Why to use?
8+
9+ 1 . It is a very simple application to give you a quick overview of all your containers in your network buckets.
10+ 2 . It helps in debugging and testing your containers.
Original file line number Diff line number Diff line change 1- sudo docker run -d -p 6904:3000 --rm --net web --name docker-vis -v /var/run/docker.sock:/var/run/docker.sock docker-vis:latest
1+ sudo docker build . -t docker-vis:latest
2+ sudo docker run -d -p 6904:3000 --rm --net web --net bridge --name docker-vis -v /var/run/docker.sock:/var/run/docker.sock docker-vis:latest
Original file line number Diff line number Diff line change 11package util
22
3+ import "log"
4+
35func HandleError (err error ) {
46 if err != nil {
5- panic (err )
7+ log . Fatal (err )
68 }
79}
Original file line number Diff line number Diff line change 1717 < h1 > Docker Network Visualizer</ h2 >
1818 </ header >
1919 < main >
20- < div class ="pingtest ">
20+ <!-- < div class="pingtest">
2121 <div class="ping">Ping Containers to check Network</div>
2222 <select name="c1" class="c1">
2323 {{range .networks}}
@@ -35,7 +35,7 @@ <h1>Docker Network Visualizer</h2>
3535 {{end}}
3636 </ select >
3737 < button class ="pingbtn "> Ping</ button >
38- </ div >
38+ </ div > -- >
3939 < hr />
4040 < div class ="networks-container ">
4141 < h2 > Networks</ h2 >
You can’t perform that action at this time.
0 commit comments