Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KNIGHT
Asyst Moodle Plugin
Commits
97c54fcf
Commit
97c54fcf
authored
Jan 04, 2025
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
5e5f03f8
Pipeline
#10688
failed with stages
in 60 minutes and 27 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
97c54fcf
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
# for the default branch and all other (MR) branches.
# for the default branch and all other (MR) branches.
stages
:
stages
:
-
build
-
build
-
deploy
-
deploy
variables
:
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_DRIVER
:
overlay2
...
@@ -27,17 +27,21 @@ build:
...
@@ -27,17 +27,21 @@ build:
image
:
docker:dind
image
:
docker:dind
services
:
services
:
-
name
:
docker:dind
-
name
:
docker: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"
]
before_script
:
before_script
:
-
mkdir -p /mnt/volume
-
mkdir -p /mnt/volume
-
mount /dev/vdb /mnt/volume || echo "Failed to mount /dev/vdb"
-
mount /dev/vdb /mnt/volume || echo "Failed to mount /dev/vdb"
-
export DOCKER_TMPDIR=/mnt/volume
-
export DOCKER_TMPDIR=/mnt/volume
-
docker system prune -a -f --volumes ||
true
-
docker system prune -a -f --volumes ||
true
-
docker container prune -f ||
true
-
docker network prune -f ||
true
-
df -h
-
df -h
after_script
:
after_script
:
-
df -h
-
df -h
-
docker system prune -a -f
-
docker system prune -a -f
-
docker volume prune -f
-
docker volume prune -f
-
docker container prune -f
-
docker network prune -f
script
:
script
:
-
docker build --cache-from=flask-backend-full --no-cache --progress=plain -t flask-backend-full -f flask_ml_api/Dockerfile .
-
docker build --cache-from=flask-backend-full --no-cache --progress=plain -t flask-backend-full -f flask_ml_api/Dockerfile .
-
df -h
-
df -h
...
@@ -58,7 +62,7 @@ deploy:
...
@@ -58,7 +62,7 @@ deploy:
image
:
docker:dind
image
:
docker:dind
services
:
services
:
-
name
:
docker:dind
-
name
:
docker: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"
]
before_script
:
before_script
:
-
df -h
-
df -h
-
docker load -i /mnt/volume/flask-backend-full.tar
-
docker load -i /mnt/volume/flask-backend-full.tar
...
...
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