mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-12 01:10:24 +02:00
dind required to work on debian
This commit is contained in:
parent
30a276774e
commit
0bbd009e23
@ -1,4 +1,4 @@
|
|||||||
FROM library/alpine:3.5
|
FROM library/docker:1.13
|
||||||
|
|
||||||
ENV HOME_DIR=/opt/crontab
|
ENV HOME_DIR=/opt/crontab
|
||||||
RUN apk add --no-cache --virtual .run-deps bash jq \
|
RUN apk add --no-cache --virtual .run-deps bash jq \
|
||||||
|
@ -11,5 +11,5 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
- "/usr/bin/docker:/usr/bin/docker:ro"
|
# - "/usr/bin/docker:/usr/bin/docker:ro"
|
||||||
- "/Users/willfarrell/Development/docker/crontab/home_dir:/opt/crontab:rw"
|
- "/Users/willfarrell/Development/docker/crontab/home_dir:/opt/crontab:rw"
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [ -z "$DOCKER_HOST" -a "$DOCKER_PORT_2375_TCP" ]; then
|
||||||
|
export DOCKER_HOST='tcp://docker:2375'
|
||||||
|
fi
|
||||||
|
|
||||||
# for local testing only
|
# for local testing only
|
||||||
#HOME_DIR=.
|
#HOME_DIR=.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user