-
Notifications
You must be signed in to change notification settings - Fork 4
Base implementation of the structure of Eiffel-Goer. #1
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
Changes from all commits
5faed5c
fa7e2c9
508772e
56e0a89
0e73646
4368be5
76cd0e8
be90d6d
6acb5ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.env | ||
bin | ||
!bin/README.md | ||
data/ | ||
vendor/ | ||
.vscode/ | ||
pkg/**/**/test | ||
cmd/**/**/test | ||
internal/**/**/test | ||
testdata/ | ||
test/testdata/ | ||
test/mock_* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export RELEASE_VERSION ?= $(shell git describe --always) | ||
export DOCKER_REGISTRY ?= registry.nordix.org/eiffel | ||
export DEPLOY ?= goer | ||
|
||
all: test build start | ||
gen: | ||
go generate ./... | ||
build: gen | ||
go get github.com/ahmetb/govvv@v0.3.0 | ||
govvv build -o bin/goer ./cmd/goer | ||
clean: | ||
rm ./bin/* || true | ||
docker-compose --project-directory . -f deploy/$(DEPLOY)/docker-compose.yml rm || true | ||
docker volume rm goer-volume || true | ||
test: gen | ||
go test -cover -timeout 30s -race $(shell go list ./... | grep -v test) | ||
|
||
# Start a development docker with a database that restarts on file changes. | ||
start: | ||
docker-compose --project-directory . -f deploy/$(DEPLOY)/docker-compose.yml up | ||
stop: | ||
docker-compose --project-directory . -f deploy/$(DEPLOY)/docker-compose.yml down | ||
|
||
# Build a docker using the production Dockerfile | ||
docker: | ||
docker build -t $(DOCKER_REGISTRY)/$(DEPLOY):$(RELEASE_VERSION) -f ./deploy/$(DEPLOY)/Dockerfile . | ||
push: | ||
docker push $(DOCKER_REGISTRY)/$(DEPLOY):$(RELEASE_VERSION) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ Eiffel Goer implements the event repository API and is intended as an open sourc | |
|
||
### Docker | ||
|
||
docker run -e CONNECTION_STRING=yourdb -e DATABASE_NAME=dbname -e API_PORT=8080 registry.nordix.org/eiffel/goer | ||
docker run -e CONNECTION_STRING=yourdb -e API_PORT=8080 registry.nordix.org/eiffel/goer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the makefile we always push to a tag that matches There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will leave it as is for now, but I see three scenarios that we could follow here:
The third option feels best, but I will forget to do it on releases :) |
||
|
||
### Running a development server locally for testing. Will restart on code changes. | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.