Skip to content

Commit a4c558d

Browse files
authored
Merge pull request #36 from buildkite/PB-40-rails-docker-parallel
PB-40 update docker
2 parents 91a9058 + 590ead2 commit a4c558d

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ services:
1717
environment:
1818
PGHOST: db
1919
PGUSER: postgres
20+
PGPASSWORD: postgres
2021
REDIS_URL: redis://redis
2122
MEMCACHE_SERVERS: memcache
2223
# CI envs
@@ -36,9 +37,12 @@ services:
3637

3738
db:
3839
image: postgres
40+
environment:
41+
POSTGRES_USER: postgres
42+
POSTGRES_PASSWORD: postgres
3943

4044
redis:
4145
image: redis
4246

4347
memcache:
44-
image: tutum/memcached
48+
image: memcached:latest

0 commit comments

Comments
 (0)