Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
epm-docker-test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
epm-docker-test
Commits
902cbfd2
Commit
902cbfd2
authored
Apr 09, 2026
by
Ivan Mazhukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanups
parent
5096bfd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
epm-docker-test.sh
epm-docker-test.sh
+7
-17
No files found.
epm-docker-test.sh
View file @
902cbfd2
...
...
@@ -107,8 +107,10 @@ require_command() {
}
sanitize_name
()
{
local
value
value
=
"
$(
printf
'%s'
"
$1
"
|
tr
'[:upper:]'
'[:lower:]'
|
sed
-e
's/[^a-z0-9]/-/g'
-e
's/^-*//'
-e
's/-*$//'
)
"
local
value
=
"
${
1
,,
}
"
value
=
"
${
value
//[^a-z0-9]/-
}
"
value
=
"
${
value
##-
}
"
value
=
"
${
value
%%-
}
"
printf
'%s\n'
"
${
value
:-
run
}
"
}
...
...
@@ -118,7 +120,8 @@ normalize_system_name() {
local
image_name
local
image_tag
normalized
=
"
$(
printf
'%s'
"
$raw
"
|
tr
-d
' '
|
tr
'[:upper:]'
'[:lower:]'
)
"
normalized
=
"
${
raw
// /
}
"
normalized
=
"
${
normalized
,,
}
"
[[
-n
"
$normalized
"
]]
||
fatal
"Target system is empty"
...
...
@@ -228,22 +231,9 @@ can_use_local_docker() {
verify_eepm_tree
()
{
local
tree
=
"
$1
"
local
epm_path
[[
-d
"
$tree
"
]]
||
fatal
"eepm tree is not a directory:
$tree
"
epm_path
=
"
$tree
/bin/eepm"
if
[[
!
-e
"
$epm_path
"
]]
;
then
fatal
"eepm tree does not contain ./bin/eepm:
$tree
"
fi
if
[[
!
-f
"
$epm_path
"
]]
;
then
fatal
"eepm entrypoint is not a regular file:
$epm_path
"
fi
if
[[
!
-r
"
$epm_path
"
]]
;
then
fatal
"eepm entrypoint is not readable:
$epm_path
"
fi
[[
-f
"
$tree
/bin/eepm"
&&
-r
"
$tree
/bin/eepm"
]]
||
fatal
"eepm entrypoint not found or not readable:
$tree
/bin/eepm"
}
resolve_checked_source_path
()
{
...
...
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