Skip to content

Commit

Permalink
Upgrade to postgres 10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rooftopcellist committed Jul 16, 2019
1 parent 153507d commit 851230f
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ If you start a second terminal session, you can take a look at the running conta
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
aa4a75d6d77b gcr.io/ansible-tower-engineering/awx_devel:devel "/tini -- /bin/sh ..." 23 seconds ago Up 15 seconds 0.0.0.0:5555->5555/tcp, 0.0.0.0:6899-6999->6899-6999/tcp, 0.0.0.0:8013->8013/tcp, 0.0.0.0:8043->8043/tcp, 22/tcp, 0.0.0.0:8080->8080/tcp tools_awx_1
e4c0afeb548c postgres:9.6 "docker-entrypoint..." 26 seconds ago Up 23 seconds 5432/tcp tools_postgres_1
e4c0afeb548c postgres:10.6 "docker-entrypoint..." 26 seconds ago Up 23 seconds 5432/tcp tools_postgres_1
0089699d5afd tools_logstash "/docker-entrypoin..." 26 seconds ago Up 25 seconds tools_logstash_1
4d4ff0ced266 memcached:alpine "docker-entrypoint..." 26 seconds ago Up 25 seconds 0.0.0.0:11211->11211/tcp tools_memcached_1
92842acd64cd rabbitmq:3-management "docker-entrypoint..." 26 seconds ago Up 24 seconds 4369/tcp, 5671-5672/tcp, 15671/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp tools_rabbitmq_1
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ clean-elk:
docker rm tools_kibana_1

psql-container:
docker run -it --net tools_default --rm postgres:9.6 sh -c 'exec psql -h "postgres" -p "5432" -U postgres'
docker run -it --net tools_default --rm postgres:10.6 sh -c 'exec psql -h "postgres" -p "5432" -U postgres'

VERSION:
@echo "awx: $(VERSION)"
Binary file removed docs/licenses/psycopg2-2.7.3.2.tar.gz
Binary file not shown.
Binary file added docs/licenses/psycopg2-2.8.2.tar.gz
Binary file not shown.
16 changes: 6 additions & 10 deletions docs/licenses/psycopg2.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
psycopg2 and the LGPL
=====================
---------------------

psycopg2 is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
Expand All @@ -25,19 +25,14 @@ statement from all source files in the program, then also delete it here.

You should have received a copy of the GNU Lesser General Public License
along with psycopg2 (see the doc/ directory.)
If not, see <http://www.gnu.org/licenses/>.
If not, see <https://www.gnu.org/licenses/>.


Alternative licenses
====================
--------------------

If you prefer you can use the Zope Database Adapter ZPsycopgDA (i.e.,
every file inside the ZPsycopgDA directory) user the ZPL license as
published on the Zope web site, http://www.zope.org/Resources/ZPL.

Also, the following BSD-like license applies (at your option) to the
files following the pattern psycopg/adapter*.{h,c} and
psycopg/microprotocol*.{h,c}:
The following BSD-like license applies (at your option) to the files following
the pattern ``psycopg/adapter*.{h,c}`` and ``psycopg/microprotocol*.{h,c}``:

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
Expand All @@ -52,3 +47,4 @@ psycopg/microprotocol*.{h,c}:
be misrepresented as being the original software.

3. This notice may not be removed or altered from any source distribution.

2 changes: 1 addition & 1 deletion installer/roles/kubernetes/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
-e POSTGRESQL_PASSWORD={{ pg_password | quote }} \
-e POSTGRESQL_ADMIN_PASSWORD={{ pg_password | quote }} \
-e POSTGRESQL_DATABASE={{ pg_database }} \
-e POSTGRESQL_VERSION=9.6 \
-e POSTGRESQL_VERSION=10.6 \
-n {{ kubernetes_namespace }}
register: openshift_pg_activate
no_log: yes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ message: |-
Database Name: ${POSTGRESQL_DATABASE}
Connection URL: postgresql://${DATABASE_SERVICE_NAME}:5432/

For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/9.5.
For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/.
metadata:
annotations:
description: |-
PostgreSQL database service, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/9.5.
PostgreSQL database service, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/.

NOTE: Scaling to more than one replica is not supported. You must have persistent volumes available in your cluster to use this template.
iconClass: icon-postgresql
Expand Down
2 changes: 1 addition & 1 deletion installer/roles/local_docker/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rabbitmq_port: "5672"
rabbitmq_user: "guest"
rabbitmq_password: "guest"

postgresql_version: "10.7"
postgresql_version: "10.6"
postgresql_image: "postgres:{{postgresql_version}}"

memcached_host: "memcached"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ services:

{% if pg_hostname is not defined %}
postgres:
image: postgres:10.7
image: postgres:10.6
container_name: awx_postgres
restart: unless-stopped
volumes:
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Markdown==2.6.11 # used for formatting API help
ordereddict==1.1
prometheus_client==0.6.0
psutil==5.4.3
psycopg2==2.7.3.2 # problems with Segmentation faults / wheels on upgrade
psycopg2==2.8.2
pygerduty==0.37.0
pyparsing==2.2.0
python-dateutil==2.7.2 # contains support for TZINFO= parsing
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pexpect==4.6.0 # via ansible-runner
pkgconfig==1.5.1 # via xmlsec
prometheus_client==0.6.0
psutil==5.4.3
psycopg2==2.7.3.2
psycopg2==2.8.2
ptyprocess==0.6.0 # via pexpect
pyasn1-modules==0.2.5 # via python-ldap, service-identity
pyasn1==0.4.5 # via pyasn1-modules, python-ldap, service-identity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
- name: awx-memcached
image: memcached
- name: postgres
image: postgres:9.6
image: postgres:10.6
volumes:
- name: localdev
persistentVolumeClaim:
Expand Down
2 changes: 1 addition & 1 deletion tools/docker-compose-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ services:
- CLUSTERED=true
- CLUSTER_WITH=rabbitmq_1
postgres:
image: postgres:10.7
image: postgres:10.6
container_name: tools_postgres_1
memcached:
image: memcached:alpine
Expand Down
2 changes: 1 addition & 1 deletion tools/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ services:
# dockerfile: Dockerfile-logstash
# Postgres Database Container
postgres:
image: postgres:10.7
image: postgres:10.6
container_name: tools_postgres_1
ports:
- "5432:5432"
Expand Down

0 comments on commit 851230f

Please sign in to comment.