sockit

command module
v0.0.0-...-67271c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 13 Imported by: 0

README

sockit

Go Report Card

This is the code for the day 8 of the Advent of Corona challenge.

Run

You may want to configure an .env file in the root directory with the following structure

FLAG={some_flag}
SIZE={game_size}
TIMEOUT={timeout_in_seconds}

The defaults are:

FLAG=FLAG
SIZE=3
TIMEOUT=3600
A pelo

Just run it via go command, for developing, for example. This will parse the root dir for an .env file.

go run .
Docker
  • Build docker build -t sockit .
  • Run docker run -p 8080:8080 sockit:latest, or docker run -p 8080:8080 --env-file .env sockit:latest if run with an env file.

Build from Docker Hub

If you are a lazy bastard, then just:

  • Pull the image docker pull tarasyarema/sockit:latest
  • Run the container docker run -p 8080:8080 --env-file .env tarasyarema/sockit:tagname

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL