From f6f226ebb48cbae2af369665f2d0d3b79acb6cc6 Mon Sep 17 00:00:00 2001 From: Akshith Gunasheelan <126816102+akshith-gunasheelan@users.noreply.github.com> Date: Mon, 30 Jun 2025 18:18:23 +0530 Subject: [PATCH 1/7] Update Dockerfile --- Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95725bb1..7d5427ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,13 @@ -FROM golang:1.11 +FROM golang:latest ENV USER root + WORKDIR /go/src/github.com/HewlettPackard/oneview-golang -COPY . /go/src/github.com/HewlettPackard/oneview-golang -RUN go build github.com/HewlettPackard/oneview-golang +RUN apt-get update && apt-get install -y \ + python3 \ + && rm -rf /var/lib/apt/lists/* + +COPY . . + +RUN go build From 157e2f316b01dea44df37dbcaafa3efb1b35a274 Mon Sep 17 00:00:00 2001 From: Akshith Gunasheelan <126816102+akshith-gunasheelan@users.noreply.github.com> Date: Mon, 30 Jun 2025 18:25:28 +0530 Subject: [PATCH 2/7] Update Dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7d5427ec..aa3f738e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:latest +FROM golang:1.11 ENV USER root @@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y \ python3 \ && rm -rf /var/lib/apt/lists/* -COPY . . -RUN go build +COPY . /go/src/github.com/HewlettPackard/oneview-golang +RUN go build github.com/HewlettPackard/oneview-golang + From 74177924bc513818e23632d835f650373542555c Mon Sep 17 00:00:00 2001 From: Akshith Gunasheelan <126816102+akshith-gunasheelan@users.noreply.github.com> Date: Mon, 30 Jun 2025 18:27:41 +0530 Subject: [PATCH 3/7] Update Dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index aa3f738e..95779d48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,13 @@ FROM golang:1.11 ENV USER root +ARG http_proxy +ARG https_proxy +ARG no_proxy + +ENV HTTP_PROXY=${http_proxy} +ENV HTTPS_PROXY=${https_proxy} +ENV NO_PROXY=${no_proxy} WORKDIR /go/src/github.com/HewlettPackard/oneview-golang From a29e7669a4b1273b38761217e8381f6d084fa1cf Mon Sep 17 00:00:00 2001 From: Akshith Gunasheelan <126816102+akshith-gunasheelan@users.noreply.github.com> Date: Mon, 30 Jun 2025 19:07:06 +0530 Subject: [PATCH 4/7] Update Dockerfile --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95779d48..198109f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,13 @@ ENV NO_PROXY=${no_proxy} WORKDIR /go/src/github.com/HewlettPackard/oneview-golang -RUN apt-get update && apt-get install -y \ - python3 \ - && rm -rf /var/lib/apt/lists/* +# RUN apt-get update && apt-get install -y \ +# python3 \ +# && rm -rf /var/lib/apt/lists/* +RUN apt update -y + +RUN apt install python3-pip -y + COPY . /go/src/github.com/HewlettPackard/oneview-golang From 5c7ecaea18fa1819ed2a90f4f1bf326b2a45ee83 Mon Sep 17 00:00:00 2001 From: Akshith Gunasheelan <126816102+akshith-gunasheelan@users.noreply.github.com> Date: Mon, 30 Jun 2025 19:27:46 +0530 Subject: [PATCH 5/7] Update Dockerfile --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 198109f7..c442f962 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,15 +11,15 @@ ENV NO_PROXY=${no_proxy} WORKDIR /go/src/github.com/HewlettPackard/oneview-golang -# RUN apt-get update && apt-get install -y \ -# python3 \ -# && rm -rf /var/lib/apt/lists/* -RUN apt update -y - -RUN apt install python3-pip -y - - +# Install Python 3 and pip +RUN apt-get update -y && \ + apt-get install -y python3 python3-pip && \ + ln -s /usr/bin/python3 /usr/bin/python && \ + ln -s /usr/bin/pip3 /usr/bin/pip && \ + rm -rf /var/lib/apt/lists/* COPY . /go/src/github.com/HewlettPackard/oneview-golang + +# Build Go project (optional) RUN go build github.com/HewlettPackard/oneview-golang From a0ba6f998b15c11c0a666a5dea671dec3c2baeda Mon Sep 17 00:00:00 2001 From: Akshith Gunasheelan <126816102+akshith-gunasheelan@users.noreply.github.com> Date: Mon, 30 Jun 2025 19:43:23 +0530 Subject: [PATCH 6/7] Update Dockerfile --- Dockerfile | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index c442f962..b819cc34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,6 @@ FROM golang:1.11 ENV USER root -ARG http_proxy -ARG https_proxy -ARG no_proxy - -ENV HTTP_PROXY=${http_proxy} -ENV HTTPS_PROXY=${https_proxy} -ENV NO_PROXY=${no_proxy} WORKDIR /go/src/github.com/HewlettPackard/oneview-golang From 7bd9725e8f700c70bb139eaf9f25a24c8902bcbe Mon Sep 17 00:00:00 2001 From: Akshith Gunasheelan <126816102+akshith-gunasheelan@users.noreply.github.com> Date: Mon, 30 Jun 2025 19:53:50 +0530 Subject: [PATCH 7/7] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b819cc34..f6a464a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ WORKDIR /go/src/github.com/HewlettPackard/oneview-golang # Install Python 3 and pip RUN apt-get update -y && \ apt-get install -y python3 python3-pip && \ - ln -s /usr/bin/python3 /usr/bin/python && \ - ln -s /usr/bin/pip3 /usr/bin/pip && \ + ln -sf /usr/bin/python3 /usr/bin/python && \ + ln -sf /usr/bin/pip3 /usr/bin/pip && \ rm -rf /var/lib/apt/lists/* COPY . /go/src/github.com/HewlettPackard/oneview-golang