From f307a688ebd9bdbc124c20d0d6da8ec841fd1590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Eduardo=20Jer=C3=A9z=20Gir=C3=B3n?= Date: Sun, 4 Aug 2024 23:55:54 -0600 Subject: [PATCH] Update Dockerfile to use `--no-verbose` flag for wget commands and new env syntax --- docker/Dockerfile | 14 +++++++------- docker/Dockerfile.cicd | 14 +++++++------- docker/Dockerfile.dev | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 63c6af2..7cfc85a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,7 +12,7 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm # Copy the golang binaries from the golang image COPY --from=golang /usr/local/go /usr/local/go -ENV PATH "$PATH:/usr/local/go/bin" +ENV PATH="$PATH:/usr/local/go/bin" # Set general environment variables ENV DEBIAN_FRONTEND=noninteractive @@ -44,36 +44,36 @@ RUN echo 'alias pg_dump_13="/usr/lib/postgresql/13/bin/pg_dump"' >> /etc/bash.ba WORKDIR /app/temp # Install task -RUN wget https://github.com/go-task/task/releases/download/v3.37.2/task_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/go-task/task/releases/download/v3.37.2/task_linux_amd64.tar.gz && \ tar -xzf task_linux_amd64.tar.gz && \ mv ./task /usr/local/bin/task && \ chmod 777 /usr/local/bin/task # Install GitHub CLI -RUN wget https://github.com/cli/cli/releases/download/v2.52.0/gh_2.52.0_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/cli/cli/releases/download/v2.52.0/gh_2.52.0_linux_amd64.tar.gz && \ tar -xzf gh_2.52.0_linux_amd64.tar.gz && \ mv gh_2.52.0_linux_amd64/bin/gh /usr/local/bin/gh && \ chmod 777 /usr/local/bin/gh # Install air -RUN wget https://github.com/cosmtrek/air/releases/download/v1.52.3/air_1.52.3_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/cosmtrek/air/releases/download/v1.52.3/air_1.52.3_linux_amd64.tar.gz && \ tar -xzf air_1.52.3_linux_amd64.tar.gz && \ mv ./air /usr/local/bin/air && \ chmod 777 /usr/local/bin/air # Install goose -RUN wget https://github.com/pressly/goose/releases/download/v3.21.1/goose_linux_x86_64 && \ +RUN wget --no-verbose https://github.com/pressly/goose/releases/download/v3.21.1/goose_linux_x86_64 && \ mv ./goose_linux_x86_64 /usr/local/bin/goose && \ chmod 777 /usr/local/bin/goose # Install sqlc -RUN wget https://github.com/sqlc-dev/sqlc/releases/download/v1.26.0/sqlc_1.26.0_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/sqlc-dev/sqlc/releases/download/v1.26.0/sqlc_1.26.0_linux_amd64.tar.gz && \ tar -xzf sqlc_1.26.0_linux_amd64.tar.gz && \ mv ./sqlc /usr/local/bin/sqlc && \ chmod 777 /usr/local/bin/sqlc # Install golangci-lint -RUN wget https://github.com/golangci/golangci-lint/releases/download/v1.59.1/golangci-lint-1.59.1-linux-amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/golangci/golangci-lint/releases/download/v1.59.1/golangci-lint-1.59.1-linux-amd64.tar.gz && \ tar -xzf golangci-lint-1.59.1-linux-amd64.tar.gz && \ mv ./golangci-lint-1.59.1-linux-amd64/golangci-lint /usr/local/bin/golangci-lint && \ chmod 777 /usr/local/bin/golangci-lint diff --git a/docker/Dockerfile.cicd b/docker/Dockerfile.cicd index a49aa22..ff9f4a4 100644 --- a/docker/Dockerfile.cicd +++ b/docker/Dockerfile.cicd @@ -12,7 +12,7 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm # Copy the golang binaries from the golang image COPY --from=golang /usr/local/go /usr/local/go -ENV PATH "$PATH:/usr/local/go/bin" +ENV PATH="$PATH:/usr/local/go/bin" # Set general environment variables ENV DEBIAN_FRONTEND=noninteractive @@ -44,36 +44,36 @@ RUN echo 'alias pg_dump_13="/usr/lib/postgresql/13/bin/pg_dump"' >> /etc/bash.ba WORKDIR /app/temp # Install task -RUN wget https://github.com/go-task/task/releases/download/v3.37.2/task_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/go-task/task/releases/download/v3.37.2/task_linux_amd64.tar.gz && \ tar -xzf task_linux_amd64.tar.gz && \ mv ./task /usr/local/bin/task && \ chmod 777 /usr/local/bin/task # Install GitHub CLI -RUN wget https://github.com/cli/cli/releases/download/v2.52.0/gh_2.52.0_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/cli/cli/releases/download/v2.52.0/gh_2.52.0_linux_amd64.tar.gz && \ tar -xzf gh_2.52.0_linux_amd64.tar.gz && \ mv gh_2.52.0_linux_amd64/bin/gh /usr/local/bin/gh && \ chmod 777 /usr/local/bin/gh # Install air -RUN wget https://github.com/cosmtrek/air/releases/download/v1.52.3/air_1.52.3_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/cosmtrek/air/releases/download/v1.52.3/air_1.52.3_linux_amd64.tar.gz && \ tar -xzf air_1.52.3_linux_amd64.tar.gz && \ mv ./air /usr/local/bin/air && \ chmod 777 /usr/local/bin/air # Install goose -RUN wget https://github.com/pressly/goose/releases/download/v3.21.1/goose_linux_x86_64 && \ +RUN wget --no-verbose https://github.com/pressly/goose/releases/download/v3.21.1/goose_linux_x86_64 && \ mv ./goose_linux_x86_64 /usr/local/bin/goose && \ chmod 777 /usr/local/bin/goose # Install sqlc -RUN wget https://github.com/sqlc-dev/sqlc/releases/download/v1.26.0/sqlc_1.26.0_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/sqlc-dev/sqlc/releases/download/v1.26.0/sqlc_1.26.0_linux_amd64.tar.gz && \ tar -xzf sqlc_1.26.0_linux_amd64.tar.gz && \ mv ./sqlc /usr/local/bin/sqlc && \ chmod 777 /usr/local/bin/sqlc # Install golangci-lint -RUN wget https://github.com/golangci/golangci-lint/releases/download/v1.59.1/golangci-lint-1.59.1-linux-amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/golangci/golangci-lint/releases/download/v1.59.1/golangci-lint-1.59.1-linux-amd64.tar.gz && \ tar -xzf golangci-lint-1.59.1-linux-amd64.tar.gz && \ mv ./golangci-lint-1.59.1-linux-amd64/golangci-lint /usr/local/bin/golangci-lint && \ chmod 777 /usr/local/bin/golangci-lint diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev index af68a1b..098a562 100644 --- a/docker/Dockerfile.dev +++ b/docker/Dockerfile.dev @@ -12,7 +12,7 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm # Copy the golang binaries from the golang image COPY --from=golang /usr/local/go /usr/local/go -ENV PATH "$PATH:/usr/local/go/bin" +ENV PATH="$PATH:/usr/local/go/bin" # Set general environment variables ENV DEBIAN_FRONTEND=noninteractive @@ -44,36 +44,36 @@ RUN echo 'alias pg_dump_13="/usr/lib/postgresql/13/bin/pg_dump"' >> /etc/bash.ba WORKDIR /app/temp # Install task -RUN wget https://github.com/go-task/task/releases/download/v3.37.2/task_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/go-task/task/releases/download/v3.37.2/task_linux_amd64.tar.gz && \ tar -xzf task_linux_amd64.tar.gz && \ mv ./task /usr/local/bin/task && \ chmod 777 /usr/local/bin/task # Install GitHub CLI -RUN wget https://github.com/cli/cli/releases/download/v2.52.0/gh_2.52.0_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/cli/cli/releases/download/v2.52.0/gh_2.52.0_linux_amd64.tar.gz && \ tar -xzf gh_2.52.0_linux_amd64.tar.gz && \ mv gh_2.52.0_linux_amd64/bin/gh /usr/local/bin/gh && \ chmod 777 /usr/local/bin/gh # Install air -RUN wget https://github.com/cosmtrek/air/releases/download/v1.52.3/air_1.52.3_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/cosmtrek/air/releases/download/v1.52.3/air_1.52.3_linux_amd64.tar.gz && \ tar -xzf air_1.52.3_linux_amd64.tar.gz && \ mv ./air /usr/local/bin/air && \ chmod 777 /usr/local/bin/air # Install goose -RUN wget https://github.com/pressly/goose/releases/download/v3.21.1/goose_linux_x86_64 && \ +RUN wget --no-verbose https://github.com/pressly/goose/releases/download/v3.21.1/goose_linux_x86_64 && \ mv ./goose_linux_x86_64 /usr/local/bin/goose && \ chmod 777 /usr/local/bin/goose # Install sqlc -RUN wget https://github.com/sqlc-dev/sqlc/releases/download/v1.26.0/sqlc_1.26.0_linux_amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/sqlc-dev/sqlc/releases/download/v1.26.0/sqlc_1.26.0_linux_amd64.tar.gz && \ tar -xzf sqlc_1.26.0_linux_amd64.tar.gz && \ mv ./sqlc /usr/local/bin/sqlc && \ chmod 777 /usr/local/bin/sqlc # Install golangci-lint -RUN wget https://github.com/golangci/golangci-lint/releases/download/v1.59.1/golangci-lint-1.59.1-linux-amd64.tar.gz && \ +RUN wget --no-verbose https://github.com/golangci/golangci-lint/releases/download/v1.59.1/golangci-lint-1.59.1-linux-amd64.tar.gz && \ tar -xzf golangci-lint-1.59.1-linux-amd64.tar.gz && \ mv ./golangci-lint-1.59.1-linux-amd64/golangci-lint /usr/local/bin/golangci-lint && \ chmod 777 /usr/local/bin/golangci-lint