Skip to content

Commit

Permalink
Supporting dlpython (TykTechnologies#2528)
Browse files Browse the repository at this point in the history
- dropped arm64 builds
- dropped Lua builds
- python init script identical to vanilla gateway, provided for
  backward compatibility

Multilib setup is in the environment section of the buddy pipeline.
  • Loading branch information
alephnull authored and buger committed Sep 19, 2019
1 parent d80fd87 commit a7300a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 32 deletions.
11 changes: 1 addition & 10 deletions bin/dist_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,7 @@ do
done

echo "Building Tyk binaries"
gox -osarch="linux/arm64 linux/amd64 linux/386" -tags 'coprocess grpc'

echo "Building Tyk CP binaries"
export CPBINNAME_LUA=tyk_linux_amd64_lua
export CPBINNAME_PYTHON=tyk_linux_amd64_python

gox -osarch="linux/amd64" -tags 'coprocess python' -output '{{.Dir}}_{{.OS}}_{{.Arch}}_python'
gox -osarch="linux/amd64" -tags 'coprocess lua' -output '{{.Dir}}_{{.OS}}_{{.Arch}}_lua'
gox -osarch="linux/amd64 linux/386" -tags 'coprocess' -cgo

TEMPLATEDIR=${ARCHTGZDIRS[i386]}
echo "Prepping TGZ Dirs"
Expand Down Expand Up @@ -99,8 +92,6 @@ do
mv tyk_linux_${arch/i386/386} $archDir/$SOURCEBIN
cp $cliTmpDir/tyk-cli_linux_${arch/i386/386} $archDir/utils/$CLIBIN
done
mv $CPBINNAME_LUA ${ARCHTGZDIRS[amd64]}/$SOURCEBIN-lua
mv $CPBINNAME_PYTHON ${ARCHTGZDIRS[amd64]}/$SOURCEBIN-python

echo "Compressing"
for arch in ${!ARCHTGZDIRS[@]}
Expand Down
20 changes: 0 additions & 20 deletions install/inits/systemd/system/tyk-gateway-lua.service

This file was deleted.

6 changes: 4 additions & 2 deletions install/inits/systemd/system/tyk-gateway-python.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[Unit]
Description=Tyk API Gateway (Python Support)

# This is provided for backward compatibility only
# tyk-gateway supports Python starting from 2.9

[Service]
Type=simple
User=root
Expand All @@ -10,7 +12,7 @@ Group=root
# exist, it continues onward.
EnvironmentFile=-/etc/default/tyk-gateway
EnvironmentFile=-/etc/sysconfig/tyk-gateway
ExecStart=/opt/tyk-gateway/tyk-python --conf /opt/tyk-gateway/tyk.conf
ExecStart=/opt/tyk-gateway/tyk --conf /opt/tyk-gateway/tyk.conf
Restart=always
WorkingDirectory=/opt/tyk-gateway
RuntimeDirectory=tyk
Expand Down

0 comments on commit a7300a6

Please sign in to comment.