Skip to content

Commit 2f60c6d

Browse files
committed
PB-40 update docker
1 parent 91a9058 commit 2f60c6d

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@ EXPOSE 5000
55
ENV RAILS_ENV=test
66

77
# Add official postgresql apt deb source
8-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
9-
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
10-
&& apt-get update \
11-
&& apt-get install -y postgresql-client-10
8+
RUN apt-get update && apt-get install -y postgresql-client
129

1310
# Node, needed for asset pipeline
14-
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - \
15-
&& apt-get update \
16-
&& apt-get install -y nodejs \
17-
&& npm install -q -g npm
11+
RUN apt-get update \
12+
&& apt-get install -y nodejs npm
1813

1914
# Add the wait-for-it.sh script for waiting on dependent containers
2015
RUN curl https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh > /usr/local/bin/wait-for-it.sh \

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ DEPENDENCIES
3131
rspec
3232

3333
BUNDLED WITH
34-
1.15.1
34+
2.6.9

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ services:
3232
BUILDKITE_BUILD_NUMBER:
3333
ports:
3434
- "5000:5000"
35-
entrypoint: wait-for-it.sh db:5432 -s -- wait-for-it.sh redis:6379 -s -- wait-for-it.sh memcache:11211 -s --
35+
entrypoint: wait-for-it.sh db:5432 -t 30 -s -- wait-for-it.sh redis:6379 -t 15 -s -- wait-for-it.sh memcache:11211 -t 15 -s --
3636

3737
db:
3838
image: postgres
@@ -41,4 +41,4 @@ services:
4141
image: redis
4242

4343
memcache:
44-
image: tutum/memcached
44+
image: memcached:latest

0 commit comments

Comments
 (0)