Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ mock-gen:
## lint and unit tests
lint-dockerfile: ## Perform static analysis on Dockerfile
@echo "Running Dockerfile lint check ..."
@${HADOLINT} $$(find . -name "Dockerfile.*")
@${HADOLINT} $$(find . -path ./vendor -prune -o -name "Dockerfile.*" -print)
@echo "Dockerfile lint check OK"

lint-mod: ## Verify the Go dependencies
Expand Down Expand Up @@ -212,6 +212,14 @@ help ::
@printf ' %-33.33s %s\n' 'pre-commit' \
'Invoke the pre-commit hook linting tool'

docs:
# This uses swaggo/swag to parse the Go source annotations (godoc comments with @Summary, @description, etc.) and regenerates docs.go, swagger.json, and swagger.yaml.
# You'll need swag installed (go install github.com/swaggo/swag/cmd/swag@latest).
swag init -d voltha-go-controller --parseDependency --parseInternal
# To visualize the docs, run the following command
# Command: 'docker run --rm -p 8080:8080 -v $(pwd)/docs:/usr/share/nginx/html/docs -e SWAGGER_JSON=/usr/share/nginx/html/docs/swagger.json swaggerapi/swagger-ui'
# Open http://localhost:8080/docs/index.html in your browser

clean ::
$(RM) -r .venv

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.22
0.1.23
1 change: 1 addition & 0 deletions docker/Dockerfile.voltha-go-controller
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ENV LD_LIBRARY_PATH=/usr/local/lib
WORKDIR /go/src/voltha-go-controller
# Copy required files
COPY database ./database
COPY event ./event
COPY vendor ./vendor
COPY voltha-go-controller ./voltha-go-controller
COPY internal ./internal
Expand Down
Loading
Loading