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)

  • Is it possible to access a hardware device with a docker image under Windows?
  • Installing sensu, sensu-dashboard does not install
  • cant connect to docker tomcat container on windows - what am i doing wrong?
  • Gunicorn can't find staticfiles after dockerization
  • docker-machine install fails due to 'Couldn't read CA cert' error
  • Best practice for connecting to a vpn though docker [closed]
  • 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 mysql host not privileged
  • How can I copy a config file within a Dockerfile?
  • Docker - MySQL commands within Dockerfile using RUN (ERROR 2002)
  • How do I provide dynamic host names for all docker containers?
  • Set 'host' as default network for Docker
  • ERR_TOO_MANY_REDIRECTS in backoffice when running Prestashop in Docker
  • 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.