Skip to content

move to debian #7

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
22 changes: 10 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
FROM alpine:3.15.4
FROM debian:bullseye-slim


ARG KUBE_VERSION="v1.23.3"

ARG HELM_VERSION="3.0.0"

FROM python:3.8.15-slim-bullseye

ARG KUBE_VERSION="v1.23.3"

ARG HELM_VERSION="3.0.0"
Expand All @@ -9,26 +15,18 @@ RUN echo "HELM_VERSION is set to: ${HELM_VERSION}"

ENV FILENAME="helm-v${HELM_VERSION}-linux-amd64.tar.gz"

RUN apk add --update ca-certificates && update-ca-certificates \
&& apk add --update curl \
&& apk add bash \
&& apk add jq \
&& apk add python3 \
&& apk add make \
&& apk add git \
&& apk add openssl \
&& apk add py3-pip \
RUN apt-get update -y && apt-get install curl make jq git openssl -y \
&& pip install yq \
&& curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl \
&& curl -L https://get.helm.sh/${FILENAME} -o /tmp/${FILENAME} \
&& tar -zxvf /tmp/${FILENAME} -C /tmp \
&& mv /tmp/linux-amd64/helm /bin/helm \
# Cleanup uncessary files
&& rm /var/cache/apk/* \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/*

RUN bash -c 'if [[ "${HELM_VERSION}" == 2* ]]; then helm init --client-only; else echo "using helm3, no need to initialize helm"; fi'
WORKDIR /config

CMD bash
CMD bash
2 changes: 1 addition & 1 deletion codefresh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '1.0'
steps:

define_the_versions_list:
image: alpine
image: debian
commands:
- |-
cat <<EOF > helmVersionsList
Expand Down