Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerizing environment #2

Open
entrpn opened this issue Feb 14, 2021 · 11 comments
Open

Dockerizing environment #2

entrpn opened this issue Feb 14, 2021 · 11 comments

Comments

@entrpn
Copy link

entrpn commented Feb 14, 2021

Hello GonVas,

Nice project. I wrote a Dockerized environment if you are interested in merging it or creating a branch out of it.

I have attached the patch file.

patchfile.zip

@GonVas
Copy link
Owner

GonVas commented Feb 14, 2021

Thanks I will look into it

@granthoff1107
Copy link

@entrpn I was just going to open an issue for this :). How do I run the patch file?

@GrantHoffman
Copy link

I've create a PR from etrpn's branch to yours here:
#6

@entrpn
Copy link
Author

entrpn commented Feb 16, 2021

Thanks @GrantHoffman, I realized that in get_stream_posts I added my username and password for the throwaway account that I'm using to run this program. I since changed my password lol.

Also FYI - I'm modifying my fork to focus on penny stocks so the patch would be better than pull request from my fork.

@entrpn
Copy link
Author

entrpn commented Feb 16, 2021

@granthoff1107 you should clone this repo. download the zip file, unzip it and then run

git apply patchfile

I should have named the file better but that should work. The readme has steps to run it but basically:

docker-compose --env-file ../.env up --build

Your .env file should have the following:

REDDIT_CLIENT_ID=<your-reddit-client-id>
REDDIT_SECRET=<your-reddit-secret>
REDDIT_USERNAME=<your-reddit-username>
REDDIT_PASSWORD=<your-reddit-password>

hope that helps.

@granthoff1107
Copy link

granthoff1107 commented Feb 17, 2021 via email

@alexferrari88
Copy link

@entrpn I have tried to apply the patch as per your instructions, but I got:

patchfile:11: trailing whitespace.
- First, install Docker.
patchfile:46: trailing whitespace.

patchfile:63: trailing whitespace.

patchfile:76: trailing whitespace.

patchfile:158: trailing whitespace.
                         username = username,
error: patch failed: process.py:21
error: process.py: patch does not apply

@entrpn
Copy link
Author

entrpn commented Mar 1, 2021

@alexferrari88
Copy link

alexferrari88 commented Mar 1, 2021 via email

@entrpn
Copy link
Author

entrpn commented Mar 2, 2021

@alexferrari88

trygit apply --reject --whitespace=fix ~/Downloads/patchfile

You'll get some stuff that doesn't get merged. You'll need to manually merge those changes.

@teacoat
Copy link

teacoat commented Mar 22, 2021

I agree with this ticket, should be a bit easier to get running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants