Skip to content

Commit

Permalink
Merge pull request #188 from aravindvnair99/docker
Browse files Browse the repository at this point in the history
v4.0.0
  • Loading branch information
anmol098 committed Apr 14, 2021
2 parents 8cdb56e + c59d497 commit b7075e2
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 1,628 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:python3.8-nodejs12
FROM nikolaik/python-nodejs:python3.8-nodejs15

ADD requirements.txt /requirements.txt
ADD main.py /main.py
Expand All @@ -9,8 +9,9 @@ ADD translation.json /translation.json

ENV PATH "$PATH:/home/root/.npm-global/bin"

RUN python -m pip install --upgrade pip wheel setuptools
RUN pip install -r requirements.txt
RUN npm -g config set user root
RUN npm i -g vega vega-lite vega-cli canvas
RUN npm i -g agentkeepalive npm@latest vega vega-lite vega-cli canvas

ENTRYPOINT ["python", "/main.py"]
13 changes: 0 additions & 13 deletions Pipfile

This file was deleted.

85 changes: 0 additions & 85 deletions Pipfile.lock

This file was deleted.

Empty file removed geckodriver.log
Empty file.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ def generate_commit_list(tz):
if weekday == "Sunday":
Sunday += 1
except Exception as ex:
print("Please Ignore this exception " + str(ex))
if str(ex) != "'NoneType' object is not subscriptable":
print("Exception occurred " + str(ex))

sumAll = morning + daytime + evening + night
sum_week = Sunday + Monday + Tuesday + Friday + Saturday + Wednesday + Thursday
Expand Down Expand Up @@ -418,7 +419,7 @@ def get_short_info(github):
else:
string += "> 🚫 " + translate["Not Opted to Hire"] + "\n > \n"

string += '> 📜 '
string += '> 📜 '
string += translate['public repositories'] % public_repo + " " + '\n > \n' if public_repo != 1 else translate['public repository'] % public_repo + " " + '\n > \n'
string += '> 🔑 '
string += translate['private repositories'] % private_repo + " " +' \n > \n' if private_repo != 1 else translate['private repository'] % private_repo + " " + '\n > \n'
Expand Down Expand Up @@ -464,7 +465,7 @@ def get_stats(github):

# def star_me():
# requests.put("https://api.github.com/user/starred/anmol098/waka-readme-stats", headers=headers)


def decode_readme(data: str):
'''Decode the contents of old readme'''
Expand Down
Loading

0 comments on commit b7075e2

Please sign in to comment.