1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-13 09:12:43 +08:00

Add default gitconfig

This commit is contained in:
Marcos Lilljedahl 2017-02-27 16:57:07 -03:00
parent 5f647d7fba
commit 37cd429058
2 changed files with 6 additions and 3 deletions

2
.gitconfig Normal file
View File

@ -0,0 +1,2 @@
[url "https://"]
insteadOf = git://

View File

@ -1,6 +1,6 @@
FROM docker:1.13.1-dind
RUN apk add --no-cache git tmux py2-pip apache2-utils vim build-base gettext-dev curl bash
RUN apk add --no-cache git tmux py2-pip apache2-utils vim build-base gettext-dev curl bash util-linux
ENV COMPOSE_VERSION=1.11.1
# Install Compose and Machine
@ -22,7 +22,7 @@ RUN rm /sbin/modprobe && echo '#!/bin/true' >/sbin/modprobe && chmod +x /sbin/mo
# Install a nice vimrc file and prompt (by soulshake)
COPY ["docker-prompt","/usr/local/bin/"]
COPY [".vimrc",".bashrc", ".inputrc", "./root/"]
COPY [".vimrc",".bashrc", ".inputrc", ".gitconfig", "./root/"]
ARG docker_storage_driver=overlay2
@ -34,7 +34,8 @@ WORKDIR /root
# Remove IPv6 alias for localhost and start docker in the background ...
CMD cat /etc/hosts >/etc/hosts.bak && \
sed 's/^::1.*//' /etc/hosts.bak > /etc/hosts && \
umount /var/lib/docker && \
dockerd --experimental -g /graph --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 \
--storage-driver=$DOCKER_STORAGE_DRIVER --dns $PWD_IP_ADDRESS --dns 8.8.8.8 &>/docker.log & \
while true ; do /bin/bash ; done
while true ; do script -q -c /bin/bash /dev/null ; done
# ... and then put a shell in the foreground, restarting it if it exits