Skip to content

Commit 08de2b4

Browse files
committed
Feature: Init
1 parent 8228154 commit 08de2b4

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CHANGES
2+
3+
## 0.1.0
4+
5+
- Feature: Init

Dockerfile

Whitespace-only changes.

dockerd-entrypoint.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/sh
2+
3+
# Entrypoint copied from:
4+
# https://github.com/aws/aws-codebuild-docker-images/blob/1.12.0/ubuntu/standard/2.0/dockerd-entrypoint.sh
5+
6+
set -e
7+
8+
/usr/bin/dockerd \
9+
--host=unix:///var/run/docker.sock \
10+
--host=tcp://127.0.0.1:2375 \
11+
--storage-driver=overlay2 &>/var/log/docker.log &
12+
13+
tries=0
14+
d_timeout=60
15+
16+
until docker info >/dev/null 2>&1
17+
do
18+
if [ "$tries" -gt "$d_timeout" ]; then
19+
cat /var/log/docker.log
20+
echo 'Timed out trying to connect to internal docker host.' >&2
21+
exit 1
22+
fi
23+
tries=$(( $tries + 1 ))
24+
sleep 1
25+
done
26+
27+
eval "$@"

0 commit comments

Comments
 (0)