Sign inSign up

simplusinnov/leza-proxy

By simplusinnov

•Updated over 2 years ago

Image
0

2.6K

simplusinnov/leza-proxy repository overview

⁠DAC PROXY

DAC proxy is responsible to provide the authentication and athorization to data resources.

⁠Usage

⁠Developers
⁠Prerequites

Before installing, the following prerequisites need to met:

  • Docker⁠ needs to be installed on the host server.
  • default bridge network bridge network⁠ needs to be created using docker on the host server to link dashboar API.
  • git⁠ needs to be installed on the host server.
  • ssh⁠ key from Simplus development team to allow for cloning onto the host server.
  • npm token⁠ from Simplus development team to allow for installing private npm packages.
⁠Installation
  1. clone solution To install the solution, first clone the repo to the host server

    git clone [email protected]:simplusinnovation/dac-proxy.git
    

    In some cases, you may need to activate your ssh-agent to link your local private key to the command in the following manner:

    eval $(ssh-agent -s) && $(ssh-add /path/to/your/.ssh/id_rsa; git pull [email protected]:simplusinnovation/dac-proxy.git)
    
  2. build docker container (skip this part as its build automatically using dockerhub and watchtower) move to cloned folder.

    cd dac-proxy
    

    build docker container by passing the npm token as a build parameter.

    sudo docker build -t api:dac-proxy --build-arg NPM_SECRET=<npm token> .
    
  3. run the container run the container using the --net flag, linking the container to the bridge network on server.

    sudo docker run --net 'bridge' -p 3008:80 -d --name dac-proxy --restart always api:dac-proxy
    
  4. test server open http://localhost:3008/api/v1/ping⁠ in your browser.

⁠Technical users

⁠Issues

Any issues found on usage of this solution (more especially failed tests found on test status of solution), post your issues onto the corresponding proxy API page:

Tag summary

Content type

Image

Digest

sha256:c2f685974…

Size

150.8 MB

Last updated

over 2 years ago

docker pull simplusinnov/leza-proxy