Git Product home page Git Product logo

markdown-transformation-kata's Introduction

Hi ๐Ÿ‘‹, I'm Cristian Suarez Dev

A developer that loves learning

Connect with me:

criskrus995 cristian_suarez_dev cristian suarez youtube

Support:

cristianSuarez



markdown-transformation-kata's People

Contributors

carlosble avatar

Watchers

 avatar

markdown-transformation-kata's Issues

Modify the current dockerfile to work with file paths

Currently the dockerfile only works with the stdin and stdout. I want to modify the Dockerfile to work with paths to files and docker volumes. Something like:

FROM python:3.8-slim

ENV INPUT_FILE_PATH=''
ENV OUTPUT_FILE_PATH=''

RUN pip install pipenv

WORKDIR /opt/markdown-parser

COPY Pipfile .
RUN pipenv install --deploy --ignore-pipfile

COPY . .

VOLUME [ "/opt/markdown-parser/workspace" ]

CMD [ "pipenv", "run", "python", "src/main.py", "url-to-footnote", "-i", f"workspace/{INPUT_FILE_PATH}", "-o", f"workspace/{OUTPUT_FILE_PATH}" ]

To be able to run it on the followin way:

docker build -t python-cli -f .docker/cli/Dockerfile .

docker run --rm -it --name python-cli python-cli --env INPUT_FILE_PATH input_file.md --env OUTPUT_FILE_PATH output_file.md -v $(pwd):/opt/markdown-parser/workspace/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.