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
57f5ba84
Unverified
Commit
57f5ba84
authored
5 years ago
by
Colin Hutchinson
Browse files
Options
Downloads
Patches
Plain Diff
chore(docker-kong) adjust Kong-build-tools to be compatible with docker-kong
parent
69c926e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
test/build_container.sh
+9
-8
9 additions, 8 deletions
test/build_container.sh
with
10 additions
and
9 deletions
Makefile
+
1
−
1
View file @
57f5ba84
...
...
@@ -37,7 +37,7 @@ KONG_GMP_VERSION ?= `grep KONG_GMP_VERSION $(KONG_SOURCE_LOCATION)/.requirements
KONG_NETTLE_VERSION
?=
`
grep
KONG_NETTLE_VERSION
$(
KONG_SOURCE_LOCATION
)
/.requirements |
awk
-F
"="
'{print $$2}'
`
OPENRESTY_PATCHES
?=
1
LIBYAML_VERSION
?=
0.2.3
DOCKER_KONG_VERSION
?=
'
master
'
DOCKER_KONG_VERSION
?=
'
release/2.0.4
'
DEBUG
?=
0
DOCKER_MACHINE_ARM64_NAME
?=
docker-machine-arm64-
${
USER
}
...
...
This diff is collapsed.
Click to expand it.
test/build_container.sh
+
9
−
8
View file @
57f5ba84
...
...
@@ -5,17 +5,21 @@ if docker image inspect $KONG_TEST_IMAGE_NAME; then exit 0; fi
rm
-rf
docker-kong
||
true
git clone
--single-branch
--branch
$DOCKER_KONG_VERSION
https://github.com/Kong/docker-kong.git docker-kong
sed
-i
's/^FROM .*/FROM '
${
RESTY_IMAGE_BASE
}
:
${
RESTY_IMAGE_TAG
}
'/'
docker-kong/
${
BUILD_DIR
}
/Dockerfile
if
[
"
$RESTY_IMAGE_BASE
"
==
"ubuntu"
]
||
[
"
$RESTY_IMAGE_BASE
"
==
"debian"
]
;
then
cp
output/
*${
RESTY_IMAGE_TAG
}
.amd64.deb docker-kong/ubuntu/
kong
cp
output/
*${
RESTY_IMAGE_TAG
}
.amd64.deb docker-kong/ubuntu/
empty-kong.deb
BUILD_DIR
=
"ubuntu"
elif
[
"
$RESTY_IMAGE_BASE
"
==
"alpine"
]
;
then
cp
output/
*
.amd64.apk.tar.gz docker-kong/alpine/
kong
cp
output/
*
.amd64.apk.tar.gz docker-kong/alpine/
empty-kong.tar.gz
BUILD_DIR
=
"alpine"
elif
[
"
$RESTY_IMAGE_BASE
"
==
"centos"
]
||
[
"
$RESTY_IMAGE_BASE
"
==
"amazonlinux"
]
;
then
cp
output/
*
.amd64.rpm docker-kong/centos/
kong
cp
output/
*
.amd64.rpm docker-kong/centos/
empty-kong.rpm
BUILD_DIR
=
"centos"
elif
[
"
$RESTY_IMAGE_BASE
"
==
"rhel"
]
;
then
cp
output/
*
.rhel
${
RESTY_IMAGE_TAG
}
.amd64.rpm docker-kong/rhel/kong
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
}
.amd64.rpm docker-kong/rhel/empty-kong.rpm
BUILD_DIR
=
"rhel"
else
exit
1
...
...
@@ -24,10 +28,7 @@ fi
pushd
docker-kong/
${
BUILD_DIR
}
docker build
-t
$KONG_TEST_IMAGE_NAME
\
--no-cache
\
--build-arg
LOCAL_KONG_PACKAGE
=
kong
\
--build-arg
RESTY_IMAGE_BASE
=
$RESTY_IMAGE_BASE
\
--build-arg
RESTY_IMAGE_TAG
=
$RESTY_IMAGE_TAG
\
--build-arg
ASSET_LOCATION
=
local
.
--build-arg
ASSET
=
local
.
popd
rm
-rf
docker-kong
||
true
\ No newline at end of file
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