Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.19 #122

Merged
merged 2 commits into from
Feb 5, 2024
Merged

3.19 #122

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM openpolicyagent/conftest:v0.48.0 AS conftest
FROM alpine:3.18
FROM alpine:3.19

ARG VERSION_HADOLINT="v2.12.0"
ARG VERSION_KUBECTL="v1.29.0"
Expand All @@ -16,21 +16,21 @@ ADD https://storage.googleapis.com/kubernetes-release/release/${VERSION_KUBECTL}
WORKDIR /cdp

RUN apk -v --no-cache add tar ca-certificates python3 python3-dev skopeo coreutils podman py3-setuptools py3-pip py3-wheel\
groff less mailcap curl openrc build-base libgit2-dev autoconf automake libtool jq git openssh unzip \
groff less mailcap curl openrc build-base libgit2-dev autoconf automake libtool jq git openssh unzip iptables-legacy\
&& chmod +x /bin/hadolint && chmod +x /bin/kubectl \
&& if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi \
&& if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi \
&& ln -s /usr/lib/libcurl.so.4 /usr/lib/libcurl-gnutls.so.4 \
&& pip install awscli --break-system-packages \
&& pip install awscli build --break-system-packages \
&& pip install --break-system-packages -r requirements.txt \
&& apk -v add gettext \
&& apk -v --no-cache --purge del py-pip autoconf automake libtool build-base libgit2-dev python3-dev \
&& curl -L https://get.helm.sh/helm-${VERSION_HELM}-linux-amd64.tar.gz | tar zxv -C /tmp/ --strip-components=1 linux-amd64/helm && mv /tmp/helm /bin/helm3 && chmod +x /bin/helm3 \
&& curl -L https://get.helm.sh/helm-${VERSION_HELM2}-linux-amd64.tar.gz | tar zxv -C /tmp/ --strip-components=1 linux-amd64/helm && mv /tmp/helm /bin/helm2 && chmod +x /bin/helm2 \
&& curl -sL https://get.helm.sh/helm-${VERSION_HELM}-linux-amd64.tar.gz | tar zxv -C /tmp/ --strip-components=1 linux-amd64/helm && mv /tmp/helm /bin/helm3 && chmod +x /bin/helm3 \
&& curl -sL https://get.helm.sh/helm-${VERSION_HELM2}-linux-amd64.tar.gz | tar zxv -C /tmp/ --strip-components=1 linux-amd64/helm && mv /tmp/helm /bin/helm2 && chmod +x /bin/helm2 \
&& helm3 plugin install https://github.com/helm/helm-2to3 \
&& rm -rf /var/lib/apk/lists/* && rm -rf /var/cache/apk/* /root/.cache /usr/lib/python3.8/site-packages/pip /usr/lib/python3.8/__pycache__ /usr/lib/python3.8/site-packages/awscli/examples /usr/lib/python3.8/site-packages/config-3.8* \
&& mkdir -p /root/.docker
RUN python setup.py install && rm -rf /cdp/..?* .[!.]*
&& mkdir -p /root/.docker && iptables-legacy-save
RUN python -m build -n -x && rm -rf /cdp/..?* .[!.]*


# Options Podman
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def find_version(*file_paths):
setup_requires=['pytest-runner'],
tests_require=['pytest', 'freezegun'],
license='Apache License 2.0',
classifiers=(
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
Expand All @@ -70,7 +70,7 @@ def find_version(*file_paths):
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
),
],
)

setup(**setup_options)