Skip to content

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

Closed
@khoiminhvo32

Description

@khoiminhvo32

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"]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions