Update docker scripts to Node 14 and Postgres 12

This commit is contained in:
Eric 2020-07-30 14:34:37 -05:00 committed by Eric Schultz
parent 3ae5937158
commit 6e01ac5826
5 changed files with 11 additions and 11 deletions

View file

@ -29,9 +29,9 @@ All new backend code and React components well tested.
## Prerequisites ## Prerequisites
Houdini is designed and tested to run with the following: Houdini is designed and tested to run with the following:
* Ruby 2.6 * Ruby 2.6
* Node 12 * Node 14
* Yarn * Yarn
* PostgreSQL 10 or 11 * PostgreSQL 10 or 12
* Ubuntu 18.04, 20.04 or equivalent * Ubuntu 18.04, 20.04 or equivalent
## Get involved ## Get involved
@ -56,8 +56,8 @@ which make development much easier.
These include: These include:
* PostgreSQL 10 or 11 * PostgreSQL 12 (10 probably works)
* NodeJS 13 (we require 13 or higher because we want the full internationalization built-in) * NodeJS 14 (we require 14 because we want the full internationalization built-in)
* Ruby 2.6.6 (NOTE: the default of Ruby 2.7.1 in Debian should * Ruby 2.6.6 (NOTE: the default of Ruby 2.7.1 in Debian should
function but you will receive a ton of deprecation function but you will receive a ton of deprecation
warnings from Ruby) warnings from Ruby)
@ -77,16 +77,16 @@ prepared for AVN, like Houdini.
#### One-time setup #### One-time setup
You'll want to run the next commands as root or via sudo (for Ubuntu 18.04 users or anyone running ProgresSQL 10, change "postgresql-11" below to "postgresql-10"). You could do this by typing `sudo /bin/sh` running the commands from there. You'll want to run the next commands as root or via sudo (for Ubuntu 18.04 users or anyone running ProgresSQL 10, change "postgresql-12" below to "postgresql-10"). You could do this by typing `sudo /bin/sh` running the commands from there.
```bash ```bash
apt update apt update
apt install curl -yy apt install curl -yy
curl -sL https://deb.nodesource.com/setup_13.x | bash - curl -sL https://deb.nodesource.com/setup_14.x | bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt update apt update
apt install git postgresql-11 libpq-dev libjemalloc-dev libvips42 yarn -yy apt install git postgresql-12 libpq-dev libjemalloc-dev libvips42 yarn -yy
``` ```
You'll run the next commands as your normal user. You'll run the next commands as your normal user.

View file

@ -13,7 +13,7 @@ services:
volumes: volumes:
- ../../:/myapp - ../../:/myapp
db: db:
image: postgres:9.6 image: postgres:12.0
environment: environment:
POSTGRES_USER: "admin" POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "password" POSTGRES_PASSWORD: "password"

View file

@ -21,7 +21,7 @@ services:
depends_on: depends_on:
- db - db
db: db:
image: postgres:9.6 image: postgres:12.0
environment: environment:
POSTGRES_USER: "admin" POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "password" POSTGRES_PASSWORD: "password"

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
curl -sL https://deb.nodesource.com/setup_13.x | bash - curl -sL https://deb.nodesource.com/setup_14.x | bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
apt-get -yy install postgresql-client-9.6 apt-get -yy install postgresql-client-12.0