-
Notifications
You must be signed in to change notification settings - Fork 187
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
Adds Docker files as a milestone for issue-4 #65
Conversation
@Reza-Rajabi is your problem related to issue #48? |
@manekenpix Yes it is. Thank you for catching that. I didn't include Redis. |
I tried a docker-compose file that pulls an existing redis image and it works. Feel free to add it to your PR: version: '3'
services:
telescope:
build: .
depends_on:
- redis
ports:
- "3000:3000"
network_mode: host
redis:
image: redis:latest
ports:
- "6379:6379"
|
@manekenpix That's true. Thank you Josue, always helpful. I will add that compose file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks great, maybe you could include some minimal info in README.md about deployment, and mentioned @jerryshueh's comment on slack about docker and Windows.
@Reza-Rajabi if this PR fixes #4, could you, please, update the title and the description accordingly?
|
@birtony Thank you for catching this. Your point is totally true. The reason I didn't follow this style is that we are not done with this issue, and the commit is actually one milestone of maybe 4 milestones or more. I appreciate your attention. Please keep watching to keep the project clean together. |
@manekenpix Do I need to change something in here? I will add the document once it gets merged though. |
I think it'd be better to add the changes to the document here, that way we can have all the initial commits related to docker in this PR and it'll be easier to review the history of the repo in the future. What do you think? Other than that, ready to get merged 👍 |
true. I will make a commit to address the doc change. |
@manekenpix I somewhat rebased. So only see the last commit for all changes related to Docker including the CONTRIBUTING.md |
This comment has been minimized.
This comment has been minimized.
@Reza-Rajabi it looks to me like you can just reset your
We should make sure people don't merge with |
@humphd @manekenpix My apologies! I tried to clean that mess and now the pull request got closed. So do I need to reopen this pull request or I need to make a new pull request? |
@Reza-Rajabi you can just reopen it. No worries 👍 |
@manekenpix I will add the doc changes after these gets merged. I don't want to risk on rebase again. |
COPY . . | ||
|
||
ENV NODE_ENV production | ||
ENV PORT 3000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should both work with our .env
, and override via environment variables, but we should confirm, since we expect to be able to set them via .env
@Reza-Rajabi it looks like this PR was made against the wrong branch, so I've merged it, but not into |
Opened #113 so we can fix this. Please comment there. |
What is this pull request:
This will add Dockerfile and .dockerignore to the project. So that we can run the project without installing node packages like so:
and more importantly, we can ship the Docker image to Kubernetes later on.