Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

build: add dockerfile #25

Merged
merged 3 commits into from Oct 4, 2022
Merged

Conversation

r4topunk
Copy link
Contributor

@r4topunk r4topunk commented Oct 4, 2022

Adds Dockerfile to the project, as well as a description in the README (I think it can be improved, and I'm open to suggestions), and changes the handle_image_conversion method, to receive an Image object as a parameter, which can now also be read from stdin.

@zero-to-mastery-bot
Copy link

🥳 Congratulations 🎉

Congrats on making your first Pull Request in the Zero To Mastery Organization!
You have been sent an invitation to join the ZTM github organization, please check your emails for further details!

ZTM Profile Badge

If you'd like the ZTM Badge to show up on your profile, you will need to follow this guide!

@zero-to-mastery-bot
Copy link

🙏 Thanks for your pull request @gustavokuhl, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
25 40 12
📑 Files Changed: Repo Stars: 🔱 Total Forks:
3 5 23

@beneyal
Copy link
Contributor

beneyal commented Oct 4, 2022

I like both the Docker idea and the stdin reading idea, but you changed the files in the example folder, which the README states should not be changed.

Please make the changes in the community_version.py file. Note that it currently uses argparse for command line argument parsing, so you'll have to make the piping work with that.

Thanks!

add stdin behavior for community_version and removes incorrect changes as requested on PR
@zero-to-mastery-bot
Copy link

🙏 Thanks for your pull request @gustavokuhl, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
25 48 17
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 5 23

@r4topunk
Copy link
Contributor Author

r4topunk commented Oct 4, 2022

Building the image:

docker build -t ascii-art .

Running the container:

docker run -e COLUMNS=$COLUMNS -e LINES=$LINES -i ascii < example/ztm-logo.png

The tags COLUMNS and LINES are need because container default values are too tight.

@zero-to-mastery-bot
Copy link

🙏 Thanks for your pull request @gustavokuhl, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
25 54 17
📑 Files Changed: Repo Stars: 🔱 Total Forks:
3 5 24

@beneyal beneyal merged commit c56fb51 into zero-to-mastery:master Oct 4, 2022
@r4topunk r4topunk deleted the run-with-docker branch October 5, 2022 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants