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

Add Petclinic+MySQL stack, petclinic mysql sample project. Fix dashbo… #2376

Merged
1 commit merged into from
Sep 12, 2016

Conversation

ghost
Copy link

@ghost ghost commented Sep 7, 2016

What does this PR do?

This PR adds a new stack with a sample app - Petclinic + MySQL in 2 containers

What issues does this PR fix or reference?

#2290
#2291

Previous behavior

(Remove this section if not relevant)

New behavior

A new stack is a demo of the new compose syntax.

PR type

  • Minor change = no change to existing features or docs

Signed-off-by: Eugene Ivantsov eivantsov@codenvy.com

@codenvy-ci
Copy link

Build # 337 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/337/ to view the results.

@riuvshin
Copy link
Contributor

riuvshin commented Sep 7, 2016

ci-build

@codenvy-ci
Copy link

@ghost
Copy link
Author

ghost commented Sep 7, 2016

@slemeur @TylerJewell the new stack and template is there. I placed it on #1 position

@slemeur
Copy link
Contributor

slemeur commented Sep 7, 2016

Making it #1 is a good idea - but I'm not sure we should make it the default one. Default should remain the same "Java".
Is this imply to change the position of the stack, then I'd make it #2 after "Java" and before "Blank"

@ghost
Copy link
Author

ghost commented Sep 7, 2016

@slemeur the first one means the default in UD.

@TylerJewell TylerJewell added the kind/enhancement A feature request - must adhere to the feature request template. label Sep 8, 2016
@TylerJewell
Copy link

@eivantsov - do you have a milestone that you really want this in? ie, are you hoping it is M1 or can it wait until M2? Your answer will influence how aggressive I try to get in evaluating this sooner vs. later.

This is exciting to see.

"tags": [
"Java 1.8, Tomcat 8, MySQL 5.7"
],
"components": [

Choose a reason for hiding this comment

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

One of the suggestions that I made to Stevan was that we should probably be more complete on the list of components that we have and their versions. We should list all of the libraries that we are installing into the Ubuntu system - so bash, openssl, etc. Anything that we are explicitly installing with a RUN command should probably be added here.

We also need the mysql reference, and I think the JDK / maven versions are out of date?

Copy link
Author

@ghost ghost Sep 8, 2016

Choose a reason for hiding this comment

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

These are tags, smth that will show up in user dashboard. We use tags to match stacks and samples.

So, if I like versions of everything, we just do not have space in the stack box on UD.

Also, this will break all the filtering.

This is a UD issue. Perhaps, we should use components to display in UD but use tags that can be super unique but not super readable to match samples.

@ashumilova can comment - we talked about it.

Choose a reason for hiding this comment

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

@eivantsov - I think there is a difference between components and tags in this document. The tags are used for filtering and they are a different list of labels. But I believe the components are the list that appears in the UD.

If we have a long list of components, are we concerned about the display height of the stack boxes? @ashumilova - if we have a super long list of components, do we just cut off the list or do we make the box taller? We probably need to think about what to do here.

But I would think that we should go ahead and make the components list complete and then as a secondary measure work on improving the UX display of the stack box?

Copy link
Author

Choose a reason for hiding this comment

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

@TylerJewell Tag appear in UI and they are used to match stacks and filters. Components aren't used at all now in master.

This is a broader question and does not affect this PR only. This is how things work now, you may check with @ashumilova if you have doubts.

@ghost
Copy link
Author

ghost commented Sep 8, 2016

@TylerJewell I do not have any preferences on when this should be released.

}
},
"recipe": {
"content": "services:\n db:\n image: codenvy/mysql\n environment:\n MYSQL_DATABASE: petclinic\n MYSQL_USER: petclinic\n MYSQL_PASSWORD: password\n mem_limit: 2147483648\n dev-machine:\n image: codenvy/ubuntu_jdk8\n mem_limit: 2147483648\n depends_on:\n - db\n links:\n - db",

Choose a reason for hiding this comment

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

Why you used both depends_on and links?

@codenvy-ci
Copy link

@ashumilova
Copy link
Contributor

We can change the name of the dev-machine, how to name it in stacks?
About tags - would be nice to display components and tags to be for binding only. In the list of stacks - components will be displayed, maybe need the same for stack boxes on creation, @slemeur wdyt?

@slemeur
Copy link
Contributor

slemeur commented Sep 8, 2016

@ashumilova : Yes agree. it is planned for the advanced stack form #2316

@codenvy-ci
Copy link

Build # 349 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/349/ to view the results.

@ghost
Copy link
Author

ghost commented Sep 8, 2016

ci-build

@codenvy-ci
Copy link

@TylerJewell
Copy link

I do not have a great alternative for dev-machine. But it always feels like a little bit of a robot to me whenever i see that appear in our product: "i-am-a-dev-machine," said the metalic robot as he violently waves his robotic arms up and down wishing he had opposable thumbs.

@ghost
Copy link
Author

ghost commented Sep 9, 2016

@TylerJewell all your questions are general questions to how things work in stacks and templates for UD. What should I do with this PR? Everything you have mentioned is not going to be fixed in this PR.

"name": "build",
"type": "mvn",
"commandLine": "mvn -f ${current.project.path} clean install -DskipTests",
"attributes": {

Choose a reason for hiding this comment

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

Can you check this macro with M1 - according to what Vlad produced, this macro is now in a different format. Should we update it?

https://eclipse-che.readme.io/docs/commands

@TylerJewell
Copy link

Just need to respond to my comment on components from this evening, and then take a look at the thought on changing the macro to the updated names.

…e mappings

Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>
@ghost ghost force-pushed the multi_machine_sample_and_fixes branch from 1b83d09 to b732aa8 Compare September 12, 2016 11:26
@codenvy-ci
Copy link

Build # 378 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/378/ to view the results.

@ghost
Copy link
Author

ghost commented Sep 12, 2016

ci-build

@codenvy-ci
Copy link

Build # 379 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/379/ to view the results.

@ghost ghost merged commit 506697d into master Sep 12, 2016
@ghost ghost deleted the multi_machine_sample_and_fixes branch September 12, 2016 14:37
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
…_and_fixes

Add Petclinic+MySQL stack, petclinic mysql sample project. Fix dashbo…
skabashnyuk pushed a commit that referenced this pull request Jan 3, 2020
Add Petclinic+MySQL stack, petclinic mysql sample project. Fix dashbo…
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants