Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schmitz
FoD
Commits
8ba9dd81
Commit
8ba9dd81
authored
6 years ago
by
David Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
docker: updated Dockerfile, run script, settings.dist for docker
parent
afbb2366
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
flowspy/settings.py.dist
+2
-1
2 additions, 1 deletion
flowspy/settings.py.dist
runfod.sh
+13
-2
13 additions, 2 deletions
runfod.sh
with
16 additions
and
3 deletions
Dockerfile
+
1
−
0
View file @
8ba9dd81
...
@@ -2,6 +2,7 @@ FROM debian:stable
...
@@ -2,6 +2,7 @@ FROM debian:stable
RUN
apt-get
-yqq
update
RUN
apt-get
-yqq
update
RUN
apt-get
-yqq
install
virtualenv python python-dev vim git gcc libevent-dev libxml2-dev libxslt-dev patch beanstalkd mariadb-server libmariadb-dev libmariadbclient-dev-compat sqlite3
RUN
apt-get
-yqq
install
virtualenv python python-dev vim git gcc libevent-dev libxml2-dev libxslt-dev patch beanstalkd mariadb-server libmariadb-dev libmariadbclient-dev-compat sqlite3
RUN
apt-get
-yqq
install
procps
# RUN echo "create database fod;" | mysql -u root
# RUN echo "create database fod;" | mysql -u root
...
...
This diff is collapsed.
Click to expand it.
flowspy/settings.py.dist
+
2
−
1
View file @
8ba9dd81
...
@@ -66,7 +66,8 @@ DATABASES = {
...
@@ -66,7 +66,8 @@ DATABASES = {
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = 'Europe/Athens'
#TIME_ZONE = 'Europe/Athens'
TIME_ZONE = 'UTC'
# Language code for this installation. All choices can be found here:
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
# http://www.i18nguy.com/unicode/language-identifiers.html
...
...
This diff is collapsed.
Click to expand it.
runfod.sh
+
13
−
2
View file @
8ba9dd81
...
@@ -3,6 +3,15 @@
...
@@ -3,6 +3,15 @@
export
LC_ALL
=
"C"
# this will unfortunatelly break ./manage.py createsuperuser as locale string is literally used to derive encoding
export
LC_ALL
=
"C"
# this will unfortunatelly break ./manage.py createsuperuser as locale string is literally used to derive encoding
.
/srv/venv/bin/activate
.
/srv/venv/bin/activate
if
[
!
-e
/srv/flowspy/pythonenv
]
;
then
cat
>
/srv/flowspy/pythonenv
<<
EOF
#!/bin/bash
. /srv/venv/bin/activate
exec "
\$
@"
EOF
chmod
+x /srv/flowspy/pythonenv
fi
##
##
# fix needed to make sure gevent works # may be put into Dockerfile instead
# fix needed to make sure gevent works # may be put into Dockerfile instead
...
@@ -20,8 +29,10 @@ cd "$(dirname "$0")"
...
@@ -20,8 +29,10 @@ cd "$(dirname "$0")"
echo
"Starting services FoD is depending on generically: beanstalkd"
1>&2
echo
"Starting services FoD is depending on generically: beanstalkd"
1>&2
service beanstalkd start
service beanstalkd start
echo
"Starting DB services FoD might be depending on (depending on its config): mysql"
1>&2
if
[
!
-x
./fodcli_db_is_mysql
]
||
./fodcli_db_is_mysql
;
then
service mysql start
echo
"Starting DB services FoD might be depending on (depending on its config): mysql"
1>&2
service mysql start
fi
# hook to initiallize (without any user interaction admin user and its peer data)
# hook to initiallize (without any user interaction admin user and its peer data)
[
-x
./fodcli_insert_basic_data.sh
]
&&
./fodcli_insert_basic_data.sh
[
-x
./fodcli_insert_basic_data.sh
]
&&
./fodcli_insert_basic_data.sh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment