Skip to content

Dockerize #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Dockerize #40

wants to merge 17 commits into from

Conversation

guykisel
Copy link
Owner

@guykisel guykisel commented Feb 10, 2017

Todo:

  • add docs

if matches:
os.environ[matches.group(1)]=matches.group(2)
SAFE_ENV[matches.group(1)]=matches.group(2)
subprocess.check_call('ssh-add {}'.format(SSH_FILE_PATH), shell=True)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bandit: subprocess call with shell=True identified, security issue.

if TRUSTED:
ssh_keygen()

SSH_KEY_HASH = hashlib.md5()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bandit: Use of insecure MD2, MD4, or MD5 hash function.

ENV PATH /root/.pyenv/bin:$PATH
RUN eval "$(pyenv init -)"
RUN eval "$(pyenv virtualenv-init -)"
RUN pyenv update
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want the pyenv steps lower down in the dockerfile than the known hosts steps, since they're more likely to change. E.g. when you want to switch to a new python version.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably. the pyenv stuff isn't even working yet anyway, it still seems to be using the system python.

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.

3 participants