continuous integration of docker image by running locally with its own IP?

I am trying out google container engine or kubernetes and have deployed a simple mean stack on it. I am doing following below steps in my local machine to deploy new changes.

docker push commands takes a lot of time (and my network speeds are not great)

  • Running 32bit LXC on 64 bit host machine?
  • Docker complains that bind source path doesn't exist, but it DOES
  • Share dynamic content across docker containers nodes in Jelastic
  • Running installer within docker file without user interaction
  • Change Graph.db location on Neo4j Docker to local file
  • The result of docker exec command
  • docker build --no-cache -t gcr.io/$PROJECT_ID/my-app:v7 .
    # below command takes a lot of time to push
    gcloud docker push gcr.io/$PROJECT_ID/my-app:v7
    kubectl set image deployment/my-app-pod my-app-pod=gcr.io/$PROJECT_ID/my-app:v7
    

    Question is in two parts:

    1. How can I optimise continuous integration here – especially docker push command taking an hour ?

    2. How can I run docker image with its own IP on my local machine – as I am doing small changes and testing a behaviour(session,cookies) which is only reproducible with an external-ip and not on http://localhost. Answer to this will help first part of question.

  • Tomcat | Docker : Tomcat image doesn't start on docker when providing tomcat-users.xml
  • RunContainer: Error response from daemon: Duplicate mount point (Kubernetes)
  • python fabric run awk command return a KeyError: 'print $1'
  • Php on docker : Using setLocale
  • Running ASP.NET Core with HTTPS in docker from Visual Studio 2015
  • Stack/Docker/IHaskell weird behaviour
  • One Solution collect form web for “continuous integration of docker image by running locally with its own IP?”

    For the second part:

    Just start using something like minkube – which is like a local development version of Kubernetes.

    You can then deploy your app easily to an actual local Kubernetes instance, and then once satisfied, you can push to gcloud.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.