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

Add devcontainer #620

Merged
merged 3 commits into from
Sep 24, 2020
Merged

Add devcontainer #620

merged 3 commits into from
Sep 24, 2020

Conversation

rinx
Copy link
Contributor

@rinx rinx commented Aug 11, 2020

Signed-off-by: Rintaro Okamura rintaro.okamura@gmail.com

Description:

To enable GitHub Codespaces, I added .devcontainer/devcontainer.json & dockers/dev/Dockerfile.

Related Issue:

Nothing.

How Has This Been Tested?:

Nothing.

Environment:

  • Go Version: 1.14.4
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.12.0

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.

@pull-assistant
Copy link

pull-assistant bot commented Aug 11, 2020

Score: 0.66

Best reviewed: commit by commit


Optimal code review plan (1 warning)

🐳 🔧 Add devcontainer

dockers/dev/Dockerfile 68% changes removed in 🐳 🔧 Rev...

     🐳 🔧 Add devcontainer CI

     🐳 🔧 Revise devcontainer base

Powered by Pull Assistant. Last update 5b0f50f ... 6192d2f. Read the comment docs.

@rinx rinx requested a review from kmrmt August 11, 2020 07:55
@vdaas-ci
Copy link
Collaborator

[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

# limitations under the License.
#

FROM vdaas/vald-ci-container:latest AS builder
Copy link
Contributor

Choose a reason for hiding this comment

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

[hadolint] reported by reviewdog 🐶
DL3007 Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag


ENV PATH=$PATH:$GOROOT/bin

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] reported by reviewdog 🐶
DL3008 Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

"go.testOnSave": true,
"go.gopath": "/go"
},
"extensions": [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kmrmt Do you have any recommends of extensions for Go development in VSCode?

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

@rinx rinx force-pushed the ci/devenv/add-codespace-and-devcontainer branch 2 times, most recently from b164bfb to 0fb58e1 Compare August 11, 2020 10:00
kmrmt
kmrmt previously approved these changes Aug 12, 2020
Copy link
Contributor

@kmrmt kmrmt left a comment

Choose a reason for hiding this comment

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

LGTM

# limitations under the License.
#

FROM vdaas/vald-ci-container:latest AS vald
Copy link
Contributor

Choose a reason for hiding this comment

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

[hadolint] reported by reviewdog 🐶
DL3007 Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag

@rinx rinx force-pushed the ci/devenv/add-codespace-and-devcontainer branch from fabb22a to 6670beb Compare September 23, 2020 02:42
@github-actions github-actions bot added size/M and removed size/M labels Sep 23, 2020
@rinx rinx added size/M and removed size/L labels Sep 23, 2020
@rinx rinx marked this pull request as ready for review September 23, 2020 03:13
@rinx
Copy link
Contributor Author

rinx commented Sep 23, 2020

@kmrmt @kpango @vankichi Now it's ready to use. Please try it on your Codespaces and approve if it's okay.

kpango
kpango previously approved these changes Sep 23, 2020
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
Copy link
Collaborator

kpango commented Sep 23, 2020

@kmrmt @vankichi could you please review VSCode settings? I'm not good at VSCode cus I'm Vimmer.
I'd appreciate if you could review.

@vankichi
Copy link
Contributor

vankichi commented Sep 24, 2020

@kpango @rinx
Unfortunately, I'm not good at VSCode 😅
But I tried to apply .devcontainer/devcontainer.jon to my local VSCode, it looks good for me.
IMO, LGTM about this setting 👍

vankichi
vankichi previously approved these changes Sep 24, 2020
@kpango
Copy link
Collaborator

kpango commented Sep 24, 2020

seems 2 approvals I think it's okay to merge.
/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by kpango for branch: ci/devenv/add-codespace-and-devcontainer

Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
@vdaas-ci vdaas-ci dismissed stale reviews from vankichi and kpango via 6192d2f September 24, 2020 05:46
@vdaas-ci vdaas-ci force-pushed the ci/devenv/add-codespace-and-devcontainer branch from 6670beb to 6192d2f Compare September 24, 2020 05:46
@vdaas-ci
Copy link
Collaborator

[FORMAT] Updating license headers and formatting go codes triggered by kpango.

Copy link
Collaborator

@vdaas-ci vdaas-ci left a comment

Choose a reason for hiding this comment

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

[APPROVED] This PR is approved by kpango.

@kpango kpango merged commit dd60c10 into master Sep 24, 2020
@kpango kpango deleted the ci/devenv/add-codespace-and-devcontainer branch September 24, 2020 05:49
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.

5 participants