Edge-home-orchestration-go: [DataStorage] Upgrade to EdgeX v2.0 (Ireland)

Created on 1 Jul 2021  ·  7Comments  ·  Source: lf-edge/edge-home-orchestration-go

We should get out of temporary use and need to check the possibility of official EdgeX v2.0 for Home Edge.

enhancement

Most helpful comment

@sun-sharma PTAL. (including #326) in terms of the test w.r.t. the PR.

All 7 comments

I made the ds_ireland branch to test DataStorage with edgex v2.0.

  1. Run EdgeX containers without security
$ cd deployments/datastorage
$ docker-compose up -d
  1. Save configuration folders and files in configs/datastorage folder to /var/edge-orchestration/datastorage/
  2. Install 0mq as a shared library.
$ sudo apt-get install -y libzmq3-dev
  1. Create the container image
$ ./build.sh container x86_64
  1. Run edge-orchestration
$ docker run -it -d --privileged --network="host" --name edge-orchestration -e EDGEX_SECURITY_SECRET_STORE=false -v /var/edge-orchestration/:/var/edge-orchestration/:rw -v /var/run/docker.sock:/var/run/docker.sock:rw -v /proc/:/process/:ro edge-orchestration:coconut

I made the ds_ireland branch to test DataStorage with edgex v2.0.

  1. Run EdgeX containers without security
$ cd deployments/datastorage
$ docker-compose up -d
  1. Save configuration folders and files in configs/datastorage folder to /var/edge-orchestration/datastorage/
  2. Create the container image
$ ./build.sh container x86_64
  1. Run edge-orchestration
$ docker run -it -d --privileged --network="host" --name edge-orchestration -e EDGEX_SECURITY_SECRET_STORE=false -v /var/edge-orchestration/:/var/edge-orchestration/:rw -v /var/run/docker.sock:/var/run/docker.sock:rw -v /proc/:/process/:ro edge-orchestration:coconut

@t25kim This is really a nice approach.

@sun-sharma PTAL. (including #326) in terms of the test w.r.t. the PR.

@tdrozdovsky PTAL in terms of build methodology from the impact of EdgeX v2.0 upgrade.

@tdrozdovsky PTAL in terms of build methodology from the impact of EdgeX v2.0 upgrade.

When a new build system is accepted, we can easily add any options

Hi @t25kim ,

I have been facing errors while trying to build using
$ ./build.sh container x86_64

Earlier I was getting errors related to ZMQ

# pkg-config --cflags  -- libzmq
Package libzmq was not found in the pkg-config search path.
Perhaps you should add the directory containing `libzmq.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libzmq' found
pkg-config: exit status 1
make: *** [Makefile:67: build-binary] Error 1

I tried doing the necessary installs

wget https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz
tar -xvzf zeromq-4.2.1.tar.gz
cd zeromq-4.2.1/

sudo apt-get install libtool pkg-config build-essential autoconf automake uuid-dev
sudo apt-get install checkinstall

./configure
make
sudo checkinstall
sudo ldconfig

Now, while building I am getting runtime errors

runtime: unexpected return pc for cmd/compile/internal/ssa.rewriteValuegeneric_OpLess32 called from 0x0
stack: frame={sp:0xc000161658, fp:0xc000161688} stack=[0xc00015e000,0xc000166000)

Did you encounter such issues ?

Hi @t25kim ,

I have been facing errors while trying to build using
$ ./build.sh container x86_64

Earlier I was getting errors related to ZMQ

# pkg-config --cflags  -- libzmq
Package libzmq was not found in the pkg-config search path.
Perhaps you should add the directory containing `libzmq.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libzmq' found
pkg-config: exit status 1
make: *** [Makefile:67: build-binary] Error 1

I tried doing the necessary installs

wget https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz
tar -xvzf zeromq-4.2.1.tar.gz
cd zeromq-4.2.1/

sudo apt-get install libtool pkg-config build-essential autoconf automake uuid-dev
sudo apt-get install checkinstall

./configure
make
sudo checkinstall
sudo ldconfig

Now, while building I am getting runtime errors

runtime: unexpected return pc for cmd/compile/internal/ssa.rewriteValuegeneric_OpLess32 called from 0x0
stack: frame={sp:0xc000161658, fp:0xc000161688} stack=[0xc00015e000,0xc000166000)

Did you encounter such issues ?

Please install 0mq with apt-get like below.

$ sudo apt-get install -y libzmq3-dev
Was this page helpful?
0 / 5 - 0 ratings