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

NOISSUE - Add searchable Things name #750

Merged
merged 17 commits into from
May 30, 2019
Merged

NOISSUE - Add searchable Things name #750

merged 17 commits into from
May 30, 2019

Conversation

manuio
Copy link
Contributor

@manuio manuio commented May 17, 2019

Signed-off-by: Manuel Imperiale [email protected]

@@ -166,7 +166,7 @@ func (svc *mainfluxThings) UpdateKey(string, string, string) error {
panic("not implemented")
}

func (svc *mainfluxThings) ListThings(string, uint64, uint64) (things.ThingsPage, error) {
func (svc *mainfluxThings) ListThings(string, uint64, uint64, string) (things.ThingsPage, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using variadic functions so that we do not have to pass this param every time.

I am not saying it is better, just analyze this possibility.

@anovakovic01 @dusanb94 @nmarcetic comments?

Copy link
Collaborator

@chombium chombium May 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using variadic functions and checking the variables like:

package main

import (
	"fmt"
	"reflect"
)

func test(a ...interface{}) {
	for i, param := range a {
		fmt.Printf("%d : %s\n", i, reflect.TypeOf(param))
	}
}

func main() {
	test(1, "my_way", true)
}

It might be better if we use some dependency injection framework like wire (blog post) or one from awesome-go's di list. I've used DI in other languages, but not in Go and I can not say which framework is better.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that name can be left as is for now. But if we add any other parameters, we can add query struct and pass it as a parameter to this function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @anovakovic01

@codecov-io
Copy link

codecov-io commented May 21, 2019

Codecov Report

Merging #750 into master will decrease coverage by 1.21%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #750      +/-   ##
==========================================
- Coverage   86.16%   84.94%   -1.22%     
==========================================
  Files          69       69              
  Lines        4675     4449     -226     
==========================================
- Hits         4028     3779     -249     
- Misses        430      443      +13     
- Partials      217      227      +10
Impacted Files Coverage Δ
sdk/go/sdk.go 96.15% <ø> (ø) ⬆️
things/things.go 100% <ø> (ø) ⬆️
things/api/http/endpoint.go 98.23% <100%> (ø) ⬆️
things/service.go 88.75% <100%> (ø) ⬆️
things/redis/streams.go 91.93% <100%> (ø) ⬆️
things/postgres/init.go 91.48% <100%> (ø) ⬆️
sdk/go/things.go 66.3% <100%> (ø) ⬆️
things/postgres/channels.go 79.05% <100%> (-6.55%) ⬇️
things/api/http/requests.go 77.41% <40%> (-14.63%) ⬇️
things/api/http/transport.go 96.55% <63.63%> (-2.43%) ⬇️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cac1e35...9544b95. Read the comment docs.

@@ -166,7 +166,7 @@ func (svc *mainfluxThings) UpdateKey(string, string, string) error {
panic("not implemented")
}

func (svc *mainfluxThings) ListThings(string, uint64, uint64) (things.ThingsPage, error) {
func (svc *mainfluxThings) ListThings(string, uint64, uint64, string) (things.ThingsPage, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that name can be left as is for now. But if we add any other parameters, we can add query struct and pass it as a parameter to this function.

}

func (req *listResourcesReq) validate() error {
if req.token == "" {
return things.ErrUnauthorizedAccess
}

if req.limit == 0 || req.limit > maxLimitSize {
if req.limit == 0 || req.limit > maxLimitSize ||
len(req.name) > maxNameSize {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the name part to a separate if statement in order to keep it simple.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes pls, we are avoiding chaining as much as we can.

@@ -81,7 +81,7 @@ func (lm *loggingMiddleware) ViewThing(token, id string) (thing things.Thing, er
return lm.svc.ViewThing(token, id)
}

func (lm *loggingMiddleware) ListThings(token string, offset, limit uint64) (_ things.ThingsPage, err error) {
func (lm *loggingMiddleware) ListThings(token string, offset, limit uint64, name string) (_ things.ThingsPage, err error) {
defer func(begin time.Time) {
message := fmt.Sprintf("Method list_things for token %s took %s to complete", token, time.Since(begin))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think about adding name to log msg.

nq := ""
if name != "" {
name = fmt.Sprintf(`%%%s%%`, name)
nq = fmt.Sprintf(`AND name LIKE :name`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to use this second fmt.Sprintf.

Key: thkey,
}

thingRepo.Save(t)
// Create one thing with name
if i == 1 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using 0 here?

name: name,
size: 1,
},
"retrieve things with invalid name": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an invalid name. There are no things with this name. Think about adding an invalid name use case (with a name which length is larger than the limit that you've set).

esths, eserr := essvc.ListThings(token, 0, 10)
ths, err := svc.ListThings(token, 0, 10)
esths, eserr := essvc.ListThings(token, 0, 10, "")
ths, err := svc.ListThings(token, 0, 10, "lora")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use change this to something else. It's not a huge deal, but I don't like having anything protocol specific even in tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I forgot this one

if len(req.Name) > maxNameSize {
return things.ErrMalformedEntity
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to introduce this limit, you should add it to DB schema too (use varchar(64)). Also, not sure if 64 is large enough. I would put at least 128. @drasko @nmarcetic @dusanb94 @srados what do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree! Especially with about size 64 not sounds to much.

manuio added 5 commits May 22, 2019 15:53
Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: Manuel Imperiale <[email protected]>
anovakovic01
anovakovic01 previously approved these changes May 23, 2019
Signed-off-by: Manuel Imperiale <[email protected]>
manuio added 2 commits May 24, 2019 12:01
Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: Manuel Imperiale <[email protected]>
Copy link
Contributor

@anovakovic01 anovakovic01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

anovakovic01
anovakovic01 previously approved these changes May 24, 2019
Copy link
Contributor

@anovakovic01 anovakovic01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

anovakovic01
anovakovic01 previously approved these changes May 30, 2019
Copy link
Contributor

@anovakovic01 anovakovic01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Signed-off-by: Manuel Imperiale <[email protected]>
Copy link
Contributor

@anovakovic01 anovakovic01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@manuio manuio merged commit c8979ac into absmach:master May 30, 2019
@manuio manuio deleted the things-name branch May 30, 2019 13:33
mteodor pushed a commit to mteodor/mainflux that referenced this pull request Jun 21, 2019
* NOISSUE - Add searchable Things name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix typo

Signed-off-by: Manuel Imperiale <[email protected]>

* Add postgres schema validation and tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Add namme tests in requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Typo fix

Signed-off-by: Manuel Imperiale <[email protected]>

* Rm requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Add name in ListThings loggins

Signed-off-by: Manuel Imperiale <[email protected]>

* Add invalidName var for tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Set maxNameSize to 1024

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix postgres test

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix total when filtering things by name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix review

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>
anovakovic01 pushed a commit that referenced this pull request Jun 24, 2019
* MF-722 - Change UUID lib (#746)

* Update uuid package and update things serivce

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Update bootstrap service tests

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Update existing postgres writer tests

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* MF-732 - Add Postgres reader (#740)

* NOISSUE - Fix Readers logs

Signed-off-by: Manuel Imperiale <[email protected]>

* MF-732 - Add Postgres reader

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix total count

Signed-off-by: Manuel Imperiale <[email protected]>

* Rm commented code

Signed-off-by: Manuel Imperiale <[email protected]>

* Add Postgres reader tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix editor format

Signed-off-by: Manuel Imperiale <[email protected]>

* Change UUID lib

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>

* MF-742 - Things to support single user scenario (#749)

* Add single user mode to things service

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Add tests for things/users package

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Update init order in main

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* Update grpc and protobuf deps in mqtt adapter (#751)

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* Fix MQTT raw message deserialization (#753)

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* NOISSUE - Add certificate fields to the Bootstrap service (#752)

* Add cert fields to the BS

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add cert fields when creating a config

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add update cert endpoint

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix key column name

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add cert fields to db converters

Signed-off-by: Dušan Borovčanin <[email protected]>

* Secure cert update endpoint

Signed-off-by: Dušan Borovčanin <[email protected]>

* Authroize cert update methods

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix Bootstrap service tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add cert update service tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update endpoit tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update API docs

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update request tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix request tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update repository tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix typo in repo tests

Signed-off-by: Dušan Borovčanin <[email protected]>
Signed-off-by: mteodor <[email protected]>

* NOISSUE - Add searchable Things name (#750)

* NOISSUE - Add searchable Things name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix typo

Signed-off-by: Manuel Imperiale <[email protected]>

* Add postgres schema validation and tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Add namme tests in requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Typo fix

Signed-off-by: Manuel Imperiale <[email protected]>

* Rm requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Add name in ListThings loggins

Signed-off-by: Manuel Imperiale <[email protected]>

* Add invalidName var for tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Set maxNameSize to 1024

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix postgres test

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix total when filtering things by name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix review

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>

* Add missing Websocket.js into docker ui image (#755)

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* MF-466 - ARM docker deployment (#756)

* Add arm Dockerfiles
Change version of postgres images in docker-compose to use versions with  multiarch

Signed-off-by: Ivan Milošević <[email protected]>

* docker compose file

Signed-off-by: Ivan Milošević <[email protected]>

* remove bin qemu file

Signed-off-by: Ivan Milošević <[email protected]>

* remove unnecesarry comments

Signed-off-by: Ivan Milošević <[email protected]>

* Add make dockers_arm32v7 in Makefile

Signed-off-by: Ivan Milošević <[email protected]>

* Remove docker/Dockerfile.arm

Signed-off-by: Ivan Milošević <[email protected]>

* Add build for arm32v7 in ui Makefile

Signed-off-by: Ivan Milošević <[email protected]>

* Add arm32v7 tags

Signed-off-by: Ivan Milošević <[email protected]>

* add docker-compose for arm
remove thing-db in docker compose (use same db as user)
fix dockerfile and makefile

Signed-off-by: Ivan Milošević <[email protected]>

* fix thing database env variable

Signed-off-by: Ivan Milošević <[email protected]>

* Switch back to separate database for things and users

Signed-off-by: Ivan Milošević <[email protected]>

* rename arm32v7 to arm

Signed-off-by: Ivan Milošević <[email protected]>

* remove arm32v7 tag
rename arm32v7 image names

Signed-off-by: Ivan Milošević <[email protected]>

* Rename command for making mqtt and ui individual images, to match other miscroservices

Signed-off-by: Ivan Milošević <[email protected]>

* Push arm docker images

Signed-off-by: Ivan Milošević <[email protected]>

* fix fucntion call in ci.sh

Signed-off-by: Ivan Milošević <[email protected]>

* mergiing ui/Dockerfile

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

*  NOISSUE - Add searchable Channels name  (#754)

* NOISSUE - Add searchable Things name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix typo

Signed-off-by: Manuel Imperiale <[email protected]>

* Add postgres schema validation and tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Add namme tests in requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* NOISSUE - Add searchable Channels name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix test description

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix bootstrap mocks

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>

* NOISSUE - Remove installing non-existent package in ci (#758)

* Remove installing non-existent  package from ci

Signed-off-by: Ivan Milošević <[email protected]>

* remove branch master condition in ci.sh to test it

Signed-off-by: Ivan Milošević <[email protected]>

* fix syntax error

Signed-off-by: Ivan Milošević <[email protected]>

* update apt

Signed-off-by: Ivan Milošević <[email protected]>

* build arm images for latest release
push ui and mqtt arm images
install only qemu-user-static

Signed-off-by: Ivan Milošević <[email protected]>

* clean docker after pushing amd64 images

Signed-off-by: Ivan Milošević <[email protected]>

* installing all qemu app

Signed-off-by: Ivan Milošević <[email protected]>

* remove docker images before building ui and mqtt arm-images

Signed-off-by: Ivan Milošević <[email protected]>

* prune dockers and test only arm build

Signed-off-by: Ivan Milošević <[email protected]>

* fix syntax error

Signed-off-by: Ivan Milošević <[email protected]>

* fix moving qemu-arm-static

Signed-off-by: Ivan Milošević <[email protected]>

* installing qemu with apt-get

Signed-off-by: Ivan Milošević <[email protected]>

* add another apt-get update

Signed-off-by: Ivan Milošević <[email protected]>

* apt install one liner

Signed-off-by: Ivan Milošević <[email protected]>

* testing ci script

Signed-off-by: Ivan Milošević <[email protected]>

* After installing qemu, get appropriate version

Signed-off-by: Ivan Milošević <[email protected]>

* Test ci without amd64 dockers

Signed-off-by: Ivan Milošević <[email protected]>

* remove tests from ci for test purpose

Signed-off-by: Ivan Milošević <[email protected]>

* Uncomment commands

Signed-off-by: Ivan Milošević <[email protected]>

* Remove whitespace and change order of building images

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* nginx

Signed-off-by: mteodor <[email protected]>

* change to openresty

Signed-off-by: mteodor <[email protected]>

* change to openresty and accept env from docker compose

Signed-off-by: mteodor <[email protected]>

* revert to master

Signed-off-by: mteodor <[email protected]>

* revert to master

Signed-off-by: mteodor <[email protected]>

* revert to master

Signed-off-by: mteodor <[email protected]>

* NOISSUE - Fix Docker for ARM (#760)

* NOISSUE - Fix Docker for ARM

Signed-off-by: drasko <[email protected]>

* Correct ARGs

Signed-off-by: drasko <[email protected]>

* Fix docker-compose for ARM

Signed-off-by: drasko <[email protected]>

* Add docker manifest

Signed-off-by: drasko <[email protected]>

* cp not mv qemu from mf root

Signed-off-by: Ivan Milošević <[email protected]>

* fix amd64 docker names for ui and mqtt images

Signed-off-by: Ivan Milošević <[email protected]>

* edit ci.sh for testing purposes

Signed-off-by: Ivan Milošević <[email protected]>

* remove bachslash from make manifest
edits in ci for testing purposes

Signed-off-by: Ivan Milošević <[email protected]>

* fix manifest call

Signed-off-by: Ivan Milošević <[email protected]>

* add manifest on version realese
delete space before latest argument
fix for loop in manifest creation

Signed-off-by: Ivan Milošević <[email protected]>

* include tests

Signed-off-by: Ivan Milošević <[email protected]>

* docker system prune
remove tests for testin purposes

Signed-off-by: Ivan Milošević <[email protected]>

* Add variant in manifest file for armv7

Signed-off-by: Ivan Milošević <[email protected]>

* Remove white space

Signed-off-by: Ivan Milošević <[email protected]>

* paralelise the compilation

Signed-off-by: Ivan Milošević <[email protected]>

* fix place of -j$NPROC

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* adding env variable

Signed-off-by: mteodor <[email protected]>

* fix variant option for manifest annotate (#765)

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* enable port configure from env var in docker-compose

Signed-off-by: mteodor <[email protected]>

* enable port configure from env var in docker-compose

Signed-off-by: mteodor <[email protected]>

* enable port configure from env var in docker-compose

Signed-off-by: mteodor <[email protected]>

* use docker env to set port

Signed-off-by: mteodor <[email protected]>

* add env to conf port in nginx.conf

Signed-off-by: mteodor <[email protected]>

* replace string with docker env

Signed-off-by: mteodor <[email protected]>

* replace string with docker env

Signed-off-by: mteodor <[email protected]>

* Update docs (#766)

Signed-off-by: Dušan Borovčanin <[email protected]>
Signed-off-by: mteodor <[email protected]>

* remove not needed comment

Signed-off-by: mteodor <[email protected]>

* adding .env file for default UI_PORT - if no enviroment UI_PORT is set value from .env file is used

Signed-off-by: mteodor <[email protected]>

* get default UI_PORT variable value from .env file

Signed-off-by: mteodor <[email protected]>

* set default port value to 3000

Signed-off-by: mteodor <[email protected]>
rugwirobaker pushed a commit to rugwirobaker/mainflux that referenced this pull request Jun 26, 2019
* NOISSUE - Add searchable Things name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix typo

Signed-off-by: Manuel Imperiale <[email protected]>

* Add postgres schema validation and tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Add namme tests in requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Typo fix

Signed-off-by: Manuel Imperiale <[email protected]>

* Rm requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Add name in ListThings loggins

Signed-off-by: Manuel Imperiale <[email protected]>

* Add invalidName var for tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Set maxNameSize to 1024

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix postgres test

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix total when filtering things by name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix review

Signed-off-by: Manuel Imperiale <[email protected]>
rugwirobaker pushed a commit to rugwirobaker/mainflux that referenced this pull request Jun 26, 2019
* MF-722 - Change UUID lib (absmach#746)

* Update uuid package and update things serivce

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Update bootstrap service tests

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Update existing postgres writer tests

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* MF-732 - Add Postgres reader (absmach#740)

* NOISSUE - Fix Readers logs

Signed-off-by: Manuel Imperiale <[email protected]>

* MF-732 - Add Postgres reader

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix total count

Signed-off-by: Manuel Imperiale <[email protected]>

* Rm commented code

Signed-off-by: Manuel Imperiale <[email protected]>

* Add Postgres reader tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix editor format

Signed-off-by: Manuel Imperiale <[email protected]>

* Change UUID lib

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>

* MF-742 - Things to support single user scenario (absmach#749)

* Add single user mode to things service

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Add tests for things/users package

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Update init order in main

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* Update grpc and protobuf deps in mqtt adapter (absmach#751)

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* Fix MQTT raw message deserialization (absmach#753)

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* NOISSUE - Add certificate fields to the Bootstrap service (absmach#752)

* Add cert fields to the BS

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add cert fields when creating a config

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add update cert endpoint

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix key column name

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add cert fields to db converters

Signed-off-by: Dušan Borovčanin <[email protected]>

* Secure cert update endpoint

Signed-off-by: Dušan Borovčanin <[email protected]>

* Authroize cert update methods

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix Bootstrap service tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add cert update service tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update endpoit tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update API docs

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update request tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix request tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update repository tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix typo in repo tests

Signed-off-by: Dušan Borovčanin <[email protected]>
Signed-off-by: mteodor <[email protected]>

* NOISSUE - Add searchable Things name (absmach#750)

* NOISSUE - Add searchable Things name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix typo

Signed-off-by: Manuel Imperiale <[email protected]>

* Add postgres schema validation and tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Add namme tests in requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Typo fix

Signed-off-by: Manuel Imperiale <[email protected]>

* Rm requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Add name in ListThings loggins

Signed-off-by: Manuel Imperiale <[email protected]>

* Add invalidName var for tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Set maxNameSize to 1024

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix postgres test

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix total when filtering things by name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix review

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>

* Add missing Websocket.js into docker ui image (absmach#755)

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* MF-466 - ARM docker deployment (absmach#756)

* Add arm Dockerfiles
Change version of postgres images in docker-compose to use versions with  multiarch

Signed-off-by: Ivan Milošević <[email protected]>

* docker compose file

Signed-off-by: Ivan Milošević <[email protected]>

* remove bin qemu file

Signed-off-by: Ivan Milošević <[email protected]>

* remove unnecesarry comments

Signed-off-by: Ivan Milošević <[email protected]>

* Add make dockers_arm32v7 in Makefile

Signed-off-by: Ivan Milošević <[email protected]>

* Remove docker/Dockerfile.arm

Signed-off-by: Ivan Milošević <[email protected]>

* Add build for arm32v7 in ui Makefile

Signed-off-by: Ivan Milošević <[email protected]>

* Add arm32v7 tags

Signed-off-by: Ivan Milošević <[email protected]>

* add docker-compose for arm
remove thing-db in docker compose (use same db as user)
fix dockerfile and makefile

Signed-off-by: Ivan Milošević <[email protected]>

* fix thing database env variable

Signed-off-by: Ivan Milošević <[email protected]>

* Switch back to separate database for things and users

Signed-off-by: Ivan Milošević <[email protected]>

* rename arm32v7 to arm

Signed-off-by: Ivan Milošević <[email protected]>

* remove arm32v7 tag
rename arm32v7 image names

Signed-off-by: Ivan Milošević <[email protected]>

* Rename command for making mqtt and ui individual images, to match other miscroservices

Signed-off-by: Ivan Milošević <[email protected]>

* Push arm docker images

Signed-off-by: Ivan Milošević <[email protected]>

* fix fucntion call in ci.sh

Signed-off-by: Ivan Milošević <[email protected]>

* mergiing ui/Dockerfile

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

*  NOISSUE - Add searchable Channels name  (absmach#754)

* NOISSUE - Add searchable Things name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix typo

Signed-off-by: Manuel Imperiale <[email protected]>

* Add postgres schema validation and tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Add namme tests in requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* NOISSUE - Add searchable Channels name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix test description

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix bootstrap mocks

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>

* NOISSUE - Remove installing non-existent package in ci (absmach#758)

* Remove installing non-existent  package from ci

Signed-off-by: Ivan Milošević <[email protected]>

* remove branch master condition in ci.sh to test it

Signed-off-by: Ivan Milošević <[email protected]>

* fix syntax error

Signed-off-by: Ivan Milošević <[email protected]>

* update apt

Signed-off-by: Ivan Milošević <[email protected]>

* build arm images for latest release
push ui and mqtt arm images
install only qemu-user-static

Signed-off-by: Ivan Milošević <[email protected]>

* clean docker after pushing amd64 images

Signed-off-by: Ivan Milošević <[email protected]>

* installing all qemu app

Signed-off-by: Ivan Milošević <[email protected]>

* remove docker images before building ui and mqtt arm-images

Signed-off-by: Ivan Milošević <[email protected]>

* prune dockers and test only arm build

Signed-off-by: Ivan Milošević <[email protected]>

* fix syntax error

Signed-off-by: Ivan Milošević <[email protected]>

* fix moving qemu-arm-static

Signed-off-by: Ivan Milošević <[email protected]>

* installing qemu with apt-get

Signed-off-by: Ivan Milošević <[email protected]>

* add another apt-get update

Signed-off-by: Ivan Milošević <[email protected]>

* apt install one liner

Signed-off-by: Ivan Milošević <[email protected]>

* testing ci script

Signed-off-by: Ivan Milošević <[email protected]>

* After installing qemu, get appropriate version

Signed-off-by: Ivan Milošević <[email protected]>

* Test ci without amd64 dockers

Signed-off-by: Ivan Milošević <[email protected]>

* remove tests from ci for test purpose

Signed-off-by: Ivan Milošević <[email protected]>

* Uncomment commands

Signed-off-by: Ivan Milošević <[email protected]>

* Remove whitespace and change order of building images

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* nginx

Signed-off-by: mteodor <[email protected]>

* change to openresty

Signed-off-by: mteodor <[email protected]>

* change to openresty and accept env from docker compose

Signed-off-by: mteodor <[email protected]>

* revert to master

Signed-off-by: mteodor <[email protected]>

* revert to master

Signed-off-by: mteodor <[email protected]>

* revert to master

Signed-off-by: mteodor <[email protected]>

* NOISSUE - Fix Docker for ARM (absmach#760)

* NOISSUE - Fix Docker for ARM

Signed-off-by: drasko <[email protected]>

* Correct ARGs

Signed-off-by: drasko <[email protected]>

* Fix docker-compose for ARM

Signed-off-by: drasko <[email protected]>

* Add docker manifest

Signed-off-by: drasko <[email protected]>

* cp not mv qemu from mf root

Signed-off-by: Ivan Milošević <[email protected]>

* fix amd64 docker names for ui and mqtt images

Signed-off-by: Ivan Milošević <[email protected]>

* edit ci.sh for testing purposes

Signed-off-by: Ivan Milošević <[email protected]>

* remove bachslash from make manifest
edits in ci for testing purposes

Signed-off-by: Ivan Milošević <[email protected]>

* fix manifest call

Signed-off-by: Ivan Milošević <[email protected]>

* add manifest on version realese
delete space before latest argument
fix for loop in manifest creation

Signed-off-by: Ivan Milošević <[email protected]>

* include tests

Signed-off-by: Ivan Milošević <[email protected]>

* docker system prune
remove tests for testin purposes

Signed-off-by: Ivan Milošević <[email protected]>

* Add variant in manifest file for armv7

Signed-off-by: Ivan Milošević <[email protected]>

* Remove white space

Signed-off-by: Ivan Milošević <[email protected]>

* paralelise the compilation

Signed-off-by: Ivan Milošević <[email protected]>

* fix place of -j$NPROC

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* adding env variable

Signed-off-by: mteodor <[email protected]>

* fix variant option for manifest annotate (absmach#765)

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* enable port configure from env var in docker-compose

Signed-off-by: mteodor <[email protected]>

* enable port configure from env var in docker-compose

Signed-off-by: mteodor <[email protected]>

* enable port configure from env var in docker-compose

Signed-off-by: mteodor <[email protected]>

* use docker env to set port

Signed-off-by: mteodor <[email protected]>

* add env to conf port in nginx.conf

Signed-off-by: mteodor <[email protected]>

* replace string with docker env

Signed-off-by: mteodor <[email protected]>

* replace string with docker env

Signed-off-by: mteodor <[email protected]>

* Update docs (absmach#766)

Signed-off-by: Dušan Borovčanin <[email protected]>
Signed-off-by: mteodor <[email protected]>

* remove not needed comment

Signed-off-by: mteodor <[email protected]>

* adding .env file for default UI_PORT - if no enviroment UI_PORT is set value from .env file is used

Signed-off-by: mteodor <[email protected]>

* get default UI_PORT variable value from .env file

Signed-off-by: mteodor <[email protected]>

* set default port value to 3000

Signed-off-by: mteodor <[email protected]>
manuio added a commit that referenced this pull request Oct 12, 2020
* NOISSUE - Add searchable Things name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix typo

Signed-off-by: Manuel Imperiale <[email protected]>

* Add postgres schema validation and tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Add namme tests in requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Typo fix

Signed-off-by: Manuel Imperiale <[email protected]>

* Rm requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Add name in ListThings loggins

Signed-off-by: Manuel Imperiale <[email protected]>

* Add invalidName var for tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Set maxNameSize to 1024

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix postgres test

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix total when filtering things by name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix review

Signed-off-by: Manuel Imperiale <[email protected]>
manuio pushed a commit that referenced this pull request Oct 12, 2020
* MF-722 - Change UUID lib (#746)

* Update uuid package and update things serivce

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Update bootstrap service tests

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Update existing postgres writer tests

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* MF-732 - Add Postgres reader (#740)

* NOISSUE - Fix Readers logs

Signed-off-by: Manuel Imperiale <[email protected]>

* MF-732 - Add Postgres reader

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix total count

Signed-off-by: Manuel Imperiale <[email protected]>

* Rm commented code

Signed-off-by: Manuel Imperiale <[email protected]>

* Add Postgres reader tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix editor format

Signed-off-by: Manuel Imperiale <[email protected]>

* Change UUID lib

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>

* MF-742 - Things to support single user scenario (#749)

* Add single user mode to things service

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Add tests for things/users package

Signed-off-by: Aleksandar Novakovic <[email protected]>

* Update init order in main

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* Update grpc and protobuf deps in mqtt adapter (#751)

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* Fix MQTT raw message deserialization (#753)

Signed-off-by: Aleksandar Novakovic <[email protected]>
Signed-off-by: mteodor <[email protected]>

* NOISSUE - Add certificate fields to the Bootstrap service (#752)

* Add cert fields to the BS

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add cert fields when creating a config

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add update cert endpoint

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix key column name

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add cert fields to db converters

Signed-off-by: Dušan Borovčanin <[email protected]>

* Secure cert update endpoint

Signed-off-by: Dušan Borovčanin <[email protected]>

* Authroize cert update methods

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix Bootstrap service tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Add cert update service tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update endpoit tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update API docs

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update request tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix request tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Update repository tests

Signed-off-by: Dušan Borovčanin <[email protected]>

* Fix typo in repo tests

Signed-off-by: Dušan Borovčanin <[email protected]>
Signed-off-by: mteodor <[email protected]>

* NOISSUE - Add searchable Things name (#750)

* NOISSUE - Add searchable Things name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix typo

Signed-off-by: Manuel Imperiale <[email protected]>

* Add postgres schema validation and tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Add namme tests in requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Typo fix

Signed-off-by: Manuel Imperiale <[email protected]>

* Rm requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* Add name in ListThings loggins

Signed-off-by: Manuel Imperiale <[email protected]>

* Add invalidName var for tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Set maxNameSize to 1024

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix postgres test

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix total when filtering things by name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix review

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>

* Add missing Websocket.js into docker ui image (#755)

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* MF-466 - ARM docker deployment (#756)

* Add arm Dockerfiles
Change version of postgres images in docker-compose to use versions with  multiarch

Signed-off-by: Ivan Milošević <[email protected]>

* docker compose file

Signed-off-by: Ivan Milošević <[email protected]>

* remove bin qemu file

Signed-off-by: Ivan Milošević <[email protected]>

* remove unnecesarry comments

Signed-off-by: Ivan Milošević <[email protected]>

* Add make dockers_arm32v7 in Makefile

Signed-off-by: Ivan Milošević <[email protected]>

* Remove docker/Dockerfile.arm

Signed-off-by: Ivan Milošević <[email protected]>

* Add build for arm32v7 in ui Makefile

Signed-off-by: Ivan Milošević <[email protected]>

* Add arm32v7 tags

Signed-off-by: Ivan Milošević <[email protected]>

* add docker-compose for arm
remove thing-db in docker compose (use same db as user)
fix dockerfile and makefile

Signed-off-by: Ivan Milošević <[email protected]>

* fix thing database env variable

Signed-off-by: Ivan Milošević <[email protected]>

* Switch back to separate database for things and users

Signed-off-by: Ivan Milošević <[email protected]>

* rename arm32v7 to arm

Signed-off-by: Ivan Milošević <[email protected]>

* remove arm32v7 tag
rename arm32v7 image names

Signed-off-by: Ivan Milošević <[email protected]>

* Rename command for making mqtt and ui individual images, to match other miscroservices

Signed-off-by: Ivan Milošević <[email protected]>

* Push arm docker images

Signed-off-by: Ivan Milošević <[email protected]>

* fix fucntion call in ci.sh

Signed-off-by: Ivan Milošević <[email protected]>

* mergiing ui/Dockerfile

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

*  NOISSUE - Add searchable Channels name  (#754)

* NOISSUE - Add searchable Things name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix typo

Signed-off-by: Manuel Imperiale <[email protected]>

* Add postgres schema validation and tests

Signed-off-by: Manuel Imperiale <[email protected]>

* Add namme tests in requests_test

Signed-off-by: Manuel Imperiale <[email protected]>

* NOISSUE - Add searchable Channels name

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix test description

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix bootstrap mocks

Signed-off-by: Manuel Imperiale <[email protected]>

* Fix reviews

Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: mteodor <[email protected]>

* NOISSUE - Remove installing non-existent package in ci (#758)

* Remove installing non-existent  package from ci

Signed-off-by: Ivan Milošević <[email protected]>

* remove branch master condition in ci.sh to test it

Signed-off-by: Ivan Milošević <[email protected]>

* fix syntax error

Signed-off-by: Ivan Milošević <[email protected]>

* update apt

Signed-off-by: Ivan Milošević <[email protected]>

* build arm images for latest release
push ui and mqtt arm images
install only qemu-user-static

Signed-off-by: Ivan Milošević <[email protected]>

* clean docker after pushing amd64 images

Signed-off-by: Ivan Milošević <[email protected]>

* installing all qemu app

Signed-off-by: Ivan Milošević <[email protected]>

* remove docker images before building ui and mqtt arm-images

Signed-off-by: Ivan Milošević <[email protected]>

* prune dockers and test only arm build

Signed-off-by: Ivan Milošević <[email protected]>

* fix syntax error

Signed-off-by: Ivan Milošević <[email protected]>

* fix moving qemu-arm-static

Signed-off-by: Ivan Milošević <[email protected]>

* installing qemu with apt-get

Signed-off-by: Ivan Milošević <[email protected]>

* add another apt-get update

Signed-off-by: Ivan Milošević <[email protected]>

* apt install one liner

Signed-off-by: Ivan Milošević <[email protected]>

* testing ci script

Signed-off-by: Ivan Milošević <[email protected]>

* After installing qemu, get appropriate version

Signed-off-by: Ivan Milošević <[email protected]>

* Test ci without amd64 dockers

Signed-off-by: Ivan Milošević <[email protected]>

* remove tests from ci for test purpose

Signed-off-by: Ivan Milošević <[email protected]>

* Uncomment commands

Signed-off-by: Ivan Milošević <[email protected]>

* Remove whitespace and change order of building images

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* nginx

Signed-off-by: mteodor <[email protected]>

* change to openresty

Signed-off-by: mteodor <[email protected]>

* change to openresty and accept env from docker compose

Signed-off-by: mteodor <[email protected]>

* revert to master

Signed-off-by: mteodor <[email protected]>

* revert to master

Signed-off-by: mteodor <[email protected]>

* revert to master

Signed-off-by: mteodor <[email protected]>

* NOISSUE - Fix Docker for ARM (#760)

* NOISSUE - Fix Docker for ARM

Signed-off-by: drasko <[email protected]>

* Correct ARGs

Signed-off-by: drasko <[email protected]>

* Fix docker-compose for ARM

Signed-off-by: drasko <[email protected]>

* Add docker manifest

Signed-off-by: drasko <[email protected]>

* cp not mv qemu from mf root

Signed-off-by: Ivan Milošević <[email protected]>

* fix amd64 docker names for ui and mqtt images

Signed-off-by: Ivan Milošević <[email protected]>

* edit ci.sh for testing purposes

Signed-off-by: Ivan Milošević <[email protected]>

* remove bachslash from make manifest
edits in ci for testing purposes

Signed-off-by: Ivan Milošević <[email protected]>

* fix manifest call

Signed-off-by: Ivan Milošević <[email protected]>

* add manifest on version realese
delete space before latest argument
fix for loop in manifest creation

Signed-off-by: Ivan Milošević <[email protected]>

* include tests

Signed-off-by: Ivan Milošević <[email protected]>

* docker system prune
remove tests for testin purposes

Signed-off-by: Ivan Milošević <[email protected]>

* Add variant in manifest file for armv7

Signed-off-by: Ivan Milošević <[email protected]>

* Remove white space

Signed-off-by: Ivan Milošević <[email protected]>

* paralelise the compilation

Signed-off-by: Ivan Milošević <[email protected]>

* fix place of -j$NPROC

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* adding env variable

Signed-off-by: mteodor <[email protected]>

* fix variant option for manifest annotate (#765)

Signed-off-by: Ivan Milošević <[email protected]>
Signed-off-by: mteodor <[email protected]>

* enable port configure from env var in docker-compose

Signed-off-by: mteodor <[email protected]>

* enable port configure from env var in docker-compose

Signed-off-by: mteodor <[email protected]>

* enable port configure from env var in docker-compose

Signed-off-by: mteodor <[email protected]>

* use docker env to set port

Signed-off-by: mteodor <[email protected]>

* add env to conf port in nginx.conf

Signed-off-by: mteodor <[email protected]>

* replace string with docker env

Signed-off-by: mteodor <[email protected]>

* replace string with docker env

Signed-off-by: mteodor <[email protected]>

* Update docs (#766)

Signed-off-by: Dušan Borovčanin <[email protected]>
Signed-off-by: mteodor <[email protected]>

* remove not needed comment

Signed-off-by: mteodor <[email protected]>

* adding .env file for default UI_PORT - if no enviroment UI_PORT is set value from .env file is used

Signed-off-by: mteodor <[email protected]>

* get default UI_PORT variable value from .env file

Signed-off-by: mteodor <[email protected]>

* set default port value to 3000

Signed-off-by: mteodor <[email protected]>
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.

6 participants