Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hive
hivemind
Commits
04028b5b
Commit
04028b5b
authored
7 years ago
by
furion
Browse files
Options
Downloads
Patches
Plain Diff
use uwsgi
parent
b82201de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+8
-19
8 additions, 19 deletions
Dockerfile
server/__init__.py
+0
-0
0 additions, 0 deletions
server/__init__.py
service/hive-web/run
+0
-0
0 additions, 0 deletions
service/hive-web/run
with
8 additions
and
19 deletions
Dockerfile
+
8
−
19
View file @
04028b5b
...
...
@@ -8,6 +8,7 @@ ENV LC_ALL en_US.UTF-8
ENV
APP_ROOT /app
ENV
WSGI_APP ${APP_ROOT}/hive/server/serve.py
ENV
HTTP_SERVER_PORT 8080
ENV
HTTP_SERVER_STATS_PORT 9191
RUN
\
apt-get update
&&
\
...
...
@@ -25,22 +26,12 @@ RUN \
libxml2-dev
\
libxslt-dev
\
runit
\
nginx
libpcre3
\
libpcre3-dev
RUN
\
mkdir
-p
/var/lib/nginx/body
&&
\
mkdir
-p
/var/lib/nginx/scgi
&&
\
mkdir
-p
/var/lib/nginx/uwsgi
&&
\
mkdir
-p
/var/lib/nginx/fastcgi
&&
\
mkdir
-p
/var/lib/nginx/proxy
&&
\
chown
-R
www-data:www-data /var/lib/nginx
&&
\
mkdir
-p
/var/log/nginx
&&
\
touch
/var/log/nginx/access.log
&&
\
touch
/var/log/nginx/error.log
&&
\
chown
www-data:www-data /var/log/nginx/
*
.log
&&
\
touch
/var/run/nginx.pid
&&
\
chown
www-data:www-data /var/run/nginx.pid
pip3
install
--upgrade
pip
&&
\
pip3
install
uwsgi
ADD
. /app
...
...
@@ -51,10 +42,7 @@ RUN \
WORKDIR
/app
RUN
\
pip3
install
--upgrade
pip
&&
\
pip3
install
pipenv
&&
\
pipenv lock
&&
\
pipenv
install
--three
--dev
&&
\
pip3
install
.
&&
\
apt-get remove
-y
\
build-essential
\
libffi-dev
\
...
...
@@ -69,4 +57,5 @@ RUN \
/usr/include
\
/usr/local/include
EXPOSE
${HTTP_SERVER_PORT}
\ No newline at end of file
EXPOSE
${HTTP_SERVER_PORT}
EXPOSE
${HTTP_SERVER_STATS_PORT}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
server/__init__.py
0 → 100644
+
0
−
0
View file @
04028b5b
This diff is collapsed.
Click to expand it.
service/web/run
→
service/
hive-
web/run
+
0
−
0
View file @
04028b5b
File moved
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