Skip to content

richursa/maclook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maclook

Clone the repository by running

git clone https://github.com/richursa/maclook.git

Move into the directory

cd maclook

A two stage docker build is used. The application is compiled on golang:1.15.3 and run on alpine:latest

alt text

Build the container

docker build -t maclook .

Run with -h for help

docker run maclook -h

eg :

To get the Company name to which mac address is issued run (fake api key is used here)

docker run maclook -macaddress=44:38:39:ff:ef:57 -apikey=at_bWCRfDLtmZxNwdiqNFMU9NbIZuZrs

To view detailed information run with

docker run maclook -macaddress=44:38:39:ff:ef:57 -detail=true  -apikey=at_bWCRfDLtmZxNwdiqNFMU9NbIZuZrs

You can set the apikey in environment in Dockerfile before building to avoid typing apikey everytime by adding the line

ENV apikey=at_bWCRfDLtmZxNwdiqNFMU9NbIZuZrs

API key provided as command line parameter will override apikey set in environment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published