Giter Club home page Giter Club logo

godevcontainer's Introduction

Go Dev Container

Ultimate Go development container for Visual Studio Code

godevcontainer

Alpine Debian

dockeri.co

Last Docker tag Latest size

Last release Last release size GitHub last release date Commits since release

GitHub last commit GitHub commit activity GitHub closed PRs GitHub issues GitHub closed issues

Lines of code Code size GitHub repo size

Visitors count

Features

  • Compatible with amd64, 386, arm64, armv6 and armv7 CPUs
  • qmcgaw/godevcontainer:alpine and qmcgaw/godevcontainer
    • Based on Alpine 3.19 (size of 936MB)
  • qmcgaw/godevcontainer:debian - beware it has CVE because of outdated packages
    • Based on Debian Buster Slim (size of 1.24GB)
  • Based on qmcgaw/basedevcontainer
    • Based on either Alpine or Debian
    • Minimal custom terminal and packages
    • See more features
  • Go 1.22 code obtained from the latest tagged Golang Docker image
  • Go tooling integrating with VS code, all cross built statically from source at the binpot:
  • Terminal Go tools
    • mockgen to generate mocks
    • mockery to generate mocks for testify/mock
  • Cross platform
    • Easily bind mount your SSH keys to use with git
    • Manage your host Docker from within the dev container, more details at qmcgaw/basedevcontainer
  • Extensible with docker-compose.yml
  • Comes with extra Go binary tools for a few extra MBs: kubectl, kubectx, kubens, stern and helm

Requirements

Setup for a project

  1. Setup your configuration files
    • With style ๐Ÿ’ฏ

      docker run -it --rm -v "/yourrepopath:/repository" qmcgaw/devtainr:v0.2.0 -dev go -path /repository -name projectname

      Or use the built binary

    • Or manually: download this repository and put the .devcontainer directory in your project.

  2. If you have a .vscode/settings.json, eventually move the settings to .devcontainer/devcontainer.json in the "settings" section as .vscode/settings.json take precedence over the settings defined in .devcontainer/devcontainer.json.
  3. Open the command palette in Visual Studio Code (CTRL+SHIFT+P) and select Remote-Containers: Open Folder in Container... and choose your project directory

Customization

See the .devcontainer/README.md document in your repository.

TODOs

License

This repository is under an MIT license unless indicated otherwise.

godevcontainer's People

Contributors

davidaparicio avatar dependabot[bot] avatar qdm12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

godevcontainer's Issues

Security Alert

Security Alert

Problem setting up devcontainer

I'm trying to use this tool on WSL-2 (arch linux distro) I'm running the command:

docker run -it --rm -v "/mnt/wsl/projects/git/golang/golang-examples/devctest:/repository" qmcgaw/devtainr:v0.2.0 -dev go -path /mnt/wsl/projects/git/golang/golang-examples/devctest -name devctest

and am getting:

๐Ÿค– Version v0.2.0 (commit 61fc96e built on 2021-01-03T21:37:06Z)
๐Ÿ“ Creating .devcontainer directory...โŒ
mkdir /mnt/wsl/projects/git/golang/golang-examples/devctest/.devcontainer: no such file or directory

There is an empty directory at the path specified:

 ls -al /mnt/wsl/projects/git/golang/golang-examples/devctest/
total 8
drwxr-xr-x 2 mwoodpatrick mwoodpatrick 4096 Oct 15 07:05 .
drwxr-xr-x 6 mwoodpatrick mwoodpatrick 4096 Oct 15 07:05 ..

If I run the reported failing command it works correctly.

Any suggestions on what I'm doing wrong?

devcontainer.json includes invalid characters

erroroutput

In the instructions it says to use the $HOME environment variable, as you can see from the output, the dollar sign is also not in the list of allowed characters (only letters and numbers.) The container started successfully when I entered the absolute path to my .ssh/ directory.

This was using the latest version of vscode on Ubuntu 19.04 in a VirtualBox VM.

Security Alert

Security Alert

Security Alert

Using go 1.16rc1?

Hello,

I recently picked up a Mac mini with the new M1 chip and I'm trying to get my setup working. On my intel based Mac, everything works fine with this + vscode remote containers. I am looking to upgrade the go version used in this repo to be 1.16rc1. Do you know exactly what I would need to change to accomplish this?

I appreciate any help! ๐Ÿ˜„

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.