https://github.com/marclop/golang-sandbox
https://github.com/marclop/golang-sandbox
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marclop/golang-sandbox
- Owner: marclop
- Created: 2016-03-04T15:34:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-08T11:51:11.000Z (over 10 years ago)
- Last Synced: 2025-04-09T07:55:22.808Z (about 1 year ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang Sandbox
This repository is aimed to help me learn Golang in a Docker container
## Prerequisites
Infrastructure wise you'll need:
* Docker environment reachable by the docker client, I recommend installing [Docker Toolbox](https://www.docker.com/toolbox)
* Being in a Unix-like system which has `make` available
## Start development
The make command will start the development environment and run the `make dev` and `make logs` targets
```bash
make
```
## Other commands
### Accessing the container
```bash
make enter
Write the name of the service that you want to access, possible choices are:
golang
Service name: redis
root@b9616088331e:/#
```
### Viewing logs
```bash
make logs
```
### Stopping it
```bash
make kill
```
### Restarting it
```bash
make restart
```
### Removing everything
It will also stop the environment if its running
```bash
make nodev
```
## Folders
### ops/
This folder will enclose all of the System Operations information, and code necessary to get the application up and running.