nadermx / backgroundremover

Background Remover lets you Remove Background from images and video using AI with a simple command line interface that is free and open source.
https://www.backgroundremoverai.com
MIT License
6.69k stars 556 forks source link

containerize backgroundremover #90

Closed ravnoor closed 1 year ago

ravnoor commented 1 year ago

I added a minimal Dockerfile, including a Github Actions CI/CD workflow to automatically build images.

Working version of the image: docker pull ravnoor/backgroundremover:docker-latest

nadermx commented 1 year ago

I still haven't spent much time if any reading up on docker. Would you mind also adding something into the read me with this pull request? And then I will merge

ravnoor commented 1 year ago

Installation using Docker

git clone https://github.com/nadermx/backgroundremover.git
cd backgroundremover
docker build -t bgremover .
alias backgroundremover='docker run -it --rm -v "$(pwd):/tmp" bgremover:latest'

This is the excerpt that I already added to the README. Of course, this requires basic knowledge of Docker. Is there something specific you'd like me to add?

nadermx commented 1 year ago

Thats fine. Thank you. Will mege in a bit

El lun, 31 de jul de 2023 12:24, Ravnoor Singh Gill < @.***> escribió:

Installation using Docker

git clone https://github.com/nadermx/backgroundremover.gitcd backgroundremover docker build -t bgremover .alias backgroundremover='docker run -it --rm -v "$(pwd):/tmp" bgremover:latest'


This is the excerpt that I already added to the README. Of course, this requires basic knowledge of Docker. Is there something specific you'd like me to add?

— Reply to this email directly, view it on GitHub https://github.com/nadermx/backgroundremover/pull/90#issuecomment-1658925006, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYACXCIKHEQIDXM6GSWWMDXS7Z4LANCNFSM6AAAAAA26RCNIM . You are receiving this because you commented.Message ID: @.***>

nadermx commented 1 year ago

Github is saying the jobs have failed because it needs a user an login?

ravnoor commented 1 year ago

You repository didn't have access to my secrets - I have fixed it for now. You should be able to re-run the action (Actions > containerize backgroundremover > Re-run all jobs) without committing any new code.

Ideally, you would want to setup a Docker Hub account, and use your username (variable: DOCKER_USERNAME) and token as a password (DOCKER_PASSWORD) under Settings > Secrets and variables > Actions. Finally, update the username/repository on L32.

Let me know if you need more help setting this up.