-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Frank Hamand <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ jobs: | |
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- "3.9" | ||
|
||
steps: | ||
- name: Checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM curiefense/curieproxy-envoy:v1.5.0 as curieproxy | ||
|
||
FROM docker.io/emissaryingress/emissary:3.9.1 | ||
|
||
RUN set -xe && \ | ||
apk add lua pcre2 geoip vectorscan && \ | ||
apk --virtual .build-deps add python3 gcc g++ make unzip lua-dev luarocks pcre2-dev geoip-dev vectorscan-dev && \ | ||
ln -s $(which luarocks-5.1) /usr/local/bin/luarocks && \ | ||
luarocks install lrexlib-pcre2 && \ | ||
luarocks install lua-cjson && \ | ||
luarocks install lua-resty-string && \ | ||
luarocks install luafilesystem && \ | ||
luarocks install luasocket && \ | ||
luarocks install redis-lua && \ | ||
luarocks install compat53 && \ | ||
luarocks install mmdblua && \ | ||
luarocks install luaipc && \ | ||
luarocks install lua-resty-injection && \ | ||
unlink /usr/local/bin/luarocks && \ | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
COPY --from=curieproxy /lua /ambassador/lua | ||
COPY --from=curieproxy /usr/local/lib/lua/5.1/*.so /usr/local/lib/lua/5.1/ | ||
|
||
RUN ln -s /usr/lib/libhs.so.5 /usr/glibc-compat/lib/libhs.so.5 | ||
RUN ln -s /usr/lib/libhs.so.5 /usr/glibc-compat/lib/libhs.so.4 | ||
|
||
COPY --from=curieproxy --chown=ambassador:root /bootstrap-config/config /bootstrap-config/config | ||
|
||
RUN mkdir /cf-config && chmod a+rwxt /cf-config && chown ambassador.root /cf-config | ||
|
||
COPY entrypoint.sh / | ||
ENTRYPOINT /entrypoint.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -e /cf-config/bootstrap ]; then | ||
cp -va /bootstrap-config /cf-config/bootstrap | ||
fi | ||
|
||
if [ ! -e /cf-config/current ]; then | ||
ln -s bootstrap /cf-config/current | ||
fi | ||
|
||
exec bash /buildroot/ambassador/python/entrypoint.sh |