Skip to content

cogsmith/nodeinfo

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

๐Ÿ” NODEINFO: Whoami Microservice ๐Ÿ”

Node Runtime / Docker Instance / Host Environment / Debug Info


[GITHUB REPO]

๐Ÿณ [DOCKER IMAGE]

๐Ÿงพ [VIEW APP SOURCE CODE]

๐Ÿ“… [PROJECT TRACKER BOARD]



SCREENSHOT


No Server Show Message And Exit

docker run --rm --name nodeinfo cogsmith/nodeinfo

# NODEINFO: 9AEF78AB1BA5 @ 2021-02-18T07:12:24.421Z

Local Web Server @ Port 99

docker run -d --rm --name nodeinfo99 --env PORT=9 -p 127.0.0.1:99:9 cogsmith/nodeinfo ; sleep 1 ; curl -L http://127.0.0.1:99 ; curl http://127.0.0.1:99/info

# NODEINFO: 3690BE09C2DD @ 0.0.0.0:80 @ 127.0.0.1:99 @ 2021-02-18T07:12:35.277Z
# {JSON:{DT:...}}

Public Web Server @ Port 80

docker run -d --rm --name nodeinfo80 --env PORT=9 -p 0.0.0.0:80:9 cogsmith/nodeinfo ; sleep 1 ; curl -L http://localhost ; curl http://localhost/info

# NODEINFO: 80A831D99043 @ 0.0.0.0:80 @ LOCALHOST @ 2021-02-18T07:12:43.927Z
# {JSON:{DT:...}}

Clean Up

docker stop nodeinfo ; docker stop nodeinfo99 ; docker stop nodeinfo80 ; docker rm nodeinfo ; docker rm nodeinfo99 ; docker rm nodeinfo80 ; docker rmi cogsmith/nodeinfo