Skip to content

Should use stable Certifi version in order to build tool, since the tool is using Python 2.7.x #137

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

Closed
khoiminhvo32 opened this issue Sep 11, 2023 · 1 comment

Comments

@khoiminhvo32
Copy link

Problem when installing and building the tool with Certifi

  • Your code is now installing the newest version of Ceritifi, which is using Python 3.x in 2023, but your code is using Python 2.7.x => This causes a syntax error problem when building up the tool.

Fix

  • Should use a stable version when installing and building the tool
    My fix for this problem in Dockerfile:
FROM python:2.7-alpine

RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/main' >> /etc/apk/repositories
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/community' >> /etc/apk/repositories
RUN apk update && apk add mongodb git

RUN git clone https://github.com/codingo/NoSQLMap.git /root/NoSqlMap

WORKDIR /root/NoSqlMap

RUN python setup.py install

RUN pip2 uninstall certifi -y
RUN pip2 install certifi==2018.10.15

COPY entrypoint.sh /tmp/entrypoint.sh
RUN chmod +x /tmp/entrypoint.sh

ENTRYPOINT ["/tmp/entrypoint.sh"]
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant