You can build the DockerFile found in the current directory .
and tag it comp
docker build -t comp .
Now that the image is built, we can run it. Some notable flags are -d
as detached, and -p 1234:1234
for port mapping (eg. in web applications).
docker run --name Cmg.Tools -d comp
When in dev, it's useful to run the code using
go run src/comp/comp.go <linked list | other commands>
To test, run go test <filename>
. For verbose output include the -v
flag.
go test -v src/comp/datastructures/linkedlist/linkedlist_test.go
For further information, refer to https://pkg.go.dev/testing