Skip to content

Latest commit

 

History

History
102 lines (76 loc) · 4.74 KB

README-go.md

File metadata and controls

102 lines (76 loc) · 4.74 KB

Various samples for go language

Docker Image Build for Docker Security

Overview

This repository is a collection of Dockerfile, VS Code Remote Development settings, VS Code settings, Go development, and all necessary settings.

setting for VS CODE

docker for go build and development environment

  • docker
    docker was created for build for go language and local development environment.
    All docker images themselves are uploaded to Github Container Registry.

  • docker/base
    There is a base image Dockerfile mainly for build, local development, and test. There is a base image that contains a CLI that is likely to be used for go development and AWS/GCP.

  • docker/build
    This is a sample for build. Some people may need to modify the Dockerfile.

  • docker/local
    This is a sample for local. Some people may need to modify the Dockerfile.

  • docker/test
    This is a sample for test. Some people may need to modify the Dockerfile.

env for VS Code Remote Development

  • env
    This directory contains sample configuration files for VS Code Remote Development.

    Normally, I think that some people were working in the docker container with docker exec -it {container name} bash etc. from terminal, By linking VS CODE and the Docker container, you can directly operate the Docker container with VS CODE and you can use the extension and settings as they are.

    There is a go environment and an environment for additional lambda development environments. The serverless framework CLI is also installed in the lambda development environment.

  • env/base
    There are templates and examples for go development environment used in VS Code Remote Development.

  • env/serverless-aws
    There are templates and examples for go-lambda development environment used in VS Code Remote Development.

golangci-lint for Go linters aggregator

  • golangci.yaml
    go has various code analysis tools. Below is a list of code analysis tools listed on awesome-go.

    https://github.com/avelino/awesome-go#code-analysis

    It takes a lot of time and effort to find out how to use such analysis tools one by one and install all of them, and it also takes time to investigate how to execute the tools.
    Therefore, golangci-lint is a tool that integrates and executes code analysis tools.
    This file is a config file used when executing golangci-lint. Lint is executed based on this setting, but depending on the project, there may be lint that should be strict or should be allowed.
    It is just a sample and needs to be changed depending on the project.

runner.conf for fresh cli configuration

Required

Other Link