From c5e2d8ca9d2fa1f4611367edb80890d42dbab29f Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 05:50:09 +0000 Subject: [PATCH 01/14] Fully automate dev setup with Gitpod This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitHub and GitLab that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. --- .gitpod.Dockerfile | 7 +++++++ .gitpod.yml | 2 ++ README.md | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000..f8e49f2 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,7 @@ +FROM gitpod/workspace-full + +# Install custom tools, runtimes, etc. +# For example "bastet", a command-line tetris clone: +# RUN brew install bastet +# +# More information: https://www.gitpod.io/docs/config-docker/ diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..266fe29 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,2 @@ +tasks: + - init: pip install -U pip && pip install -e . diff --git a/README.md b/README.md index 7871e6a..44fa95f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/0dust/ResumeFilter) + # Resume-Filter Extracting relevant information from resume using Deep Learning. From c87d04ec9dfc16a4e4707a2e5d70b8bbf0848318 Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 06:28:50 +0000 Subject: [PATCH 02/14] add anaconda --- .gitpod.Dockerfile | 17 ++++++++++++----- .gitpod.yml | 4 +++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index f8e49f2..9813ed0 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -1,7 +1,14 @@ FROM gitpod/workspace-full -# Install custom tools, runtimes, etc. -# For example "bastet", a command-line tetris clone: -# RUN brew install bastet -# -# More information: https://www.gitpod.io/docs/config-docker/ +USER gitpod + +RUN echo 'unset PIP_USER' >> ~/.bashrc + +USER root + +RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh && bash Anaconda3-2019.03-Linux-x86_64.sh -b -p ~/anaconda && \ +rm Anaconda3-2019.03-Linux-x86_64.sh && \ +echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bash_profile && \ +conda update conda && \ +conda create --name resumefilter python=3.7.6 && \ +conda activate resumefilter \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index 266fe29..5afffd9 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,2 +1,4 @@ +image: + file: .gitpod.Dockerfile tasks: - - init: pip install -U pip && pip install -e . + - init: pip install -U pip && pip install -e . \ No newline at end of file From e81501238f5d1bac66fd258a6e820f75aeee22a8 Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 06:53:45 +0000 Subject: [PATCH 03/14] add anaconda to bashrc --- .gitpod.Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 9813ed0..8ded379 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -6,9 +6,10 @@ RUN echo 'unset PIP_USER' >> ~/.bashrc USER root -RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh && bash Anaconda3-2019.03-Linux-x86_64.sh -b -p ~/anaconda && \ -rm Anaconda3-2019.03-Linux-x86_64.sh && \ -echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bash_profile && \ +RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p ~/anaconda && \ +rm Anaconda3-2020.02-Linux-x86_64.sh && \ +echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc && \ +source ~/.bashrc && \ conda update conda && \ conda create --name resumefilter python=3.7.6 && \ conda activate resumefilter \ No newline at end of file From a7d2496344d76ca6c9163676713d45d368a1eab2 Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 06:58:13 +0000 Subject: [PATCH 04/14] update to run source --- .gitpod.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 8ded379..5faec09 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -9,7 +9,7 @@ USER root RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p ~/anaconda && \ rm Anaconda3-2020.02-Linux-x86_64.sh && \ echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc && \ -source ~/.bashrc && \ +/bin/bash -c "source ~/.bashrc" && \ conda update conda && \ conda create --name resumefilter python=3.7.6 && \ conda activate resumefilter \ No newline at end of file From 748d13074f6f6fa1f2c4e77e19f3b69a3ca36d93 Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 13:45:59 +0000 Subject: [PATCH 05/14] update path --- .gitpod.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 5faec09..8ae3585 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -6,7 +6,7 @@ RUN echo 'unset PIP_USER' >> ~/.bashrc USER root -RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p ~/anaconda && \ +RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p ~/anaconda3 && \ rm Anaconda3-2020.02-Linux-x86_64.sh && \ echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc && \ /bin/bash -c "source ~/.bashrc" && \ From 2294dc8fba9ba31fa82887fa5fbd0dd369246bd1 Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 13:47:49 +0000 Subject: [PATCH 06/14] reomve prefix --- .gitpod.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 8ae3585..96eedca 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -6,7 +6,7 @@ RUN echo 'unset PIP_USER' >> ~/.bashrc USER root -RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p ~/anaconda3 && \ +RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b && \ rm Anaconda3-2020.02-Linux-x86_64.sh && \ echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc && \ /bin/bash -c "source ~/.bashrc" && \ From e967226fffe4dfd2486727e0a4c51df9417a43ca Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 13:52:55 +0000 Subject: [PATCH 07/14] use ENV path --- .gitpod.Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 96eedca..9ef995b 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -6,10 +6,11 @@ RUN echo 'unset PIP_USER' >> ~/.bashrc USER root -RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b && \ -rm Anaconda3-2020.02-Linux-x86_64.sh && \ -echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc && \ -/bin/bash -c "source ~/.bashrc" && \ -conda update conda && \ +RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -fbp ~/anaconda3 && \ +rm Anaconda3-2020.02-Linux-x86_64.sh + +ENV PATH=/root/anaconda3/bin:$PATH + +RUN conda update conda && \ conda create --name resumefilter python=3.7.6 && \ conda activate resumefilter \ No newline at end of file From 2ff4fa927aea06c72b186abe10974fc417da552c Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 14:02:16 +0000 Subject: [PATCH 08/14] update to use new path --- .gitpod.Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 9ef995b..6a9dcc3 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -6,10 +6,12 @@ RUN echo 'unset PIP_USER' >> ~/.bashrc USER root -RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -fbp ~/anaconda3 && \ -rm Anaconda3-2020.02-Linux-x86_64.sh - -ENV PATH=/root/anaconda3/bin:$PATH +RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p /opt/conda && \ +rm Anaconda3-2020.02-Linux-x86_64.sh && \ +ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ +echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ +echo "conda activate base" >> ~/.bashrc && \ +cat ~/.bashrc``` RUN conda update conda && \ conda create --name resumefilter python=3.7.6 && \ From 24188a10ccc8aada96df3735eb522e1163aa2a9a Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 14:04:02 +0000 Subject: [PATCH 09/14] remove backticks --- .gitpod.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 6a9dcc3..d3ff86d 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -11,7 +11,7 @@ rm Anaconda3-2020.02-Linux-x86_64.sh && \ ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ echo "conda activate base" >> ~/.bashrc && \ -cat ~/.bashrc``` +cat ~/.bashrc RUN conda update conda && \ conda create --name resumefilter python=3.7.6 && \ From 5e1375a15ac4c107b523447d8c4e347949d6b484 Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 14:11:26 +0000 Subject: [PATCH 10/14] add sudo --- .gitpod.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index d3ff86d..8a97bae 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -11,7 +11,8 @@ rm Anaconda3-2020.02-Linux-x86_64.sh && \ ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ echo "conda activate base" >> ~/.bashrc && \ -cat ~/.bashrc +sudo -s source ~/.bashrc && \ +cat ~/.bashrc RUN conda update conda && \ conda create --name resumefilter python=3.7.6 && \ From 8e58c3b9f0b6af216c84e29103bbb9a5537fb9b2 Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 14:15:37 +0000 Subject: [PATCH 11/14] adding sudo --- .gitpod.Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 8a97bae..fce6be6 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -11,6 +11,7 @@ rm Anaconda3-2020.02-Linux-x86_64.sh && \ ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ echo "conda activate base" >> ~/.bashrc && \ +echo "Set disable_coredump false" >> /etc/sudo.conf && \ sudo -s source ~/.bashrc && \ cat ~/.bashrc From 850d18c29d512cece0972f59252e49fb450f75db Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 14:27:25 +0000 Subject: [PATCH 12/14] still adding path --- .gitpod.Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index fce6be6..8555550 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -12,9 +12,8 @@ ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ echo "conda activate base" >> ~/.bashrc && \ echo "Set disable_coredump false" >> /etc/sudo.conf && \ -sudo -s source ~/.bashrc && \ -cat ~/.bashrc +sudo -s source ~/.bashrc -RUN conda update conda && \ +RUN . /opt/conda/etc/profile.d/conda.sh && \ conda create --name resumefilter python=3.7.6 && \ conda activate resumefilter \ No newline at end of file From 09ba431cd4eb53062cb680a576e57cefccb7f4f8 Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 14:49:53 +0000 Subject: [PATCH 13/14] install tkinter --- .gitpod.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 8555550..655f55a 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -6,7 +6,7 @@ RUN echo 'unset PIP_USER' >> ~/.bashrc USER root -RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p /opt/conda && \ +RUN apt-get install python3-tk && curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p /opt/conda && \ rm Anaconda3-2020.02-Linux-x86_64.sh && \ ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ From b02935fda3e14d1944aacbfae11368ed219db31b Mon Sep 17 00:00:00 2001 From: himanshu tripathi Date: Sun, 19 Jul 2020 14:51:21 +0000 Subject: [PATCH 14/14] install tkinter with flag --- .gitpod.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 655f55a..27c3f52 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -6,7 +6,7 @@ RUN echo 'unset PIP_USER' >> ~/.bashrc USER root -RUN apt-get install python3-tk && curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p /opt/conda && \ +RUN apt-get install -y python3-tk && curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh && bash Anaconda3-2020.02-Linux-x86_64.sh -b -p /opt/conda && \ rm Anaconda3-2020.02-Linux-x86_64.sh && \ ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \