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

Wordpress example for DCOS 1.11 #353

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Wordpress example for DCOS 1.11 #353

wants to merge 2 commits into from

Conversation

thakkaryash94
Copy link
Contributor

added wordpress example

Issue #337

Copy link
Contributor

@pleia2 pleia2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the improvements to this example! I just ran through it and had a bit of an issue with how the instructions specify modifying the MySQL container type, can you have a look?


- We need to customize our mysql service for further development. I will explain it later.
- Go to `mysql` service from services menu, click on `Edit` button.
- Chnage `Container Runtime` from `Docker Engine` to `Universal Container Runtime(UCR)`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo on "Change"


- We need to customize our mysql service for further development. I will explain it later.
- Go to `mysql` service from services menu, click on `Edit` button.
- Chnage `Container Runtime` from `Docker Engine` to `Universal Container Runtime(UCR)`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing under 1.11.2, the "Edit" menu off of the services menu just brings you back to the original configuration screens for the service. Where are you finding the screen to change which container runtime is being used?

Also, a little thing: typo for the word "Change"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, I am talking about editing mysql service after it is up and running. It is the only way currently possible to change container runtime. There is no way to set container runtime when we deploy our service from GUI and CLI. Does that answer your question?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain exactly how you get to this screen? When I click "Edit" I get the original setup menu, not one that lets me edit the containerizer.

Copy link
Contributor Author

@thakkaryash94 thakkaryash94 May 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deployed mysql service and select it from services. then clicked on Edit button from right top corner, it is same screen as we can edit any other services, on left side, there are options like Service, Placement, Networking etc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully we can get to the bottom of this, I took a screencast of what I'm seeing on the open source version of DC/OS 11.2, which seems different from yours: https://www.youtube.com/watch?v=YNq8A63zgAs

"name": "wordpress",
"username": "wp_admin",
"password": "password",
"root_password": "wordpress"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that this does differ slightly from the screenshot above, where the root password was unchanged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, my mistake. I was doing some experiment and forgot to change back.


- Now, as we can see, everything is setup but there is no js, css support on our wordpress website because according to database, they are on different path. So we have to change our database url to load wordpress theme files like js, css, images.

- In order to change values in database, we have to go into mysql service container and change the values. DC/OS currently only support UCR(Uninversal Container Runtime), if we want to go inside the deployed container. It is the reason first we customized our mysql service right after we deployed it. Currently, there is no way that we can set our deployment service runtime to UCR. So we have to set it after we deployed it. Read more about this [here](https://docs.mesosphere.com/1.11/deploying-services/containerizers/).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling typo on "Universal"

@pleia2
Copy link
Contributor

pleia2 commented Jun 11, 2018

So, I figured out what's going on here. As of 1.11, the Marathon definition is no longer directly accessible via the DC/OS UI anymore like it was in 1.10, which is why I'm only seeing the configuration for the package itself and can't edit the containerizer. The workarounds are either to use the CLI to make changes to the Marathon definition, or to use the Marathon UI instead (accessible via /marathon/ in the DC/OS UI).

@thakkaryash94
Copy link
Contributor Author

thakkaryash94 commented Jun 17, 2018

Hey, sorry I was a little busy. Using CLI, it is still not working. I changed the container type to MESOS but still, it is showing me This command is only supported for tasks launched by the Universal Container Runtime (UCR). error. One more thing, after deploying mysql service using CLI, when I select edit service, it is showing me below the blank screen.

screen shot 2018-06-17 at 10 40 47 pm

@pleia2
Copy link
Contributor

pleia2 commented Jul 13, 2018

I believe this blank screen issue was one that was addressed in a recent UI update.

And the CLI method should work unless something else changed. I'm wondering if editing through the marathon web UI would yield better results? Thanks again for all your work on this, I'll see about chatting with the team responsible for this package if we can't find a good solution.

@mattj-io
Copy link

I've also seen that behaviour when deploying the percona-mongo package via the CLI, although only when I did dcos package describe --config > options.json and then passing the options.json to package install.

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

Successfully merging this pull request may close these issues.

3 participants