Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
G
gracedb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
91
Issues
91
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
gracedb
Commits
9bc8a205
Verified
Commit
9bc8a205
authored
Feb 26, 2019
by
Tanner Prestegard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require Twilio credentials for containerized deployment
parent
67c84adc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
Dockerfile
Dockerfile
+2
-0
config/settings/container/base.py
config/settings/container/base.py
+7
-3
No files found.
Dockerfile
View file @
9bc8a205
...
...
@@ -87,6 +87,8 @@ RUN DJANGO_SETTINGS_MODULE=${SETTINGS_MODULE} \
LVALERT_PASSWORD
=
fake_password
\
LVALERT_SERVER
=
fake_server
\
LVALERT_OVERSEER_PORT
=
2
\
DJANGO_TWILIO_ACCOUNT_SID
=
fake_sid
\
DJANGO_TWILIO_AUTH_TOKEN
=
fake_token
\
python manage.py collectstatic
--noinput
RUN
rm
-rf
/app/logs/
*
/app/project_data/
*
...
...
config/settings/container/base.py
View file @
9bc8a205
...
...
@@ -48,9 +48,13 @@ if lvalert_password is None:
raise
ImproperlyConfigured
(
'Could not get LVAlert password from envvars.'
)
# Get Twilio account information from environment
# FIXME
TWILIO_ACCOUNT_SID
=
os
.
environ
.
get
(
'DJANGO_TWILIO_ACCOUNT_SID'
,
'abcd'
)
TWILIO_AUTH_TOKEN
=
os
.
environ
.
get
(
'DJANGO_TWILIO_AUTH_TOKEN'
,
'abcd'
)
TWILIO_ACCOUNT_SID
=
os
.
environ
.
get
(
'DJANGO_TWILIO_ACCOUNT_SID'
,
None
)
if
TWILIO_ACCOUNT_SID
is
None
:
raise
ImproperlyConfigured
(
'Could not get Twilio acct SID from envvars.'
)
TWILIO_AUTH_TOKEN
=
os
.
environ
.
get
(
'DJANGO_TWILIO_AUTH_TOKEN'
,
None
)
if
TWILIO_AUTH_TOKEN
is
None
:
raise
ImproperlyConfigured
(
'Could not get Twilio auth token from envvars.'
)
# Database settings -----------------------------------------------------------
DATABASES
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment