Skip to content

GeoIP application with bash, docker, docker-compose and chef recipe

Notifications You must be signed in to change notification settings

jrguerrero/geoip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

GeoIP application with bash, docker, docker-compose and chef recipe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published