Remove iron...

This commit is contained in:
Travis Reeder
2017-05-18 18:59:34 +00:00
committed by Reed Allman
parent 521df8c1ff
commit 9cc12b4b12
146 changed files with 406 additions and 1050 deletions

View File

@@ -20,7 +20,7 @@ the directory on your host. eg: `docker run -v $PWD/data:/functions/data -e DB_U
URL: `postgres://user123:pass456@ec2-117-21-174-214.compute-1.amazonaws.com:6212/db982398`
Use a PostgreSQL database. If you're using IronFunctions in production, you should probably start here.
Use a PostgreSQL database. If you're using Functions in production, you should probably start here.
[More on PostgreSQL](postgres.md)

View File

@@ -1,4 +1,4 @@
# IronFunctions using BoltDB
# Oracle Functions using BoltDB
BoltDB is the default database, you just need to run the API.
@@ -7,5 +7,5 @@ BoltDB is the default database, you just need to run the API.
To keep it persistent, add a volume flag to the command:
```
docker run --rm -it --privileged -v $PWD/bolt.db:/app/bolt.db -p 8080:8080 iron/functions
```
docker run --rm -it --privileged -v $PWD/bolt.db:/app/bolt.db -p 8080:8080 treeder/functions
```

View File

@@ -1,20 +1,20 @@
# IronFunctions using Postgres
# Oracle Functions using Postgres
Let's presuppose you don't have even a MySQL DB ready.
### 1. Let's start a MySQL instance:
```
docker run --name iron-mysql \
-e MYSQL_DATABASE=funcs -e MYSQL_USER=iron -e MYSQL_PASSWORD=ironfunctions -d mysql
docker run --name func-mysql \
-e MYSQL_DATABASE=funcs -e MYSQL_USER=funcy -e MYSQL_PASSWORD=funcypass -d mysql
```
For more configuration options, see [docker mysql docs](https://hub.docker.com/_/mysql/).
### 2. Now let's start IronFunctions connecting to our new mysql instance
### 2. Now let's start Functions connecting to our new mysql instance
```
docker run --rm --privileged --link "iron-mysql:mysql" \
-e "DB_URL=mysql://iron:ironfunctions@tcp(mysql:3306)/funcs" \
-it -p 8080:8080 iron/functions
-e "DB_URL=mysql://funcy:funcypass@tcp(mysql:3306)/funcs" \
-it -p 8080:8080 treeder/functions
```

View File

@@ -1,34 +1,34 @@
# IronFunctions using Postgres
# Oracle Functions using Postgres
Let's presuppose you don't have even a postgres DB ready.
### 1. Let's start a postgres instance:
```
docker run --name iron-postgres \
-e POSTGRES_PASSWORD=ironfunctions -d postgres
docker run --name funcy-postgres \
-e POSTGRES_PASSWORD=funcypass -d postgres
```
### 2. Now let's create a new database to IronFunctions
### 2. Now let's create a new database for Functions
Creating database:
```
docker run -it --rm --link iron-postgres:postgres postgres \
docker run -it --rm --link funcy-postgres:postgres postgres \
psql -h postgres -U postgres -c "CREATE DATABASE funcs;"
```
Granting access to postgres user
```
docker run -it --rm --link iron-postgres:postgres postgres \
docker run -it --rm --link funcy-postgres:postgres postgres \
psql -h postgres -U postgres -c 'GRANT ALL PRIVILEGES ON DATABASE funcs TO postgres;'
```
### 3. Now let's start IronFunctions connecting to our new postgres instance
### 3. Now let's start Functions connecting to our new postgres instance
```
docker run --rm --privileged --link "iron-postgres:postgres" \
-e "DB_URL=postgres://postgres:ironfunctions@postgres/funcs?sslmode=disable" \
-it -p 8080:8080 iron/functions
-e "DB_URL=postgres://postgres:funcypass@postgres/funcs?sslmode=disable" \
-it -p 8080:8080 treeder/functions
```