Skip to content

Commit

Permalink
Update Dockerfile to use --no-verbose flag for wget commands and ne…
Browse files Browse the repository at this point in the history
…w env syntax
eduardolat committed Aug 5, 2024
1 parent 1501fdd commit f307a68
Showing 3 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
14 changes: 7 additions & 7 deletions docker/Dockerfile.cicd
Original file line number Diff line number Diff line change
@@ -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
14 changes: 7 additions & 7 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f307a68

Please sign in to comment.