-
Notifications
You must be signed in to change notification settings - Fork 66
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
GroupPlacementStrategy update and various other fixes #272
Conversation
29acc16
to
d162648
Compare
We will probably still need to make a private jclouds 1.9.3 build for Clocker to use the new template option properly? |
|
||
@Override | ||
public int copyTo(final Map<String,?> props, final InputStream src, final String destination) { | ||
File tmp = null; |
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.
Why not use super.copyTo()
if SSH available?
Would be useful if the |
A couple of minor comments, but other than that, LGTM |
Good call on documenting patches project content... |
Will fix typos and merge... |
63f1e38
to
36878e3
Compare
Waiting on review comments from @aledsage before merge. Also squashed and rebased. |
36878e3
to
0db3c00
Compare
6967dae
to
ccce467
Compare
Map<String, String> runtimeTemplates = entity.getConfig(VanillaSoftwareProcess.RUNTIME_TEMPLATES); | ||
if ((runtimeFiles != null && runtimeFiles.size() > 0) || | ||
(runtimeTemplates != null && runtimeTemplates.size() > 0)) { | ||
super.copyRuntimeResources(); |
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.
Should we change Brooklyn's AbstractSoftwareProcessDriver
, so that it only does the createDirectory(getRunDir(), "create run directory")
if there are runtime resources to copy? (I presume nothing downstream in normal Brooklyn entities relies on runDir existing because of copyRuntimeResources
, but we'd need to check that).
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.
Yes, we should, but I didn't want to have to wait to get the change into Brooklyn.
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.
+1; can you raise a PR in Brooklyn for that at some point soon'ish please.
Thanks @grkvlt - looks good. I've gone through the code (some in detail, other bits just skimming). I've included some comments but nothing major. Over to you to see what you think of the comments and then to merge. |
- Remove Softlayer VLAN code from DockerHost - Set hostname on SoftLayer properly - Fix issue with /dev/urandom - Setup calico endpoints with IP - Update enrichers and port sensors for entities
afddceb
to
8c8ea85
Compare
- avoids having to set the `containerName` on the target which means you can deploy multiple instances of linked container groups - allows a container to be linked to multiple containers This is currently a breaking change for anyone using the old list of entities links config. So the following old yaml (showing only the links related config here): ``` services: - type: docker:mariadb:5.5 id: db containerName: mysql - type: docker:wordpress:4.5 links: - $brooklyn:component("db") ``` Is replaced with the following, note the containerName in the db container (which was being used as the alias), has been replaced with an explicitly defined alias in the links map. ``` services: - type: docker:mariadb:5.5 id: db - type: docker:wordpress:4.5 links: mysql: $brooklyn:component("db") ```
- using docker outside of clocker to link containers results in the linked host being added using the local subnet address rather than the docker hosts address, this change aims to reproduce that behaviour For example, linking a db with the alias `mysql` results in the following `/etc/hosts`: currently (where 169.45.xxx.xxx is the dockerhost address): ``` 169.45.xxx.xxx mysql 172.17.0.30 db_rjsof0ci 172.17.0.30 db_rjsof0ci.bridge ``` Linked containers usually expect the alias to be using the private addresses, ie so they'd have access to the unmapped service ports.
f4fe246
to
f63672a
Compare
f63672a
to
24679f6
Compare
Tested on various clouds successfully by @aledsage @johnmccabe and @grkvlt |
GroupPlacementStrategy
usingMonitor
mutexesVanillaDockerApplication
docker exec
support foruseSsh: false
docker cp
instead ofscp
foruseSsh: false
volumesFrom
container config