-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
60 changed files
with
729 additions
and
729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright (c) 2022 Wibowo Arindrarto <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
# This file is part of lens <https://github.com/bow/lens>. | ||
# This file is part of neon <https://github.com/bow/neon>. | ||
|
||
FROM golang:1.21-alpine AS builder | ||
|
||
|
@@ -22,19 +22,19 @@ FROM golang:1.21-alpine | |
ARG REVISION | ||
ARG BUILD_TIME | ||
|
||
LABEL org.opencontainers.image.title="lens" \ | ||
org.opencontainers.image.url="https://ghcr.io/bow/lens" \ | ||
org.opencontainers.image.source="https://github.com/bow/lens" \ | ||
LABEL org.opencontainers.image.title="neon" \ | ||
org.opencontainers.image.url="https://ghcr.io/bow/neon" \ | ||
org.opencontainers.image.source="https://github.com/bow/neon" \ | ||
org.opencontainers.image.authors="Wibowo Arindrarto <[email protected]>" \ | ||
org.opencontainers.image.revision="${REVISION}" \ | ||
org.opencontainers.image.created="${BUILD_TIME}" \ | ||
org.opencontainers.image.licenses="BSD-3-Clause" | ||
|
||
COPY --from=builder /src/bin/lens /bin/lens | ||
COPY --from=builder /src/bin/neon /bin/neon | ||
|
||
RUN mkdir -p /var/data/ | ||
ENV LENS_SERVE_ADDR=tcp://0.0.0.0:7000 \ | ||
LENS_SERVE_DB_PATH=/var/data/lens.db | ||
ENV NEON_SERVE_ADDR=tcp://0.0.0.0:7000 \ | ||
NEON_SERVE_DB_PATH=/var/data/neon.db | ||
|
||
WORKDIR /runtime | ||
ENTRYPOINT ["lens"] | ||
ENTRYPOINT ["neon"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright (c) 2022 Wibowo Arindrarto <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
# This file is part of lens <https://github.com/bow/lens>. | ||
# This file is part of neon <https://github.com/bow/neon>. | ||
|
||
# Cross-platform adjustments. | ||
SYS := $(shell uname 2> /dev/null) | ||
|
@@ -19,7 +19,7 @@ else | |
$(error error: unsupported development platform) | ||
endif | ||
|
||
APP_NAME := lens | ||
APP_NAME := neon | ||
GO_VERSION := $(shell (head -n 3 go.mod | $(SED_EXE) 's/^go//g' | tail -n 1)) | ||
REPO_NAME := $(shell (head -n 1 go.mod | $(SED_EXE) 's/^module //g')) | ||
|
||
|
@@ -147,16 +147,16 @@ internal/database/parser_mock_test.go: internal/parser.go | |
internal/server/store_mock_test.go: internal/store.go | ||
mockgen -source=$< -package=server FeedStore > $@ | ||
|
||
internal/reader/client_mock_test.go: api/lens_grpc.pb.go | ||
mockgen -source=$< -package=reader LensClient > $@ | ||
internal/reader/client_mock_test.go: api/neon_grpc.pb.go | ||
mockgen -source=$< -package=reader NeonClient > $@ | ||
|
||
|
||
.PHONY: protos | ||
protos: $(PROTO_FILES) ## Generate code from protobuf. | ||
@protoc \ | ||
-I=$(PROTO_DIR) \ | ||
--go_opt=Mlens.proto="$(REPO_NAME)/api;api" \ | ||
--go-grpc_opt=Mlens.proto="$(REPO_NAME)/api;api" \ | ||
--go_opt=Mneon.proto="$(REPO_NAME)/api;api" \ | ||
--go-grpc_opt=Mneon.proto="$(REPO_NAME)/api;api" \ | ||
--go_out=$(PROTO_DIR) --go_opt=paths=source_relative \ | ||
--go-grpc_out=$(PROTO_DIR) --go-grpc_opt=paths=source_relative \ | ||
$(PROTO_FILES) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# `lens` | ||
# `neon` | ||
|
||
[![ci](https://github.com/bow/lens/actions/workflows/ci.yml/badge.svg)](https://github.com/bow/lens/actions?query=branch%3Amaster) | ||
[![cogerage](https://api.codeclimate.com/v1/badges/7ee8245b58f68014d987/test_coverage)](https://codeclimate.com/github/bow/lens/test_coverage) | ||
[![ci](https://github.com/bow/neon/actions/workflows/ci.yml/badge.svg)](https://github.com/bow/neon/actions?query=branch%3Amaster) | ||
[![coverage](https://api.codeclimate.com/v1/badges/7ee8245b58f68014d987/test_coverage)](https://codeclimate.com/github/bow/neon/test_coverage) | ||
|
||
`lens` is a feed reader suite. | ||
`neon` is a feed reader suite. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.