kerberos-io / agent

An open and scalable video surveillance system for anyone making this world a better and more peaceful place.
https://kerberos.io
MIT License
645 stars 79 forks source link

Error when buid docker image [debian repo + eslint error] #28

Closed andp97 closed 1 year ago

andp97 commented 2 years ago

Step to reproduce:

Clone the repo at current master branch

docker build -t kerberos/opensource .
  1. Error on Dockerfile maybe caused by older version of debian present on FROM command:
    
    Reading package lists...
    E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
    E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
    E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
    The command '/bin/sh -c apt-get update && apt-get install -y curl && curl -sL https://deb.nodesource.com/setup_14.x | bash - &&     curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&     echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&     apt update && apt install yarn -y' returned a non-zero code: 100

2. After fixing `Docker` file i see this eslint error:

src/containers/RequireInstall.jsx Line 10:14: Replace ⏎········isAuthenticated,⏎········isInstalled,⏎········redirectDashboard,⏎········redirectLogin, with ·isAuthenticated,·isInstalled,·redirectDashboard,·redirectLogin·}·= prettier/prettier Line 15:7: Replace }·= with · prettier/prettier

cedricve commented 1 year ago

hello @andp97, we are some months later, and just released the first release of the new agent. Feel free to try it out.