Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pado
Asyst Moodle Plugin
Commits
ce07f9c2
Commit
ce07f9c2
authored
4 months ago
by
Artem Baranovskyi
Browse files
Options
Download
Email Patches
Plain Diff
Image build is optimized.
parent
7ae450a6
Pipeline
#10767
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-4
.gitlab-ci.yml
flask_ml_api/Dockerfile
+1
-1
flask_ml_api/Dockerfile
with
5 additions
and
5 deletions
+5
-5
.gitlab-ci.yml
+
4
-
4
View file @
ce07f9c2
...
...
@@ -10,7 +10,7 @@
# This template uses one generic job with conditional builds
# for the default branch and all other (MR) branches.
stages
:
sta
stages
:
-
build
-
deploy
...
...
@@ -50,7 +50,7 @@ build:
image
:
docker:20.10.16
services
:
-
name
:
docker:20.10.16-dind
command
:
[
"
--host=tcp://0.0.0.0:2375"
,
"
--tls=false"
,
"
--storage-driver=overlay2"
,
"
--mtu=1500"
,
"
--data-root=/mnt/volume"
]
command
:
[
"
--host=tcp://0.0.0.0:2375"
,
"
--tls=false"
,
"
--storage-driver=overlay2"
,
"
--mtu=1500"
,
"
--data-root=/mnt/volume"
]
script
:
-
docker info
-
docker buildx create --use
...
...
@@ -64,9 +64,9 @@ deploy:
image
:
docker:20.10.16
services
:
-
name
:
docker:20.10.16-dind
command
:
[
"
--tls=false"
,
"
--storage-driver=overlay2"
,
"
--mtu=1500"
,
"
--data-root=/mnt/volume"
]
command
:
[
"
--tls=false"
,
"
--storage-driver=overlay2"
,
"
--mtu=1500"
,
"
--data-root=/mnt/volume"
]
script
:
-
docker pull 22baar1mst/asyst-nlp-grader:latest
-
docker run -d 22baar1mst/asyst-nlp-grader:latest
only
:
-
master
\ No newline at end of file
-
master
This diff is collapsed.
Click to expand it.
flask_ml_api/Dockerfile
+
1
-
1
View file @
ce07f9c2
...
...
@@ -40,4 +40,4 @@ RUN chown -R www-data:www-data /app && chmod -R 755 /app
EXPOSE
5000
CMD
["/opt/myenv/bin/python", "/app/api.py"]
CMD
["/opt/myenv/bin/python", "/app/api.py"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets