Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor dockerfile, go modules with golang v1.14.2; closes #163 #165

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BOPOHA
Copy link

@BOPOHA BOPOHA commented Apr 27, 2020

  • removed dep-related comands and notes

  • added two Dockerfiles (works with Podman, Buildah too)

    • "prod": for clean build, with tests, runnng with non-root user, from scratch container
    • "dev": there is caching for golang deps, without tests, run as root, and result container can be not from scratch, for debug reasons.
  • docker-compose file:

    • added shared context-build block, DRY.
    • removed command name jocko in line command: jocko broker... because of we are using the same ENTRYPOINT in docker file.
  • small fixes in module paths:

    • "github.com/hashicorp/consul/testutil/retry" -> "github.com/hashicorp/consul/sdk/testutil/retry"
  • update go.mod to the lastest version for all transitive deps (exepts github.com/mitchellh/go-testing-interface v1.4.0)

…ffery#163"

- removed dep-related comands and notes
- added two Dockerfiles (works with Podman, Buildah too)
  - "prod": for clean build, with tests, runnng with non-root user, from scratch container
  - "dev":  there is caching for golang deps, without tests, run as root, and result container can be not from scratch, for debug reasons.
- docker-compose file:
  - added shared context-build block, DRY.
  - removed command name `jocko` in line `command: jocko broker...` because of we using the same ENTRYPOINT in docker file.

- small fixes in module paths:
  - "github.com/hashicorp/consul/testutil/retry" -> "github.com/hashicorp/consul/sdk/testutil/retry"

- update go.mod to the lastest version for all transitive deps (exepts github.com/mitchellh/go-testing-interface v1.4.0)
Downgrading github.com/mitchellh/go-testing-interface for supporting previous version Golang v1.13, not only v1.14
This version does not implement `Cleanup` and `Parallel` methods.

##[error]jocko/broker_test.go:446:27: cannot use t (type *"testing".T) as type "github.com/mitchellh/go-testing-interface".T in argument to NewTestServer:
	*"testing".T does not implement "github.com/mitchellh/go-testing-interface".T (missing Cleanup method)
@travisjeffery
Copy link
Owner

@BOPOHA this looks good tho i don't think we should run the tests in the main dockerfile, maybe create a separate one called Dockerfile-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants