Bairdo / gasket

Gasket is a system that provides authentication and authorisation to the https://github.com/faucetsdn/faucet network controller.
3 stars 3 forks source link

docker start script #61

Open Bairdo opened 6 years ago

Bairdo commented 6 years ago

docker/runauth.sh This seems kind of messy.

Perhaps have gasket catch the signals. and another flag for the base config stuff (starting fresh or not).

In fact whether we start fresh or not should be decided by the user. so add an option for that (passing env variables in docker??)

how would docker restart mode work then - if wanted to keep the current rules after a crash?

Bairdo commented 6 years ago

re restart mode: change dockerfile.auth to use ENTRYPOINT then in docker run ... \<put argument here> or in docker-compose 'command' see https://stackoverflow.com/a/41968585 and https://stackoverflow.com/a/40312311

A) if base-acls.yaml use that (this is the latest) if not use base-acls.yaml-orig (the original nothing authed).

B) always use base-acls.yaml-orig

C) always use base-acls.yaml