Skip to content
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

Added dockerfile and docker-compose configuration for easy setup #77

Merged
merged 1 commit into from
Jul 29, 2023

Conversation

raditya3
Copy link
Contributor

@raditya3 raditya3 commented Jul 28, 2023

Pull Request Title

Added docker support

Description

Added Dockerfile and docker-compose configuration for easy setup

Type

  • Bug Fix
  • Feature Enhancement
  • Documentation Update
  • Code Refactoring
  • Other (please specify):

Proposed Changes

  • Added build.dockerfile and docker-compose.yml
  • Updated README.md to include hints to run application using docker

How to Test

  1. Install docker
  2. run docker-compose up
  3. open localhost:80 in your browser

Checklist

  • The code compiles successfully without any errors or warnings
  • The changes have been tested and verified
  • The documentation has been updated (if applicable)
  • The changes follow the project's coding guidelines and best practices
  • The commit messages are descriptive and follow the project's guidelines
  • This pull request has been linked to the related issue (if applicable)

@kartik-gupta-ij
Copy link

Compiling Without any issue we can merge this @srbhr

Screenshot 2023-07-29 at 7 42 57 PM

Terminal Output :

[+] Running 1/1
 ! resume-matcher Warning                                                                                                              4.3s 
[+] Building 195.1s (14/14) FINISHED                                                                                                                                        
 => [resume-matcher internal] load build definition from build.dockerfile                                                                                              0.0s
 => => transferring dockerfile: 368B                                                                                                                                   0.0s
 => [resume-matcher internal] load .dockerignore                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                                        0.0s
 => [resume-matcher internal] load metadata for docker.io/library/python:3.11.0-slim                                                                                   5.0s
 => [resume-matcher auth] library/python:pull token for registry-1.docker.io                                                                                           0.0s
 => [resume-matcher 1/8] FROM docker.io/library/python:3.11.0-slim@sha256:b5ee5360b357dcd0ab2e1cc5e22fa589b6734bbd55776df6b1700994febf1527                            31.5s
 => => resolve docker.io/library/python:3.11.0-slim@sha256:b5ee5360b357dcd0ab2e1cc5e22fa589b6734bbd55776df6b1700994febf1527                                            0.0s
 => => sha256:23e07e2954939698377b8fe1a859b2d8d0ed4999c7a6da4c983084d50ca4dbe3 1.07MB / 1.07MB                                                                         3.6s
 => => sha256:7a221415bd9bc102fe55706991509a8232d8951333fd2eb5e4546ac7c1293c8c 12.64MB / 12.64MB                                                                       7.7s
 => => sha256:b5ee5360b357dcd0ab2e1cc5e22fa589b6734bbd55776df6b1700994febf1527 1.65kB / 1.65kB                                                                         0.0s
 => => sha256:924c9f87d90abaff0f5cc88c240935ea934323bd24d1ea80bd31caed8bf9cc5e 1.37kB / 1.37kB                                                                         0.0s
 => => sha256:6be1635e79dea843950a77985543461cab28d827d07e058d893b8ec30e6ddf42 7.50kB / 7.50kB                                                                         0.0s
 => => sha256:6064e7e5b6afa4dc711228eddfd250aebac271830dc184c400ce640020bc2cb0 30.06MB / 30.06MB                                                                      29.9s
 => => sha256:bfc052d89fa6dc69a2f95adba9dc5eba6c6dc03fe9fbb0df99e1c540b082cf8c 232B / 232B                                                                             4.4s
 => => sha256:59e7972b564594c664044c01048b262ebaf93b2792f0862a313bf4f25d1fbae9 3.35MB / 3.35MB                                                                        18.9s
 => => extracting sha256:6064e7e5b6afa4dc711228eddfd250aebac271830dc184c400ce640020bc2cb0                                                                              1.0s
 => => extracting sha256:23e07e2954939698377b8fe1a859b2d8d0ed4999c7a6da4c983084d50ca4dbe3                                                                              0.1s
 => => extracting sha256:7a221415bd9bc102fe55706991509a8232d8951333fd2eb5e4546ac7c1293c8c                                                                              0.3s
 => => extracting sha256:bfc052d89fa6dc69a2f95adba9dc5eba6c6dc03fe9fbb0df99e1c540b082cf8c                                                                              0.0s
 => => extracting sha256:59e7972b564594c664044c01048b262ebaf93b2792f0862a313bf4f25d1fbae9                                                                              0.2s
 => [resume-matcher internal] load build context                                                                                                                       5.2s
 => => transferring context: 661.38MB                                                                                                                                  5.1s
 => [resume-matcher 2/8] WORKDIR /data                                                                                                                                 0.1s
 => [resume-matcher 3/8] COPY . .                                                                                                                                      4.1s
 => [resume-matcher 4/8] RUN apt-get update                                                                                                                            6.5s
 => [resume-matcher 5/8] RUN apt-get install -y build-essential python-dev git                                                                                        31.3s
 => [resume-matcher 6/8] RUN pip install -U pip setuptools wheel                                                                                                       3.5s
 => [resume-matcher 7/8] RUN pip install -r requirements.txt                                                                                                          98.9s
 => [resume-matcher 8/8] RUN python run_first.py                                                                                                                       5.6s
 => [resume-matcher] exporting to image                                                                                                                                8.4s
 => => exporting layers                                                                                                                                                8.4s
 => => writing image sha256:6537f0c1b78e285e4fdab608164bf7b708817ddbef0f22a5ed1e0d8ad4b2f3c8                                                                           0.0s
 => => naming to docker.io/library/resume-matcher                                                                                                                      0.0s
[+] Running 2/2
 ✔ Network resume-matcher_default             Created                                                                                                                  0.0s 
 ✔ Container resume-matcher-resume-matcher-1  Created                                                                                                                  0.1s 
Attaching to resume-matcher-resume-matcher-1
resume-matcher-resume-matcher-1  | 
resume-matcher-resume-matcher-1  | Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
resume-matcher-resume-matcher-1  | 
resume-matcher-resume-matcher-1  | 
resume-matcher-resume-matcher-1  | 
resume-matcher-resume-matcher-1  |   You can now view your Streamlit app in your browser.
resume-matcher-resume-matcher-1  | 
resume-matcher-resume-matcher-1  |   Network URL: http://172.18.0.2:8501
resume-matcher-resume-matcher-1  | 
resume-matcher-resume-matcher-1  |   External URL: http://171.76.5.63:8501
resume-matcher-resume-matcher-1  | 
resume-matcher-resume-matcher-1  | 
resume-matcher-resume-matcher-1  | [nltk_data] Downloading package punkt to /root/nltk_data...
resume-matcher-resume-matcher-1  | [nltk_data]   Unzipping tokenizers/punkt.zip.

@srbhr
Copy link
Owner

srbhr commented Jul 29, 2023

Perfect @kartik-gupta-ij and thanks @raditya3 for the PR!!

Thank you both!

@srbhr srbhr merged commit 14fe4fa into srbhr:main Jul 29, 2023
@raditya3 raditya3 deleted the docker-support branch November 5, 2023 19:20
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