Skip to content

Commit

Permalink
Auto generated from templates by gromit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gromit committed Apr 15, 2024
1 parent 5a9989e commit ff60c96
Show file tree
Hide file tree
Showing 24 changed files with 353 additions and 1,723 deletions.
374 changes: 141 additions & 233 deletions .github/workflows/release.yml

Large diffs are not rendered by default.

156 changes: 0 additions & 156 deletions bin/dist_build.sh

This file was deleted.

36 changes: 0 additions & 36 deletions bin/dist_push.sh

This file was deleted.

103 changes: 0 additions & 103 deletions bin/integration_build.sh

This file was deleted.

19 changes: 0 additions & 19 deletions ci/Dockerfile.slim

This file was deleted.

36 changes: 11 additions & 25 deletions ci/Dockerfile.std
Original file line number Diff line number Diff line change
@@ -1,38 +1,25 @@


# Generated by: tyk-ci/wf-gen
# Generated on: Friday 04 March 2022 11:40:32 AM UTC

# Generation commands:
# ./pr.zsh -repos tyk -base td-883-test -branch td-883-test -title Sync from latest releng templates
# m4 -E -DxREPO=tyk
# Generated by: gromit policy

FROM debian:bullseye-slim
ARG TARGETARCH

ENV DEBIAN_FRONTEND=noninteractive

# Install curl and python3
RUN apt update \
&& apt dist-upgrade -y ca-certificates curl \
&& apt install -y python3-setuptools libpython3.9 python3.9-dev \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
&& pip3 install --only-binary ":all:" grpcio protobuf==3.20.1
RUN apt-get update \
&& apt-get dist-upgrade -y ca-certificates
# For Python plugins
RUN apt-get install -y python3-setuptools libpython3-dev python3-dev python3-grpcio

# Remove some things to decrease CVE surface
RUN apt remove -y --auto-remove --allow-remove-essential curl libtiff5 ncurses-base \
&& rm /usr/bin/passwd && rm /usr/sbin/adduser
RUN dpkg --purge --force-remove-essential curl ncurses-base || true
RUN rm -fv /usr/bin/passwd /usr/sbin/adduser || true

# Clean up caches, unwanted .a and .o files
RUN rm -rf /root/.cache \
&& apt -y autoremove \
&& apt clean \
&& rm -rf /usr/include/* \
&& find /usr/lib -type f -name '*.a' -delete \
&& find /usr/lib -type f -name '*.o' -delete

# Print included pip/python versions
RUN pip3 --version && python3 --version
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /usr/include/* /var/cache/apt/archives /var/lib/{apt,dpkg,cache,log} \
&& find /usr/lib -type f -name '*.a' -o -name '*.o' -delete

# Comment this to test in dev
COPY *${TARGETARCH}.deb /
Expand All @@ -46,6 +33,5 @@ WORKDIR /opt/tyk-gateway/

# Uncomment this to test in dev
# COPY tyk .

ENTRYPOINT ["/opt/tyk-gateway/tyk" ]
CMD [ "--conf=/opt/tyk-gateway/tyk.conf" ]
5 changes: 0 additions & 5 deletions ci/aws/al2.vars.json

This file was deleted.

Loading

0 comments on commit ff60c96

Please sign in to comment.