Skip to content

Non-root users for all templates#21

Closed
burtonr wants to merge 1 commit into
openfaas:masterfrom
burtonr:non-root
Closed

Non-root users for all templates#21
burtonr wants to merge 1 commit into
openfaas:masterfrom
burtonr:non-root

Conversation

@burtonr

@burtonr burtonr commented Jun 6, 2019

Copy link
Copy Markdown
Contributor

Update all python-flask templates to use a non-root user

Signed-off-by: Burton Rheutan rheutan7@gmail.com

Tested by exec-ing into the containers and verifying the user and directory. Then, executing a curl command to ensure the function was still functioning (unable to test/verify the arm template as I do not at the moment have access to and arm device)

$ docker run -it python27-flask:test /bin/sh
~ $ ls
function          index.py          requirements.txt
~ $ pwd
/home/app
~ $ whoami
app

$ docker run -it python3-flask:test /bin/sh
~ $ ls
function          index.py          requirements.txt
~ $ pwd
/home/app
~ $ whoami
app

Update all python-flask templates to use a non-root user

Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
@burtonr burtonr closed this Jun 7, 2019
@burtonr burtonr deleted the non-root branch June 7, 2019 20:57
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.

1 participant