Skip to content

Commit 9690ea1

Browse files
authored
Merge branch 'master' into pokemon-ability-sv
2 parents b3c5eb8 + ba99279 commit 9690ea1

18 files changed

+359
-170
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ docker-down: # (Docker) Stop and removes containers and networks
6868
docker-compose down
6969

7070
docker-prod:
71-
docker-compose -f docker-compose.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d
71+
docker-compose -f docker-compose.yml -f docker-compose.override.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d
7272

7373
docker-setup: docker-up docker-migrate docker-build-db # (Docker) Start services, prepare the latest DB schema, populate the DB
7474

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A RESTful API for Pokémon - [pokeapi.co](https://pokeapi.co)
2020

2121
> Beta GraphQL support is rolling out! Check out the [GraphQL paragraph](#graphql--) for more info.
2222
23-
## Setup   [![pyVersion37](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/download/releases/3.7/)
23+
## Setup   [![pyVersion310](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/download/releases/3.10/)
2424

2525
- Download this source code into a working directory, be sure to use the flag `--recurse-submodules` to clone also our submodules.
2626

Resources/compose/docker-compose-prod-graphql.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
version: '2.4'
22
services:
3+
cache:
4+
image: redis:7.0.7-alpine
35
db:
6+
image: postgres:15.1
47
environment:
58
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
69
POSTGRES_USER: "${POSTGRES_USER}"
710

811
app:
12+
image: pokeapi/pokeapi:master
913
env_file: .env
1014
restart: "no"
1115

1216
web:
17+
image: nginx:1.23.3-alpine
1318
volumes:
1419
- graphiql:/public-console:ro
1520

1621
graphql-engine:
22+
image: hasura/graphql-engine:v2.16.1
1723
cpus: 0.7
1824
memswap_limit: 3g
1925
mem_limit: 700m
@@ -34,5 +40,3 @@ services:
3440

3541
volumes:
3642
graphiql:
37-
38-
# docker-compose -f docker-compose.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d

Resources/docker/app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7-alpine
1+
FROM python:3.10-alpine
22

33
ENV PYTHONUNBUFFERED 1
44
ENV DJANGO_SETTINGS_MODULE 'config.docker-compose'

Resources/docker/app/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
# Quick reference
22

3-
- **Maintained by**:
3+
- **Maintained by**:
44
[the PokeAPI Contributors](https://github.com/PokeAPI/pokeapi/graphs/contributors)
55

6-
- **Where to get help**:
6+
- **Where to get help**:
77
[PokeAPI Slack](http://pokeapi.slack.com/).
88

9-
- **Where to file issues**:
9+
- **Where to file issues**:
1010
[https://github.com/PokeAPI/pokeapi/issues](https://github.com/PokeAPI/pokeapi/issues)
1111

12-
- **Source of this description**:
12+
- **Source of this description**:
1313
[pokeapi repo's `Resources/docker/app/` directory](https://github.com/PokeAPI/pokeapi/blob/master/Resources/docker/app/README.md)
1414

1515
## Supported tags and respective `Dockerfile` links
1616

17-
- [`latest`](https://github.com/PokeAPI/pokeapi/blob/master/Resources/docker/app/Dockerfile)
1817
- [`master`](https://github.com/PokeAPI/pokeapi/blob/master/Resources/docker/app/Dockerfile)
1918
- [`staging`](https://github.com/PokeAPI/pokeapi/blob/staging/Resources/docker/app/Dockerfile)
2019

21-
> `pokeapi` uses `python:3.7-alpine` as base image.
20+
> `pokeapi` uses `python:3.10-alpine` as base image.
2221
2322
## What is PokeAPI?
2423

Resources/k8s/kustomize/base/deployments/graphql-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
done;
2626
containers:
2727
- name: graphql-engine
28-
image: hasura/graphql-engine:v2.0.0-alpha.5
28+
image: hasura/graphql-engine:v2.16.1
2929
ports:
3030
- containerPort: 8080
3131
env:

Resources/k8s/kustomize/base/deployments/haproxy-ingress-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
serviceAccountName: ingress-controller
1717
containers:
1818
- name: haproxy-ingress-controller
19-
image: quay.io/jcmoraisjr/haproxy-ingress:v0.12.3
19+
image: quay.io/jcmoraisjr/haproxy-ingress:v0.14.0
2020
resources:
2121
limits:
2222
memory: "256Mi"

Resources/k8s/kustomize/base/deployments/pokeapi-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
initContainers:
1818
- name: postgres-connection-checker
19-
image: postgres:13.3-alpine
19+
image: postgres:15.1-alpine
2020
command: ['sh', '-c']
2121
args:
2222
- until pg_isready -h postgresql -p 5432; do
@@ -26,6 +26,7 @@ spec:
2626
containers:
2727
- name: pokeapi
2828
image: pokeapi/pokeapi:master
29+
imagePullPolicy: Always
2930
ports:
3031
- containerPort: 8080
3132
securityContext: # CI: Github Actions kills this container if not run with root. Otherwise, it's safe to use the default pokeapi/pokeapi user and remove these lines.

Resources/k8s/kustomize/base/deployments/postgres-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
- name: postgresql
19-
image: postgres:13.3-alpine
19+
image: postgres:15.1-alpine
2020
ports:
2121
- containerPort: 5432
2222
env:

Resources/k8s/kustomize/base/deployments/redis-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
- name: redis
19-
image: redis:6.2.3-alpine
19+
image: redis:7.0.7-alpine
2020
ports:
2121
- containerPort: 6379
2222
resources: {}

0 commit comments

Comments
 (0)