Commits on Source (3)
...@@ -42,18 +42,13 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ ...@@ -42,18 +42,13 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# https://kubernetes.io/releases/ # https://kubernetes.io/releases/
RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \ RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.30/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \
&& echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list \ && echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.30/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list \
&& apt-get update && apt-get install -y kubectl=1.28.2-1.1 && apt-get update && apt-get install -y kubectl=1.30.1-1.1
RUN curl https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz --output helm-v2.17.0.tar.gz \
&& tar -zxvf helm-v2.17.0.tar.gz \
&& mv linux-amd64/helm /usr/local/bin/helm \
&& rm -r linux-amd64/
# https://github.com/helm/helm/releases # https://github.com/helm/helm/releases
RUN curl https://get.helm.sh/helm-v3.11.3-linux-amd64.tar.gz --output helm-v3.11.3.tar.gz \ RUN curl https://get.helm.sh/helm-v3.15.1-linux-amd64.tar.gz --output helm-v3.15.1.tar.gz \
&& tar -zxvf helm-v3.11.3.tar.gz \ && tar -zxvf helm-v3.15.1.tar.gz \
&& mv linux-amd64/helm /usr/local/bin/helm3 \ && mv linux-amd64/helm /usr/local/bin/helm3 \
&& rm -r linux-amd64/ && rm -r linux-amd64/
...@@ -103,7 +98,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ ...@@ -103,7 +98,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
RUN rm -f /etc/apt/apt.conf.d/proxy.conf RUN rm -f /etc/apt/apt.conf.d/proxy.conf
COPY --from=INSTALL /usr/bin/kubectl /usr/bin/kubectl COPY --from=INSTALL /usr/bin/kubectl /usr/bin/kubectl
COPY --from=INSTALL /usr/local/bin/helm /usr/local/bin/helm
COPY --from=INSTALL /usr/local/bin/helm3 /usr/local/bin/helm3 COPY --from=INSTALL /usr/local/bin/helm3 /usr/local/bin/helm3
COPY --from=INSTALL /usr/bin/scp /usr/bin/scp COPY --from=INSTALL /usr/bin/scp /usr/bin/scp
COPY --from=INSTALL /usr/bin/ssh-keygen /usr/bin/ssh-keygen COPY --from=INSTALL /usr/bin/ssh-keygen /usr/bin/ssh-keygen
...@@ -161,7 +155,7 @@ ENV OSMLCM_MESSAGE_HOST kafka ...@@ -161,7 +155,7 @@ ENV OSMLCM_MESSAGE_HOST kafka
ENV OSMLCM_MESSAGE_PORT 9092 ENV OSMLCM_MESSAGE_PORT 9092
# k8s # k8s
ENV OSMLCM_VCA_HELMPATH /usr/local/bin/helm ENV OSMLCM_VCA_HELMPATH /usr/local/bin/helm3
ENV OSMLCM_VCA_KUBECTLPATH /usr/bin/kubectl ENV OSMLCM_VCA_KUBECTLPATH /usr/bin/kubectl
ENV OSMLCM_VCA_JUJUPATH /usr/local/bin/juju ENV OSMLCM_VCA_JUJUPATH /usr/local/bin/juju
......
...@@ -64,13 +64,18 @@ RUN pip3 install \ ...@@ -64,13 +64,18 @@ RUN pip3 install \
-r /usr/lib/python3/dist-packages/osmclient/requirements.txt \ -r /usr/lib/python3/dist-packages/osmclient/requirements.txt \
-r /usr/share/osm-tests/requirements.txt -r /usr/share/osm-tests/requirements.txt
# Google Cloud CLI and kubectl # kubectl
# https://kubernetes.io/releases/
RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.30/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \
&& echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.30/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list \
&& apt-get update && apt-get install -y kubectl=1.30.1-1.1
# Google Cloud CLI
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
DEBIAN_FRONTEND=noninteractive apt-get --yes install \ DEBIAN_FRONTEND=noninteractive apt-get --yes install \
google-cloud-cli=455.* \ google-cloud-cli=455.*
kubectl=1.28.*
# Azure CLI # Azure CLI
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
set +eux set +eux
HELM_VERSION="v3.14.3" HELM_VERSION="v3.15.1"
#Install Helm v3 #Install Helm v3
#Helm releases can be found here: https://github.com/helm/helm/releases #Helm releases can be found here: https://github.com/helm/helm/releases
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
set +eux set +eux
K8S_VERSION=1.29 K8S_VERSION=1.30
K8S_PACKAGE_VERSION="$K8S_VERSION".3-1.1 K8S_PACKAGE_VERSION="$K8S_VERSION".1-1.1
# installs kubernetes packages # installs kubernetes packages
function install_kube() { function install_kube() {
......