Skip to content

Latest commit

 

History

History
47 lines (42 loc) · 1.02 KB

local-docker.md

File metadata and controls

47 lines (42 loc) · 1.02 KB

Running locally and with docker

  1. Clone this repository and cd into it

     → git clone https://github.com/ari-hacks/infra-pipeline.git
    
     → cd infra-pipeline
    → pytest
  2. Pipenv dependency management

      #run pipenv 
    → pipenv shell
      #install dependencies  
    → pipenv install
  3. Run application locally

    uvicorn app.main:app --reload  
    
  4. Install & Run in docker

  5. Build Docker Image

    ➜ docker build -t app .
  6. Start Docker container

    ➜ docker run -d --name infra-pipeline-container -p 5000:5000 app
  7. Run the application

     Uvicorn running on http://0.0.0.0:5000/users/health-check 
     #or 
     http://localhost:5000/users/health-check
  8. Check the logs

    ➜ docker container logs -f infra-pipeline-container

    🔙 README