Giter Club home page Giter Club logo

rhq-docker's Introduction

SUMMARY

Installs RHQ latest on Fedora 20 using docker.

STEP-BY-STEP SETUP

if [[ $(cat /etc/redhat-release | grep Fedora) ]]; then
  yum -y install wget curl git docker-io
  systemctl start docker 
  systemctl enable docker
else
  rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 
  yum -y install wget curl git docker-io
  service docker start
  chkconfig docker on
fi
 
export RHQ_VERSION="4.12.0-SNAPSHOT"
docker pull gkhachik/rhq-fedora.20:${RHQ_VERSION}
cid="$(docker run -d -i -p 17080:7080 -t gkhachik/rhq-fedora.20:${RHQ_VERSION} /bin/bash)"
docker logs -f ${cid}

DOCKER BUILD

./build.sh

DOCKER RUN

./run.sh

USEFUL

cleanup all images with given REPO:TAG

export DOCKER_REPO="<none>"
export DOCKER_TAG="<none>"
imgid="$(sudo docker images | grep -v "IMAGE" | grep -E "${DOCKER_REPO}" | grep -E " ${DOCKER_TAG} " | tail -1 | awk '{print $3}')"
while [[ "x$imgid" != "x" ]]; do
  for cid in $(sudo docker ps -a | grep "$imgid" | grep -v "CONTAINER ID" | awk '{print $1}'); do 
    sudo docker stop $cid
    sudo docker rm -f $cid
  done
  sleep 3
  sudo docker rmi -f $imgid
  imgid="$(sudo docker images | grep -v "IMAGE" | grep -E "${DOCKER_REPO}" | grep -E " ${DOCKER_TAG} " | tail -1 | awk '{print $3}')"
done

rhq-docker's People

Contributors

gkhachikyan avatar

Watchers

 avatar

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.