Skip to content

Commit

Permalink
fix(Dockerfile): symlink to required libz
Browse files Browse the repository at this point in the history
  • Loading branch information
locao authored and Water-Melon committed Jun 25, 2024
1 parent 1f16505 commit f232d94
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RUN set -ex; \
&& rm /tmp/kong.rpm \
&& chown kong:0 /usr/local/bin/kong \
&& chown -R kong:0 "$KONG_PREFIX" \
&& ln -sf /usr/lib64/libz.so.1 /usr/lib64/libz.so \
&& ln -sf /usr/local/openresty/bin/resty /usr/local/bin/resty \
&& ln -sf /usr/local/openresty/luajit/bin/luajit /usr/local/bin/luajit \
&& ln -sf /usr/local/openresty/luajit/bin/luajit /usr/local/bin/lua \
Expand Down
1 change: 1 addition & 0 deletions centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN set -ex; \
&& rm /tmp/kong.rpm \
&& chown kong:0 /usr/local/bin/kong \
&& chown -R kong:0 /usr/local/kong \
&& ln -sf /usr/lib64/libz.so.1 /usr/lib64/libz.so \
&& ln -sf /usr/local/openresty/bin/resty /usr/local/bin/resty \
&& ln -sf /usr/local/openresty/luajit/bin/luajit /usr/local/bin/luajit \
&& ln -sf /usr/local/openresty/luajit/bin/luajit /usr/local/bin/lua \
Expand Down
1 change: 0 additions & 1 deletion customize/packer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ local function get_plugins()
return plugins
end


local function get_rocks()
local cmd = "luarocks list --tree=system --porcelain"
local ok, _, sout, serr = execex(cmd)
Expand Down
1 change: 1 addition & 0 deletions rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ RUN set -ex; \
&& rm /tmp/kong.rpm \
&& chown kong:0 /usr/local/bin/kong \
&& chown -R kong:0 /usr/local/kong \
&& ln -sf /usr/lib64/libz.so.1 /usr/lib64/libz.so \
&& ln -sf /usr/local/openresty/bin/resty /usr/local/bin/resty \
&& ln -sf /usr/local/openresty/luajit/bin/luajit /usr/local/bin/luajit \
&& ln -sf /usr/local/openresty/luajit/bin/luajit /usr/local/bin/lua \
Expand Down

0 comments on commit f232d94

Please sign in to comment.