Tag: deployment

How to fast failover nginx upstream containers in docker (blue/green deployment)

How can I get dockerized nginx to failover quickly when one of the upstream containers goes down? Failover seems instantaneous in a non-docker environment, but several requests timeout when dockerized. I’m using nginx as a load balancer/proxy on a single node/vm in front of two instances of the same node app. I pictured new version […]

Publish app on docker when save it

I am developing a solution and it is mandatory to use docker for it. The problem is that everytime I change something in the project, I have to use docker cp to copy all the application folder to the container in order to test it. This is a painful task and is not feasible taking […]

What is happening in my Docker when deploying with rocketeer?

I have a laravel code in my server which has Docker containers for Nginx and php-fpm. When I deploy code with Rocketeer, it makes new directory, pull, run compose update, and change symlink to the new directory. (and then, I changed the symlink to a relative path for the docker container of php-fpm, by Rocketeer […]

How add file in volume for docker image from docker-machine on linux host

I use linux machine ( now OpenSuse, but test this in Fedora and Ubuntu too). For working with Pycharm i need use docker-machine. All works fine, if i create docker image and connect volume to it in my linux host. If i use docker-machine i can’t see any file in my attach volume. 1) I […]

How to copy files in maven build that can be used at run time on Docker container?

I am new to Docker and Kubernates. I’ve a working java 8 application and it’s docker image (docker image is generated via maven, i.e no docker file). I’ve also minikube of Kubernates installed and running on latest mac. The application is deployed and is running however, I couldn’t find a file that I process inside […]

Docker swarm on physical machines without docker-machine

I want to create a docker swarm cluster on several physical machines using: myMac:config proshik$ docker swarm init Gives output: docker swarm join \ –token SWMTKN-1-0ly1gp1ij9sa6cxel7ed9w4d3ytyr83jn9z5cty1cu7xu4omjb-et354qzda8o58vhgkuj8de58z \ 192.168.65.2:2377 But when I try to join other hosts in this physical network with command: root@laptop:~# docker swarm join –token SWMTKN-1-0ly1gp1ij9sa6cxel7ed9w4d3ytyr83jn9z5cty1cu7xu4omjb-et354qzda8o58vhgkuj8de58z 192.168.65.2:2377 It will output: Error response from […]

Docker image for aspNet core hangs on windows

I am trying to build a docker image for aspnet core on windows(which eventually I intend to deploy on an ubuntu box). I am following the sample “as is” given in following link: deploy aspet core on linux using docker container Problem appears when I try building docker image using following command given in tutorial: […]

Deploying a minimal flask app in docker – server connection issues

I have an app who’s only dependency is flask, which runs fine outside docker and binds to the default port 5000. Here is the full source: from flask import Flask app = Flask(__name__) app.debug = True @app.route(‘/’) def main(): return ‘hi’ if __name__ == ‘__main__’: app.run() The problem is that when I deploy this in […]

Migrating from shared development database to single database for each developer

We are planning migrating from single shared development database model (for local deployments and CI) to individual database for each developer per each version branch, requiring easy back off to initial set of data for that version. Problem with shared database is obvious. Little mistake or experiment from one developer could potentially break all other […]

Is it possible to log into Gitlabs container registry without using the CI runner?

Is it possible to log into the Gitlab registry automatically from a script outside of the context of their CI runner? I have a very simple deployment process with a home-baked script which does the following in a nutshell: build container image push to registry.gitlab.com log into the target server pull the container image from […]

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