Coder Social home page Coder Social logo

docker-redis's Introduction

Docker-redis

Josip Milovac [email protected]

Repository contains necessary scripts to install docker on a local computer, create a docker container for redis, and making calls to redis from the host machine.

Set up

After you clone the repository make the bash scripts executable e.g. "chmod u+x install-docker.sh"

Installing docker

Installation uses "yum". On a centos machine run install-docker.sh.

  • $ ./install-docker.sh

For other OS documentation see docker installation

This installs docker onto host machine and starts the daemon. You can verify docker installation using test-docker.sh

  • $ ./test-docker.sh

if installation is correct then you should see the following output on the console

$ hello-world

Install Redis

Once docker installation is validated you can install redis using docker. Do the following,

  • $ cd redis
  • $ docker build {your tag} .

where your tag is the name of the docker container e.g. josip/docker. !!!Important do not forget the ".(dot)" at the end.

This will take some time depending on your network connection. Docker uses PORT 6379 to communicate. First run the redis:

  • $ docker run {your tag}

You can test if the redis is active as follows:

  • $ ./test-redis.sh {hostname}

hostname is the hostname of where redis is running. This script requires telnet, which can be installed with "yum install telnet -y" if it is not present on the system

you should receive output from the redis server as if you had run the INFO command. Refer to https://redis.io/commands/INFO for what this command returns

  • $

##Ansible

Sample ansible playbook in docker-redis.yml

It copies the scripts over and runs them to install all the relevant software on the target

docker-redis's People

Contributors

daghanacay avatar dekibeki avatar

Watchers

 avatar  avatar

Forkers

daghanacay

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.