Skip to content

Commit

Permalink
add commands for retrieval of latest data
Browse files Browse the repository at this point in the history
  • Loading branch information
Asone committed Jul 29, 2018
1 parent 2f3702e commit 59c331b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions _provisioning/db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,18 @@ FROM node:alpine
LABEL AUTHOR="Nelson Herbin <[email protected]>"
LABEL NAME=tricoteuses-db
LABEL VERSION=1

RUN "wget http:https://data.senat.fr/data/ameli/ameli.zip \
unzip ameli.zip \
su \
su postgres \
# dropdb ameli
# dropuser opendata
# createuser -IPRS opendata
# Enter password for new role: opendata
# Enter it again: opendata
# createdb -E utf-8 -O opendata ameli
psql ameli < var/opt/opendata/ameli.sql \
exit \
rm -R var/ \
rm ameli.zip"

0 comments on commit 59c331b

Please sign in to comment.