Commit 905fecd 1 parent 85c955a commit 905fecd Copy full SHA for 905fecd
File tree 5 files changed +29
-3
lines changed
5 files changed +29
-3
lines changed Original file line number Diff line number Diff line change
1
+ SECRET_KEY_BASE = " SOME-LONG-SECRET-KEY-BASE-FOR-TESTING-SOME-LONG-SECRET-KEY-BASE-FOR-TESTING"
2
+
3
+ GTFS_VALIDATOR_URL = https://transport-validator.cleverapps.io
4
+
5
+ DATAGOUVFR_SITE = https://demo.data.gouv.fr
6
+ DATAGOUVFR_REDIRECT_URI = http://localhost:5000/login/callback
7
+ DATAGOUVFR_CLIENT_SECRET =
8
+ DATAGOUVFR_CLIENT_ID =
9
+ DATAGOUVFR_API_KEY =
10
+
11
+
12
+ # Optional ----------------------
13
+ CELLAR_ACCESS_KEY_ID =
14
+ CELLAR_SECRET_ACCESS_KEY =
15
+
16
+ MJ_APIKEY_PUBLIC =
17
+ MJ_APIKEY_PRIVATE =
18
+
19
+ JCDECAUX_APIKEY =
20
+ # -------------------------------
Original file line number Diff line number Diff line change 1
- FROM betagouv/transport:0.4 .3
1
+ FROM betagouv/transport:elixir-1.12.2-erlang-24.0.3-alpine-3.13 .3
2
2
3
3
RUN apk add inotify-tools
4
4
RUN apk add postgresql-client>=11
5
+ RUN apk add git
5
6
6
7
RUN mkdir /app/
7
8
RUN mkdir /app/_build
8
9
RUN mkdir /app/deps/
9
10
WORKDIR /app/
10
11
11
12
# fetch a wait-for-it script to wait for postgres startup
12
- ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/54d1f0bfeb6557adf8a3204455389d0901652242 /wait-for-it.sh /opt/bin/
13
+ ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/81b1373f17855a4dc21156cfe1694c31d7d1792e /wait-for-it.sh /opt/bin/
13
14
RUN chmod +x /opt/bin/wait-for-it.sh
14
15
15
16
ADD docker_phoenix_startup.sh /docker_phoenix_startup.sh
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ To run a custom task: `mix <custom task>`
152
152
153
153
If you don't plan to work a lot on this project, the docker installation is way easier.
154
154
155
- You need a .env file with the same variables that you have in .envrc .example (but you'll need to remove ` export ` at the beginning of each line .
155
+ You need a .env file, and can use .env .example to see which variables need to be set .
156
156
(No need to setup the variable ` PG_URL ` , it is defined in the docker-compose.yml)
157
157
158
158
Then you only need to run:
Original file line number Diff line number Diff line change @@ -37,10 +37,14 @@ defmodule TransportWeb.BuildTest do
37
37
content = File . read! ( "../../Dockerfile" )
38
38
[ [ _ , production_version ] ] = Regex . scan ( ~r/ FROM (.*)/ , content )
39
39
40
+ content = File . read! ( "../../Dockerfile.dev" )
41
+ [ [ _ , docker_compose_version ] ] = Regex . scan ( ~r/ FROM (.*)/ , content )
42
+
40
43
content = File . read! ( "../../.circleci/config.yml" )
41
44
[ [ _ , ci_version ] ] = Regex . scan ( ~r/ (betagouv\/ transport.*)/ , content )
42
45
43
46
assert ci_version == production_version
47
+ assert ci_version == docker_compose_version
44
48
end
45
49
46
50
# figuring out you have forgotten to upgrade the assets can be tricky, so we add a little reminder here
Original file line number Diff line number Diff line change 1
1
version : " 3"
2
2
services :
3
3
database :
4
+ # this will need to be replaced, as the DB content is now really old
4
5
image : antoinede/transport_data_gouv_dev_database
5
6
volumes :
6
7
- pgdata:/var/lib/postgresql/data
You can’t perform that action at this time.
0 commit comments