https://github.com/otaviof/go-dev-sh
Simple Linux based container image carrying Golang tools.
https://github.com/otaviof/go-dev-sh
container-image development golang shell
Last synced: about 2 months ago
JSON representation
Simple Linux based container image carrying Golang tools.
- Host: GitHub
- URL: https://github.com/otaviof/go-dev-sh
- Owner: otaviof
- Created: 2019-09-14T11:28:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-18T11:46:40.000Z (almost 7 years ago)
- Last Synced: 2025-02-01T09:41:42.680Z (over 1 year ago)
- Topics: container-image, development, golang, shell
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `go-dev-sh`
Linux based container image carrying Golang development tooling, with a command line helper to spin
up mounting local directory, keeping shell history and `GOPATH` outside as well. Container images are
in [Docker-Hub][dockerhub].
## Usage
In a project where you would like to have Golang development tooling, run:
```bash
go-dev-sh
```
The directory will be mounted upon `/src` and the working directory will be kept the same inside the
container.
Export `GO_DEV_SH_IMAGE_TAG` environment variable to use a custom container image-tag combination.
## Installing
### Command-Line
To install the command-line helper locally, run:
```bash
make install
```
Default instalaltion folder is at `/usr/local/bin/`, you can export a different location during
`install` target, to install in a different base folder.
```bash
make install SCRIPT_INSTALL_DIR="/usr/local/bin/"
```
### Container Image
The container image can be build with the following targets, consider `GO_DEV_SH_IMAGE_TAG` to use a
custom image-tag combination.
```bash
make build GO_DEV_SH_IMAGE_TAG="otaviof/go-dev-sh:latest"
```
[dockerhub]: https://hub.docker.com/r/otaviof/go-dev-sh