Skip to content

Commit

Permalink
Merge pull request #875 from muga/change_dockerfile_to_install_redis_2
Browse files Browse the repository at this point in the history
Change Dockerfile and bootstrap/entrypoint.sh to start redis server
  • Loading branch information
muga authored Sep 22, 2018
2 parents c775122 + c160077 commit befdec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion docker/bootstrap/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ pip install sphinx==1.4.9 recommonmark sphinx_rtd_theme

# Redis
apt-get -y install redis-server
redis-server & # /etc/init.d/redis-server start doesn't work well

# Minio (S3)
wget -O /usr/local/bin/minio https://dl.minio.io/server/minio/release/linux-amd64/minio
Expand Down
4 changes: 4 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ if [ ! -z "$DIGDAG_TEST_POSTGRESQL" ]; then
/etc/init.d/postgresql start
fi

if [ ! -z "$DIGDAG_TEST_REDIS" ]; then
redis-server &
fi

export TEST_S3_ACCESS_KEY_ID=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
export TEST_S3_SECRET_ACCESS_KEY=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
export TEST_S3_ENDPOINT=http://127.0.0.1:9000
Expand Down

0 comments on commit befdec5

Please sign in to comment.