Skip to content

Conversation

tsuyoshicho
Copy link
Owner

@tsuyoshicho tsuyoshicho commented Jan 31, 2024

  • Using bash in docker
  • set opt and pipefail
  • apk install simplify

@tsuyoshicho tsuyoshicho self-assigned this Jan 31, 2024
Dockerfile Outdated
@@ -4,10 +4,10 @@ FROM thinca/vim:latest
ENV REVIEWDOG_VERSION=v0.17.0

RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION}
RUN apk --update add git && \
RUN apk --update add git bash && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [hadolint] <DL3018> reported by reviewdog 🐶
Pin versions in apk add. Instead of apk add <package> use apk add <package>=<version>

Dockerfile Outdated
@@ -4,10 +4,10 @@ FROM thinca/vim:latest
ENV REVIEWDOG_VERSION=v0.17.0

RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION}
RUN apk --update add git && \
RUN apk --update add git bash && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [hadolint] <DL3019> reported by reviewdog 🐶
Use the --no-cache switch to avoid the need to use --update and remove /var/cache/apk/* when done installing packages

@tsuyoshicho tsuyoshicho added the bump:minor Bump up minor version label Jan 31, 2024
RUN apk --update add git && \
rm -rf /var/lib/apt/lists/* && \
rm /var/cache/apk/*
RUN apk add --no-cache git bash && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [hadolint] <DL3018> reported by reviewdog 🐶
Pin versions in apk add. Instead of apk add <package> use apk add <package>=<version>

@tsuyoshicho tsuyoshicho merged commit 897b52e into master Jan 31, 2024
@tsuyoshicho tsuyoshicho deleted the fix/bashset branch January 31, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump:minor Bump up minor version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant