Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from lioramilbaum/envconsul
envconsul
- Loading branch information
Showing
14 changed files
with
51 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
GUEST_HOME=${GUEST_HOME:='.'} | ||
|
||
apt-get update | ||
apt-get install -y python3-pip python3-setuptools mysql-client libmysqlclient-dev | ||
|
||
pip3 install -r $GUEST_HOME/requirements.lock | ||
|
||
MYSQL_ROOT_PASSWORD=$(cd $GUEST_HOME && export GUEST_HOME=$GUEST_HOME && python3 -c "from project.secrets import get_secret; print(get_secret('mysql/password'))") | ||
export MYSQL_ROOT_PASSWORD | ||
docker-compose -f $GUEST_HOME/microservices/docker-compose.yml up -d db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +0,0 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from flask import Flask | ||
from flask_mysqldb import MySQL | ||
|
||
|
||
def create_app(): | ||
app = Flask(__name__) | ||
return app | ||
|
||
|
||
def create_db(app): | ||
app.config['MYSQL_HOST'] = '127.0.0.1' | ||
app.config['MYSQL_USER'] = 'root' | ||
app.config['MYSQL_PASSWORD'] = 'root' | ||
app.config['MYSQL_DB'] = 'zapata' | ||
app.config['MYSQL_CURSORCLASS'] = 'DictCursor' | ||
app.secret_key = 'secret123' | ||
|
||
db = MySQL(app) | ||
return db | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from flask import Flask | ||
from flask_mysqldb import MySQL | ||
|
||
|
||
def create_app(): | ||
app = Flask(__name__) | ||
return app | ||
|
||
|
||
def create_db(app): | ||
app.config['MYSQL_HOST'] = '127.0.0.1' | ||
app.config['MYSQL_USER'] = 'root' | ||
app.config['MYSQL_PASSWORD'] = 'root' | ||
app.config['MYSQL_DB'] = 'zapata' | ||
app.config['MYSQL_CURSORCLASS'] = 'DictCursor' | ||
app.secret_key = 'secret123' | ||
|
||
db = MySQL(app) | ||
return db |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ Flask | |
wtforms | ||
passlib | ||
flask_mysqldb | ||
mailchimp3 | ||
mailchimp3 | ||
requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters