Skip to content

Commit

Permalink
Feature: Init
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodian committed Sep 5, 2019
1 parent 8228154 commit 08de2b4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CHANGES

## 0.1.0

- Feature: Init
Empty file added Dockerfile
Empty file.
27 changes: 27 additions & 0 deletions dockerd-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh

# Entrypoint copied from:
# https://github.com/aws/aws-codebuild-docker-images/blob/1.12.0/ubuntu/standard/2.0/dockerd-entrypoint.sh

set -e

/usr/bin/dockerd \
--host=unix:///var/run/docker.sock \
--host=tcp://127.0.0.1:2375 \
--storage-driver=overlay2 &>/var/log/docker.log &

tries=0
d_timeout=60

until docker info >/dev/null 2>&1
do
if [ "$tries" -gt "$d_timeout" ]; then
cat /var/log/docker.log
echo 'Timed out trying to connect to internal docker host.' >&2
exit 1
fi
tries=$(( $tries + 1 ))
sleep 1
done

eval "$@"

0 comments on commit 08de2b4

Please sign in to comment.