Guest User

Untitled

a guest
Nov 30th, 2017
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. FROM mdillon/postgis
  2.  
  3. COPY ./nga_bth.sql /docker-entrypoint-initdb.d/
  4. COPY ./nga_preg.sql /docker-entrypoint-initdb.d/
  5. COPY ./nga_adm1.sql /docker-entrypoint-initdb.d/
  6.  
  7. EXPOSE 5432
  8.  
  9. docker build -t dillon .
  10.  
  11. docker run -d -p 4000:5432 --name postgis_test -e POSTGRES_DB=gis -e POSTGRES_USER=postgres -it -e POSTGRES_PASSWORD=postgres dillon:latest
  12.  
  13. server started
  14. CREATE DATABASE
  15.  
  16. ALTER ROLE
  17.  
  18.  
  19. /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/nga_adm1.sql
  20. SET
  21. SET
  22. BEGIN
  23. CREATE TABLE
  24. ALTER TABLE
  25. 2017-11-29 19:07:35.043 UTC [73] ERROR: function addgeometrycolumn(unknown, unknown, unknown, unknown, unknown, integer) does not exist at character 8
  26. 2017-11-29 19:07:35.043 UTC [73] HINT: No function matches the given name and argument types. You might need to add explicit type casts.
  27. 2017-11-29 19:07:35.043 UTC [73] STATEMENT: SELECT AddGeometryColumn('public','nga_adm1','geom','4326','MULTIPOLYGON',2);
  28. psql:/docker-entrypoint-initdb.d/nga_adm1.sql:18: ERROR: function addgeometrycolumn(unknown, unknown, unknown, unknown, unknown, integer) does not exist
  29. LINE 1: SELECT AddGeometryColumn('public','nga_adm1','geom','4326','...
  30. ^
  31. HINT: No function matches the given name and argument types. You might need to add explicit type casts.
  32.  
  33. server started
  34. CREATE DATABASE
  35.  
  36. ALTER ROLE
  37.  
  38.  
  39. /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/nga_bth.sql
  40. BEGIN
  41. psql:/docker-entrypoint-initdb.d/nga_bth.sql:2: NOTICE: table "nga_bth" does not exist, skipping
  42. DROP TABLE
  43. 2017-11-29 19:03:39.043 UTC [73] ERROR: type "raster" does not exist at character 66
  44. 2017-11-29 19:03:39.043 UTC [73] STATEMENT: CREATE TABLE "public"."nga_bth" ("rid" serial PRIMARY KEY,"rast" raster,"filename" text);
  45. psql:/docker-entrypoint-initdb.d/nga_bth.sql:3: ERROR: type "raster" does not exist
  46. LINE 1: ...ublic"."nga_bth" ("rid" serial PRIMARY KEY,"rast" raster,"fi…
Add Comment
Please, Sign In to add comment