mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Update references remove refs to treeder oracle funcy (#376)
* Remove lots of refs to iron and funcy oracle etc.. * more ref replacements * Replacing more refs. Treeder * Use Fn not FN
This commit is contained in:
committed by
Travis Reeder
parent
5219227393
commit
c7f3066c75
@@ -1,27 +1,27 @@
|
||||
# Oracle Functions using Postgres
|
||||
# Fn using Postgres
|
||||
|
||||
Let's presuppose you don't have even a postgres DB ready.
|
||||
|
||||
### 1. Let's start a postgres instance:
|
||||
|
||||
```
|
||||
docker run --name funcy-postgres \
|
||||
-e POSTGRES_PASSWORD=funcypass -d postgres
|
||||
```
|
||||
docker run --name func-postgres \
|
||||
-e POSTGRES_PASSWORD=funcpass -d postgres
|
||||
```
|
||||
|
||||
### 2. Now let's create a new database for Functions
|
||||
|
||||
Creating database:
|
||||
|
||||
```
|
||||
docker run -it --rm --link funcy-postgres:postgres postgres \
|
||||
docker run -it --rm --link func-postgres:postgres postgres \
|
||||
psql -h postgres -U postgres -c "CREATE DATABASE funcs;"
|
||||
```
|
||||
|
||||
Granting access to postgres user
|
||||
|
||||
```
|
||||
docker run -it --rm --link funcy-postgres:postgres postgres \
|
||||
docker run -it --rm --link func-postgres:postgres postgres \
|
||||
psql -h postgres -U postgres -c 'GRANT ALL PRIVILEGES ON DATABASE funcs TO postgres;'
|
||||
```
|
||||
|
||||
@@ -29,6 +29,6 @@ docker run -it --rm --link funcy-postgres:postgres postgres \
|
||||
|
||||
```
|
||||
docker run --rm --privileged --link "iron-postgres:postgres" \
|
||||
-e "DB_URL=postgres://postgres:funcypass@postgres/funcs?sslmode=disable" \
|
||||
-it -p 8080:8080 treeder/functions
|
||||
-e "DB_URL=postgres://postgres:funcpass@postgres/funcs?sslmode=disable" \
|
||||
-it -p 8080:8080 fnproject/functions
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user