Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feedback-loop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
ai3
tools
feedback-loop
Commits
a4fa5617
Commit
a4fa5617
authored
2 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Move FLASK_APP to our wrapper script
parent
ef4df4ab
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+0
-6
0 additions, 6 deletions
Dockerfile
feedbackloop.sh
+2
-0
2 additions, 0 deletions
feedbackloop.sh
feedbackloop/main.py
+1
-1
1 addition, 1 deletion
feedbackloop/main.py
with
3 additions
and
7 deletions
Dockerfile
+
0
−
6
View file @
a4fa5617
FROM
registry.git.autistici.org/ai3/docker/s6-base:master
AS
base
FROM
registry.git.autistici.org/ai3/docker/s6-base:master
AS
base
RUN
apt-get
-q
update
&&
\
RUN
apt-get
-q
update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt-get
-qy
install
--no-install-recommends
\
env
DEBIAN_FRONTEND
=
noninteractive apt-get
-qy
install
--no-install-recommends
\
python3-flask python3-sqlalchemy python3-flask-sqlalchemy python3-cheroot
\
python3-flask python3-sqlalchemy python3-flask-sqlalchemy python3-cheroot
\
...
@@ -8,17 +7,12 @@ RUN apt-get -q update && \
...
@@ -8,17 +7,12 @@ RUN apt-get -q update && \
rm
-fr
/var/lib/apt/lists/
*
rm
-fr
/var/lib/apt/lists/
*
FROM
base
AS
build
FROM
base
AS
build
ADD
. /src
ADD
. /src
WORKDIR
/src
WORKDIR
/src
RUN
python3 setup.py bdist_wheel
RUN
python3 setup.py bdist_wheel
FROM
base
FROM
base
COPY
--from=build /src/dist/*.whl /tmp/wheels/
COPY
--from=build /src/dist/*.whl /tmp/wheels/
COPY
conf/ /etc/
COPY
conf/ /etc/
COPY
feedbackloop.sh /usr/local/bin/feedbackloop
COPY
feedbackloop.sh /usr/local/bin/feedbackloop
RUN
cd
/tmp/wheels
&&
pip3
install
*
.whl
&&
rm
-fr
/tmp/wheels
RUN
cd
/tmp/wheels
&&
pip3
install
*
.whl
&&
rm
-fr
/tmp/wheels
ENV
FLASK_APP=feedbackloop.main:create_app
This diff is collapsed.
Click to expand it.
feedbackloop.sh
+
2
−
0
View file @
a4fa5617
#!/bin/sh
#!/bin/sh
export
FLASK_APP
=
feedbackloop.main:create_app
exec
flask
"
$@
"
exec
flask
"
$@
"
This diff is collapsed.
Click to expand it.
feedbackloop/main.py
+
1
−
1
View file @
a4fa5617
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