Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 899 Bytes

README.md

File metadata and controls

48 lines (35 loc) · 899 Bytes

GeoIP

GeoIPlookup application made with Bash, Docker, Docker-Compose and Chef cookbook.

How to deploy

Bash

Built as a simple script to launch with a parameter.

Example:

./files/geoip.sh [URL]

Docker + docker-entrypoint.sh

Steps: 01: We have to build the container with the Dockerfile attached.

docker build --tag geoip .

02: Insert all DNS names on the file dnsnames.txt 03: Launch the container.

docker run \                    
    --name geoip \
    -v $PWD/files/dnsnames.txt:/tmp/dnsnames.txt \
    -v $PWD/files/dnslocation.txt:/tmp/dnslocation.txt \
    -d geoip

04: See the results on the dnslocation.txt file.

Docker-Compose

Same as before, but just launching the docker-compose command.

docker-compose up

Chef cookbook

Cookbook created to launch the app created before.

chef-solo -c solo.rb -j geoip.json