Tag: git

Using a local network Docker registry server

I’m testing the new Docker 1.12 swarm mode. I have 2 VMs running docker. One is set up and running my containers. The other docker is brand new. I would like to set up the new one with the same images that are set up on docker machine 1. The default option is to WinSCP […]

Git clone repo in Dockerfile lags

I’m trying to clone a private repo hosted by bitbucket to a docker container. My Dockerfile is as follow RUN git clone git@deploy:<blabla>.git /src/<blabla> WORKDIR /src/<blabla> RUN cd /src/<blabla> RUN git pull –all –tags RUN git checkout v1.1.2 RUN pip install . The problem I have: I am said that the tag v1.1.2 does not […]

How to run some script inside Docker Container?

I have few git repos which are required to build application. I have written one Dockerfile to clone the repo,checkout to development branch and run commands to build the application. I am able to build the docker image properly with this dockerfile. But now i want to use some shell script “update.sh” since i have […]

How can I build an image using Dockerfile which is on my git repository?

Following is the command I tried to build an image On docker engine docker build https://gitlab.com/abha10/First_Project/blob/master/Dockerfile.tar.gz Using Remote API curl -X POST \ -H “Content-type”:”application/tar” \ http://52.203.42.217:2375/build?dockerfile=C:/Abhaya/Dockerfile.tar.gz And below is the error for the first command Downloading build context from remote url: https://gitlab.com/abha10/First_Project/blob/master/Dockerfile.tar.gz 12.85 kB Sending build context to Docker daemon 14.85 kB Step 1 […]

npm not working after export MSYS_NO_PATHCONV on Git Bash

I’m using Git Bash and Docker for Windows. To do this, I have to export MSYS_NO_PATHCONV=1 before using a docker command, so in my .bashrc I have set : docker() { export MSYS_NO_PATHCONV=1 (“docker.exe” “$@”) export MSYS_NO_PATHCONV= } Unfortunately, after doing this, npm commands are not working : $ npm module.js:471 throw err; ^ Error: […]

pipelines fail with custom docker image

I have a custom docker image on docker hub: salmantariq/node_mysql. It has MySQL server installed on it and node via nvm. I get the following error. I am sure I am missing something here but don’t know what. { bash: cannot set terminal process group (9): Not a ttybash: no job control in this shell+ […]

bitbucket docker Permission denied (publickey). fatal: Could not read from remote repository

I´m making a docker file with the following code: # Update aptitude with new repo RUN apt-get update # Install software RUN apt-get install -y git # Make ssh dir RUN mkdir /root/.ssh/ # Copy over private key, and set permissions ADD id_rsa /root/.ssh/id_rsa # Create known_hosts RUN touch /root/.ssh/known_hosts # Add bitbuckets key RUN […]

Good approach to depend by external files (dropbox) on a public repository?

I have a Docker repository with a project. The structure of the project looks like this: I know that if I try to ADD ../../../helpers/functions.sh in /development/php7.1.2-mongodb/app/Dockerfile would throw the error Forbidden path outside the build context, and I don’t want to have the functions.sh file in each folder. So my solution was: ADD https://www.dropbox.com/s/c913p83c11unl8x/functions.sh?dl=1 […]

Best way to clone private git gem repo using Dockerfile

This is my Dockerfile: # Dockerfile FROM rails:onbuild And docker-compose.yml is something like this: db: image: postgres web: build: . volumes: – .:/usr/src/app ports: – “3001:3001” links: – db So When I run docker-compose run web rake db:create db:migrate, it fails to clone private git repository. So my question is what is the best way […]

Multiple projects in one solution to generate one docker container

I have an application which is a visual studio based solution (.sln file) using .NET (could be V4.X or .NET Core). Whole solution is present in one single git repository. It has multiple projects which could be for example (layers as VS projects) UI layer, business/model layer, data access layer, test projects.. I want to […]

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