-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Enable Docker for demoing purposes #3106
Conversation
@kinduff thanks for the contribution. My first thought has been that I don't want to maintain this Docker Demo feature, mostly because I don't have a lot of experience with Docker and there's no way to know if it's still working for all solidus features (eg. file upload or other things which could depend on the system). On the other end, the same could happen (and happens often) with Heroku. For sure we'll talk about this on the next Core Team meeting. |
+1 for docker. |
@kinduff maybe a GitHub Action? |
Hi @kinduff, thanks a lot for PR. I have a few improvements / questions on this:
Let me know what you think! 🤗 |
Thanks for your input @aitbw, I'm quoting and responding.
I'm all in with docker-compose files, but since this is a demo just to run and see Solidus, I think we should treat it as is, since it's using
Works with Solidus out of the box, since it's just a demo meant to be ran in local and not a development platform.
It's not the case since it's using a
I'm working on adjustments to enable the tests suits on this image related to |
Hey @kinduff, thanks for the answers! Just one question:
Are you sure about this? Because on the last project I worked on, we had to install |
Yes @aitbw, give it a try:
Should output:
I also updated the README to point to the correct image, sorry about that. You should be able to run it too as a demo server. |
In the last Core Team meeting, we had a chat about this and we are ok with this PR if the image is hosted on a Solidus Docker Hub account. There's an existing |
@kennyadsl That's awesome. Let me know how I can help or if I can be added as a collaborator 👍 |
@kennyadsl would be great to get @kinduff on the core team to improve
communication and increase our contributions!
…On Mon, Feb 25, 2019 at 11:16 AM Alejandro AR ***@***.***> wrote:
@kennyadsl <https://github.com/kennyadsl> That's awesome. Let me know how
I can help or if I can be added as a collaborator 👍
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3106 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOZr7rixwwCtF2vWAmCJQu35BAO21k6ks5vRCiZgaJpZM4a_KMz>
.
|
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.
Thanks for this idea @kinduff! 🙏
I'm all for dockerizing the demo, it increases our portability. After discussing this with the rest of the core team, I have two changes I'd like to see:
-
Inidicating that the Dockerfile is ONLY for the demo in a more obvious way, not for developing against or deploying Solidus itself. I am all for the comment you've put in the Dockerfile. Because renaming a Dockerfile is not the best idea, this actually leads to my second ask.
-
Can we move the Dockerfile to the monorepo's
lib
folder? This is wheresandbox.sh
already lives. This might also achieve the first ask if we create another directory (e.g.lib/demo/Dockerfile
). What do you think?
@jacobherrington I ❤️ your suggestions. I was thinking to use a namespace like |
@jacobherrington Just pushed the latest updates by your request. How do you think we could push this demo image to the official Solidus Dockerhub? |
Looks like everything is set up, we're just missing to have the docker image in the official Dockerhub account. |
@kinduff great, thanks. I've opened a support ticket on DockerHub to understand how we could get the In the meantime, maybe you could rebase the PR since I think one single, well-documented commit in enough for this change, thanks! |
fdcf224
to
84d30a6
Compare
This commit adds a Dockerfile and entrypoint in the lib/demo folder, as well as useful documentation in the README file. This demo allows users to test out the latest version of solidus using Docker locally. This setup is very flexible and provides another option besides using Heroku or manually installing everything.
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.
Thanks, @kinduff!
🎉 The correct link https://hub.docker.com/r/solidusio/solidus-demo |
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.
Thanks @kinduff, excited to see this get merged. 👍
Nice work all! If there is interest in a development setup I would be happy to donate that. |
Description
Enables Solidus to be ran using Docker for demoing purposes. This provides an easy way for newcomers to test the storefront out without going through the install process and avoiding a Heroku deployment.
Ref #3103
Checklist:
How to test it out:
As the README states, just run the following command to download the image and run it at http://localhost:3000.
The admin can be found at http://localhost:3000/admin/, credentials are
[email protected]
andtest123
.Notes & Questions:
This PR is not ready to be merged since I pushed the Docker image to my own Dockerhub account.
Wanted to submit and ask before adding more work into this if it would be worth to create some sort of Rake task to generate an image for each of the existing versions or just rely on master.
Also to ask if anyone has insights about how to automate this with Circle CI and have an up to date image everytime there's a change.