Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove base docker image #995

Merged
merged 9 commits into from
Feb 9, 2021
Merged

Conversation

hlts2
Copy link
Collaborator

@hlts2 hlts2 commented Feb 9, 2021

Description:

I deleted the base docker image and dependencies.

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.15.7
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.13.1

Types of changes:

  • Bug fix [type/bug]
  • New feature [type/feature]
  • Add tests [type/test]
  • Security related changes [type/security]
  • Add documents [type/documentation]
  • Refactoring [type/refactoring]
  • Update dependencies [type/dependency]
  • Update benchmarks and performances [type/bench]
  • Update CI [type/ci]

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Checklist:

  • I have read the CONTRIBUTING document.
  • I have checked open Pull Requests for the similar feature or fixes?
  • I have added tests and benchmarks to cover my changes.
  • I have ensured all new and existing tests passed.
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly.

Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 9, 2021

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - add changelog comment
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase master
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

hadolint

dockers/meta/redis/Dockerfile|34 col 1| Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>
dockers/meta/redis/Dockerfile|40 col 1| Double quote to prevent globbing and word splitting.
dockers/tools/cli/loadtest/Dockerfile|37 col 1| Double quote to prevent globbing and word splitting.

ENV ORG vdaas
ENV REPO vald
ENV PKG agent/core/ngt
ENV PKG_INTERNAL agent/internal
ENV APP_NAME ngt

RUN apt-get update && apt-get install -y --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

ENV ORG vdaas
ENV REPO vald
ENV PKG agent/sidecar
ENV PKG_INTERNAL agent/internal
ENV APP_NAME sidecar

COPY --from=golang /usr/local/go $GOROOT
RUN apt-get update && apt-get install -y --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p $GOPATH/src
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [hadolint] <SC2086> reported by reviewdog 🐶
Double quote to prevent globbing and word splitting.

ARG YQ_VERSION=4.3.2
ARG YQ_VERSION=4.5.0

RUN apt-get update && apt-get install -y --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

ENV ORG vdaas
ENV REPO vald
ENV PKG discoverer/k8s
ENV APP_NAME discoverer

COPY --from=golang /usr/local/go $GOROOT
RUN apt-get update && apt-get install -y --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p $GOPATH/src
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [hadolint] <SC2086> reported by reviewdog 🐶
Double quote to prevent globbing and word splitting.

ENV ORG vdaas
ENV REPO vald
ENV PKG manager/replication/controller
ENV APP_NAME controller

RUN apt-get update && apt-get install -y --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p $GOPATH/src
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [hadolint] <SC2086> reported by reviewdog 🐶
Double quote to prevent globbing and word splitting.

ENV ORG vdaas
ENV REPO vald
ENV PKG meta/cassandra
ENV APP_NAME meta

COPY --from=golang /usr/local/go $GOROOT
RUN apt-get update && apt-get install -y --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p $GOPATH/src
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [hadolint] <SC2086> reported by reviewdog 🐶
Double quote to prevent globbing and word splitting.

Copy link
Contributor

@rinx rinx left a comment

Choose a reason for hiding this comment

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

Sorry, maybe go.mod and go.sum are missing in dockers/ci/base/Dockerfile
https://github.com/vdaas/vald/pull/995/checks?check_run_id=1861034923

dockers/dev/Dockerfile Show resolved Hide resolved
Co-authored-by: Rintaro Okamura <rintaro.okamura@gmail.com>
@github-actions github-actions bot added the size/L label Feb 9, 2021
ENV ORG vdaas
ENV REPO vald
ENV PKG meta/redis
ENV APP_NAME meta

COPY --from=golang /usr/local/go $GOROOT
RUN apt-get update && apt-get install -y --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p $GOPATH/src
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [hadolint] <SC2086> reported by reviewdog 🐶
Double quote to prevent globbing and word splitting.

libhdf5-dev \
&& ldconfig \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p $GOPATH/src
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [hadolint] <SC2086> reported by reviewdog 🐶
Double quote to prevent globbing and word splitting.

@github-actions github-actions bot removed the size/S label Feb 9, 2021
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
@rinx
Copy link
Contributor

rinx commented Feb 9, 2021

Thanks, great job 👍

Copy link
Collaborator

@kpango kpango left a comment

Choose a reason for hiding this comment

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

LGTM

@kpango kpango merged commit ca55ac1 into master Feb 9, 2021
@kpango kpango deleted the ci/docker/remove_base_docker_image branch February 9, 2021 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants