News Ticker


The cloud. Everything will one day be in the cloud. That’s the promise anyway. With this in mind I take a look a what is currently in the cloud. I start with a review of Cloud IDE service for Java EE development then a step by step tutorial about how to set up a cloud development pipeline using, Amazon Web Services and git hub.

1 Comment on Cloud

  1. How to run and use MYSQL from docker

    First download your docker version such Docker for Linux, Mac, Windows

    If you install docker for Mac or Windows – there will be no virstual Machine

    MAC :- xhyve – this VM uses the hypervisor framworks brhave like virtual Machine
    Windoes : – uses hyper-V virtual Machine

    Note:- now make sure with – docker-machine ls if you do not see default Machine than use localhost insted of docker virtual Machine IP.

    There is Docker Tools
    Docker Client
    Docker Machine
    Docker Compose
    Docker Kitematic
    Boot2Docker ISO

    After installation Run MySQL

    docker run –name container_NAME -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=DB_Name -p 3306:3306 -d mysql

    Or use Dockerfile to create on

    FROM centos:latest

    MAINTAINER Pankaj Sonani

    # Install latest updates
    RUN apt-get update
    RUN apt-get upgrade -y

    # Install mysql client and server
    RUN DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-client mysql-server curl

    # To access MySQL from Host OS
    RUN sed -i -e”s/^bind-address\s*=\s* =” /etc/mysql/my.cnf

    # Install database
    ADD ./database.sql /var/db/database.sql

    # Set Standard settings
    ENV user dbuser
    ENV password dbpassword
    ENV url file:/var/db/database.sql
    ENV right READ

    # Install starting script
    ADD ./ /usr/local/bin/
    RUN chmod +x /usr/local/bin/

    # expose MySQL port to host OS
    EXPOSE 3306

    CMD [“/usr/local/bin/”]

Leave a Reply