Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kong-build-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
MIkhail Golovanov
kong-build-tools
Commits
60f2c3b7
Unverified
Commit
60f2c3b7
authored
4 years ago
by
Guilherme Salazar
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tests(rhel) fix rhel image name (#349)
parent
6924e48a
No related branches found
Branches containing commit
Tags
4.11.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/build_container.sh
+1
-2
1 addition, 2 deletions
test/build_container.sh
test/tests/01-package/run.sh
+5
-1
5 additions, 1 deletion
test/tests/01-package/run.sh
with
6 additions
and
3 deletions
test/build_container.sh
+
1
−
2
View file @
60f2c3b7
...
...
@@ -26,7 +26,6 @@ if [ "$RESTY_IMAGE_TAG" == "stretch" ] || [ "$RESTY_IMAGE_TAG" == "jessie" ]; th
fi
if
[
"
$RESTY_IMAGE_BASE
"
==
"rhel"
]
;
then
sed
-i
's/^FROM .*/FROM registry.access.redhat.com\/ubi'
${
RESTY_IMAGE_TAG
}
'\/ubi/'
docker-kong/rhel/Dockerfile
sed
-i
's/rhel7/rhel'
${
RESTY_IMAGE_TAG
}
'/'
docker-kong/rhel/Dockerfile
cp
output/
*
.rhel
${
RESTY_IMAGE_TAG
}
.
${
ARCHITECTURE
}
.rpm docker-kong/rhel/kong.rpm
BUILD_DIR
=
"rhel"
...
...
@@ -41,4 +40,4 @@ pushd docker-kong/${BUILD_DIR}
docker run
-t
$KONG_TEST_IMAGE_NAME
kong version
popd
rm
-rf
docker-kong
||
true
\ No newline at end of file
rm
-rf
docker-kong
||
true
This diff is collapsed.
Click to expand it.
test/tests/01-package/run.sh
+
5
−
1
View file @
60f2c3b7
set
-x
docker run
-d
--name
user-validation-tests
--rm
-e
KONG_DATABASE
=
off
-v
$PWD
:/src
${
RESTY_IMAGE_BASE
}
:
${
RESTY_IMAGE_TAG
}
tail
-f
/dev/null
if
[[
"
$RESTY_IMAGE_BASE
"
==
"rhel"
]]
;
then
docker run
-d
--name
user-validation-tests
--rm
-e
KONG_DATABASE
=
off
-v
$PWD
:/src registry.access.redhat.com/ubi
${
RESTY_IMAGE_TAG
}
/ubi
tail
-f
/dev/null
else
docker run
-d
--name
user-validation-tests
--rm
-e
KONG_DATABASE
=
off
-v
$PWD
:/src
${
RESTY_IMAGE_BASE
}
:
${
RESTY_IMAGE_TAG
}
tail
-f
/dev/null
fi
if
[[
"
$PACKAGE_TYPE
"
==
"rpm"
]]
;
then
cp
$PACKAGE_LOCATION
/
*
amd64.rpm kong.rpm
...
...
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