Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
be3d3715
Commit
be3d3715
authored
Feb 05, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable some caching in CI build steps
parent
3de71d11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+4
-4
No files found.
ci-scripts/cls_containerize.py
View file @
be3d3715
...
...
@@ -357,11 +357,11 @@ class Containerize():
if
self
.
host
==
'Ubuntu'
:
self
.
cli
=
'docker'
self
.
dockerfileprefix
=
'.ubuntu20'
self
.
cliBuildOptions
=
'
--no-cache
'
self
.
cliBuildOptions
=
''
elif
self
.
host
==
'Red Hat'
:
self
.
cli
=
'sudo podman'
self
.
dockerfileprefix
=
'.rhel9'
self
.
cliBuildOptions
=
'--
no-cache --
disable-compression'
self
.
cliBuildOptions
=
'--disable-compression'
# we always build the ran-build image with all targets
# Creating a tupple with the imageName, the DockerFile prefix pattern, targetName and sanitized option
...
...
@@ -509,7 +509,7 @@ class Containerize():
cmd
.
run
(
f"
{
self
.
cli
}
volume prune --force"
)
# Remove any cached artifacts: we don't use the cache for now, prevent
# out of diskspace problem
cmd
.
run
(
f"
{
self
.
cli
}
buildx prune --force"
)
cmd
.
run
(
f"
{
self
.
cli
}
buildx prune --f
ilter=until=6h --f
orce"
)
# create a zip with all logs
build_log_name
=
f'build_log_
{
self
.
testCase_id
}
'
...
...
@@ -570,7 +570,7 @@ class Containerize():
sys
.
exit
(
1
)
self
.
cli
=
'docker'
self
.
cliBuildOptions
=
'
--no-cache
'
self
.
cliBuildOptions
=
''
# Workaround for some servers, we need to erase completely the workspace
if
self
.
forcedWorkspaceCleanup
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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