You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -122,17 +153,25 @@ Directly beneath `working_directory`, we can specify container images under a `d
122
153
version: 2
123
154
# ...
124
155
docker:
125
-
- image: circleci/ruby:2.4.1-node
156
+
- image: circleci/ruby:2.4-node
126
157
environment:
158
+
PGHOST: 127.0.0.1
159
+
PGUSER: circleci-demo-ruby
127
160
RAILS_ENV: test
128
-
- image: circleci/postgres:9.4.12-alpine
161
+
- image: circleci/postgres:9.5-alpine
162
+
environment:
163
+
POSTGRES_USER: circleci-demo-ruby
164
+
POSTGRES_DB: rails_blog
165
+
POSTGRES_PASSWORD: ""
129
166
```
130
167
131
-
We use the [official Ruby images](https://hub.docker.com/_/ruby/) tagged to version `2.4.1` and with additional packages installed for NodeJS.
168
+
We use the [official Ruby images](https://hub.docker.com/_/ruby/) tagged to use the latest patch-level version of `2.4` and with additional packages installed for NodeJS.
132
169
133
170
We've also specified the [official Postgres image](https://hub.docker.com/_/postgres/) for use as our database container.
134
171
135
-
Now we’ll add several `steps` within the `build` job.
172
+
As well, we've added several environment variables for connecting our application container with the database for our testing purposes.
173
+
174
+
Now let's add several `steps` within the `build` job.
136
175
137
176
We start with `checkout` so we can operate on the codebase.
0 commit comments