Coder Social home page Coder Social logo

gagankrmahto / ascii2pdf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sachinyadav3496/text-to-pdf

0.0 0.0 0.0 11 KB

A Docker App which will convert text files stored into /input directory and stores output pdf files in /output directory

Shell 3.33% Python 66.86% Dockerfile 29.81%

ascii2pdf's Introduction

Text to PDF converter Application

Build Application Image From Dockerfile using Following Command

podman image build -t myapp .

List Created Image using Following Command

podman image ls

Run a Container in Background using image we just created

mkdir -p /data/input

mkdir -p /data/output

podman container run -d --name myapp -v /data/input:/data/input:Z -v /data/output:/data/output:Z myapp

Verify Container is Running

podman ps

Create Systemd Daemon of given Container

mkdir -p ~/.config/systemd/user

cd ~/.config/systemd/user

podman generate systemd --name myapp --new --files

systemctl --user enable container-myapp.service

systemctl --user start container-myappp.service

Reboot System and check your container will be in running state

podman ps

Check application is working or not by following command

echo "something into textfile to be converted into pdf file" > /data/input/hello.txt

now check converted pdf file in output directory using following command

ls -lh /data/output

you can see podman application is converting input text file into pdf file! that's great

Happy Learning! :-)

ascii2pdf's People

Contributors

sachinyadav3496 avatar itsmevikashkumarsingh avatar

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.