Skip to content
This repository was archived by the owner on Mar 24, 2020. It is now read-only.

Commit 54badad

Browse files
mcritchlowlsitu
authored andcommitted
Add dependency on tomcat for database container
1 parent 94438e9 commit 54badad

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Dockerfile

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1-
FROM circleci/ruby:2.3.7-node-browsers
1+
FROM ruby:2.3.7
22

33
# Maintainer
44
MAINTAINER "Matt Critchlow <[email protected]">
55

6+
RUN apt-get update -yqq \
7+
&& apt-get install -yqq --no-install-recommends nodejs libicu-dev libfontconfig1-dev libjpeg-dev libfreetype6 \
8+
&& apt-get clean
9+
10+
ENV PHANTOM_JS_TAG 2.1.1
11+
12+
# Downloading bin, unzipping & removing zip
13+
WORKDIR /tmp
14+
RUN wget -q http://cnpmjs.org/mirrors/phantomjs/phantomjs-${PHANTOM_JS_TAG}-linux-x86_64.tar.bz2 -O phantomjs.tar.bz2 \
15+
&& tar xjf phantomjs.tar.bz2 \
16+
&& rm -rf phantomjs.tar.bz2 \
17+
&& mv phantomjs-* phantomjs \
18+
&& mv /tmp/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
19+
620
RUN echo "phantomjs binary is located at `which phantomjs`" \
721
&& echo "just run 'phantomjs' (version `phantomjs -v`)"
822

docker-compose.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
- ./:/usr/src/app
1010
depends_on:
1111
- database
12+
- tomcat
1213
env_file:
1314
- docker/.env.dev.database
1415
- docker/.env.dev.web
@@ -22,6 +23,9 @@ services:
2223

2324
tomcat:
2425
image: ucsdlib/docker-tomcat-damsrepo
26+
# command: ["dockerize", "-wait", "tcp://database:5432", "-timeout", "1m", "catalina.sh", "run"]
27+
depends_on:
28+
- database
2529

2630
# volumes:
2731
# db-data:

0 commit comments

Comments
 (0)