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)

  • Multiple WordPress sites with one shared DB using Docker
  • Updating kubectl with new configurations
  • How to view Docker image layers on Docker Hub?
  • Is there a way to discover other containers on a docker network using DNS?
  • How to share a host directory between multiple docker container?
  • Run docker from console
  • 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.

  • Docker Compose Image Failing
  • Docker for Windows: cannot assign requested address
  • docker-machine: Can't access container's web server from host
  • Dockerizing an app
  • How can I terminate a Docker instance from within itself?
  • Docker Toolbox setup fails on Windows 8.1
  • 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.