Skip to content

Commit

Permalink
Merge pull request #569 from CartoDB/561-Remove_PG9
Browse files Browse the repository at this point in the history
Remove PG9
  • Loading branch information
antoniocarlon authored Oct 4, 2018
2 parents 90a8d65 + 5b4d1af commit 1012d05
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 695 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tmp
env
postgres/data
postgres10/data
catalog
.git
observatory-extension
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ catalog/build/*
catalog/img
catalog/img_thumb
carto/
postgres/data
postgres10/data
docs/build
perftest/*.json
/repository
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ run-parallel:

# Run a task using docker. For example make docker-es-all
docker-%:
docker-compose run --rm bigmetadata mkdir -p tmp/logs
PGSERVICE=$(PGSERVICE) docker-compose run -d -e LOGGING_FILE=etl_$(MAKE_TASK).log bigmetadata make $(MAKE_TASK) SCHEDULER=$(SCHEDULER)

###
Expand Down
30 changes: 4 additions & 26 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
version: '3.1'
services:
postgres:
image: carto/bigmetadata_postgres
volumes:
- ${DO_LOCAL_POSTGRESQL_LIB_DIR:-./postgres/data}:/var/lib/postgresql
- ./observatory-extension:/observatory-extension
- ./dataservices-api:/dataservices-api
- ./data-services:/data-services
- ./cartodb-postgresql:/cartodb-postgresql
- ${DO_LOCAL_TMP_DIR:-./tmp}:/bigmetadata/tmp
- ${DO_REPOSITORY_DIR:-./repository}:/bigmetadata/repository
environment:
PGUSER: docker
PGPASSWORD: docker
PGDATABASE: gis
LC_ALL: C.UTF-8
LANG: C.UTF-8
ALLOW_IP_RANGE: '172.0.0.0/8'
privileged: true
ports:
- 5554:5432
env_file: .env

postgres10:
image: carto/bigmetadata_postgres_10
volumes:
Expand Down Expand Up @@ -65,9 +43,9 @@ services:
ports:
- 8082
depends_on:
- ${PGSERVICE:-postgres}
- ${PGSERVICE:-postgres10}
environment:
PGHOST: ${PGSERVICE:-postgres}
PGHOST: ${PGSERVICE:-postgres10}
PGPORT: ${PGPORT:-5432}
PYTHONPATH: /bigmetadata
PGUSER: docker
Expand All @@ -89,12 +67,12 @@ services:
- ${DO_LOCAL_TMP_DIR:-./tmp}:/bigmetadata/tmp
- ${DO_REPOSITORY_DIR:-./repository}:/bigmetadata/repository
depends_on:
- ${PGSERVICE:-postgres}
- ${PGSERVICE:-postgres10}
- bigmetadata_daemon
entrypoint: /bigmetadata/conf/client_entrypoint.sh
environment:
PYTHONPATH: '/bigmetadata'
PGHOST: ${PGSERVICE:-postgres}
PGHOST: ${PGSERVICE:-postgres10}
PGPORT: ${PGPORT:-5432}
PGUSER: docker
PGPASSWORD: docker
Expand Down
1 change: 0 additions & 1 deletion postgres/.dockerignore

This file was deleted.

34 changes: 0 additions & 34 deletions postgres/Dockerfile

This file was deleted.

Loading

0 comments on commit 1012d05

Please sign in to comment.