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


i trying out google container engine or kubernetes , have deployed simple mean stack on it. doing following below steps in local machine deploy new changes.

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

docker build --no-cache -t gcr.io/$project_id/my-app:v7 . # below command takes lot of time 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 in 2 parts:

  1. how can optimise continuous integration here - docker push command taking hour ?

  2. how can run docker image own ip on local machine - doing small changes , testing behaviour(session,cookies) reproducible external-ip , not on http://localhost. answer first part of question.

for second part:

just start using minkube - local development version of kubernetes.

you can deploy app actual local kubernetes instance, , once satisfied, can push gcloud.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -