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
21
21
LABEL traefik.http.routers.network.rule="Host(`network.utkarsh.ninja`)"
22
22
LABEL traefik.http.routers.network.tls=true
23
23
LABEL traefik.http.routers.network.tls.certresolver="lets-encrypt"
24
+ LABEL org.opencontainers.image.source="https://github.com/utkarsh-1905/docker-network-vis"
24
25
EXPOSE 3000
25
26
CMD [ "./main.exe" ]
Original file line number Diff line number Diff line change 1
- ### Current UI
1
+ ### How to use
2
2
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 1
1
package util
2
2
3
+ import "log"
4
+
3
5
func HandleError (err error ) {
4
6
if err != nil {
5
- panic (err )
7
+ log . Fatal (err )
6
8
}
7
9
}
Original file line number Diff line number Diff line change 17
17
< h1 > Docker Network Visualizer</ h2 >
18
18
</ header >
19
19
< main >
20
- < div class ="pingtest ">
20
+ <!-- < div class="pingtest">
21
21
<div class="ping">Ping Containers to check Network</div>
22
22
<select name="c1" class="c1">
23
23
{{range .networks}}
@@ -35,7 +35,7 @@ <h1>Docker Network Visualizer</h2>
35
35
{{end}}
36
36
</ select >
37
37
< button class ="pingbtn "> Ping</ button >
38
- </ div >
38
+ </ div > -- >
39
39
< hr />
40
40
< div class ="networks-container ">
41
41
< h2 > Networks</ h2 >
You can’t perform that action at this time.
0 commit comments