Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2019-09-12 07:50:07 GMT <alfresco-discord> <bhagyas> @Thijs Thanks

2019-09-12 07:50:53 GMT <alfresco-discord> <bhagyas> @Thijs btw, I'm trying to use the amps generated on another project, the configuration seems to be not available to other gradle modules to import

2019-09-12 07:50:53 GMT <alfresco-discord> <bhagyas> :/

2019-09-12 07:52:34 GMT <alfresco-discord> <Thijs> @bhagyas Not sure what you mean with that.

2019-09-12 07:53:06 GMT <alfresco-discord> <bhagyas> I'm trying to use the AMP generated to have it copied elsewhere

2019-09-12 07:53:15 GMT <alfresco-discord> <bhagyas> by using this -> alfrescoAmp project(path:':sharebox-repo-core', configuration: 'amps')

2019-09-12 07:53:31 GMT <alfresco-discord> <bhagyas> but nothing seems to be visible

2019-09-12 07:53:40 GMT <alfresco-discord> <bhagyas> I wonder if it is because of the use of Maven publish plugin

2019-09-12 07:53:46 GMT <alfresco-discord> <bhagyas> there were some warnings around it

2019-09-12 07:54:03 GMT <alfresco-discord> <bhagyas> but I can see similar in the xenit docker plugin integration tests (that might work)

2019-09-12 07:54:21 GMT <alfresco-discord> <Thijs> should not be related to maven publish plugin

2019-09-12 07:54:43 GMT <alfresco-discord> <Thijs> we use those multi-project setups a lot

2019-09-12 07:54:59 GMT <alfresco-discord> <Thijs> but what do you mean with copy?

2019-09-12 07:55:17 GMT <alfresco-discord> <Thijs> it should be applied to a war

2019-09-12 07:55:22 GMT <alfresco-discord> <bhagyas> I created a separate workaround to work with docker with hot module reload + everything alf sdk 4 provides

2019-09-12 07:55:36 GMT <alfresco-discord> <bhagyas> so I need to copy the amps generated to the docker build context

2019-09-12 07:55:57 GMT <alfresco-discord> <bhagyas> So, all I need is the artefact AMP ref to copy it

2019-09-12 07:56:33 GMT <alfresco-discord> <bhagyas> I'm using palantirs docker, together with Alfresco SDK 4 style dockerfiles

2019-09-12 07:56:39 GMT <alfresco-discord> <Thijs> you can make a copy task that copies from the alfrescoAmp configuration to some folder

2019-09-12 07:56:41 GMT <alfresco-discord> <bhagyas> docker plugin*

2019-09-12 07:56:59 GMT <alfresco-discord> <bhagyas> exactly, but I get "No value has been specified for this provider."

2019-09-12 07:57:32 GMT <alfresco-discord> <Thijs> weird

2019-09-12 07:57:47 GMT <alfresco-discord> <Thijs> why do you want to use another docker plugin?

2019-09-12 07:57:49 GMT <alfresco-discord> <bhagyas> when I refer to alfrescoAmp, which is defined as a configuration and a dependency with a project reference

2019-09-12 07:58:03 GMT <alfresco-discord> <bhagyas> I felt like the xenit docker was lacking support for ASS and stuff

2019-09-12 07:58:24 GMT <alfresco-discord> <bhagyas> So, I got everything running, except for the artefact installation part

2019-09-12 07:58:27 GMT <alfresco-discord> <Thijs> Alfresco Search Services?

2019-09-12 07:58:31 GMT <alfresco-discord> <bhagyas> yeah xD

2019-09-12 07:58:42 GMT <alfresco-discord> <Thijs> I don't see how that relates

2019-09-12 07:58:58 GMT <alfresco-discord> <bhagyas> yeah, but I got a working setup easier than with the xenit docker plugin

2019-09-12 07:59:11 GMT <alfresco-discord> <bhagyas> Also it seemed to be a bit of a mess under the hood

2019-09-12 07:59:12 GMT <alfresco-discord> <Thijs> ah ok, you're not using that one

2019-09-12 07:59:37 GMT <alfresco-discord> <bhagyas> yeah, I got a parralel xenit docker one I tried for testing, but it was much difficult to deal with than the palantir one

2019-09-12 08:00:48 GMT <alfresco-discord> <Thijs> @bhagyas the xenit docker plugin uses this one: https://github.com/bmuschko/gradle-docker-plugin

2019-09-12 08:00:50 GMT <alfbot> Title:GitHub - bmuschko/gradle-docker-plugin: Gradle plugin for managing Docker images and containers. (at github.com)

2019-09-12 08:01:20 GMT <alfresco-discord> <Thijs> probably the most complete docker plugin for gradle out there

2019-09-12 08:01:54 GMT <alfresco-discord> <Thijs> still interested in what was so difficult with our plugin

2019-09-12 08:02:02 GMT <alfresco-discord> <bhagyas> all I needed was this docker { name "docker.loftux.se/sharebox-repo:latest" dockerfile file('src/main/docker/Dockerfile') copySpec.with { from("${projectDir}/src/main/docker") { into('build-resources') } from(configurations.alfrescoAmp) { into('extensions') } } buildArgs(["ACS_IMAGE":

2019-09-12 08:02:02 GMT <alfresco-discord> 'alfresco/alfresco-content-repository-community', "ALFRESCO_PLATFORM_VERSION": alfrescoDockerVersion]) }

2019-09-12 08:02:12 GMT <alfresco-discord> <bhagyas> when I used the palantir plugin

2019-09-12 08:02:29 GMT <alfresco-discord> <bhagyas> src/main/docker was including default config and stuff from SDK 4

2019-09-12 08:02:46 GMT <alfresco-discord> <bhagyas> that had support for hot reload and jrebel

2019-09-12 08:02:57 GMT <alfresco-discord> <bhagyas> and the ability to add other files on top ]

2019-09-12 08:03:03 GMT <alfresco-discord> <bhagyas> which I felt was nice

2019-09-12 08:03:28 GMT <alfresco-discord> <Thijs> you can do that with the plugin we use underneath

2019-09-12 08:03:41 GMT <alfresco-discord> <Thijs> and we want to expose it in the future

2019-09-12 08:03:48 GMT <alfresco-discord> <bhagyas> yeah, but when I looked under the hood in the plugin, I didn't like the code I saw

2019-09-12 08:04:33 GMT <alfresco-discord> <bhagyas> I have it checked out, but it looks like spaghetty

2019-09-12 08:04:35 GMT <alfresco-discord> <Thijs> then be specific about that

2019-09-12 08:05:13 GMT <alfresco-discord> <bhagyas> I also wish if the plugin didn't use same task names as other plugins

2019-09-12 08:05:20 GMT <alfresco-discord> <bhagyas> makes it quite a bit difficult to mix

2019-09-12 08:06:01 GMT <alfresco-discord> <bhagyas> (we also have other servers that need to run as docker images), so having a generic one suits us well

2019-09-12 08:06:16 GMT <alfresco-discord> <Thijs> what task names?

2019-09-12 08:06:21 GMT <alfresco-discord> <bhagyas> like docker

2019-09-12 08:06:36 GMT <alfresco-discord> <bhagyas> and dockerCompose

2019-09-12 08:07:01 GMT <alfresco-discord> <bhagyas> wouldn't have minded if they were prefixed with xenit though 😉

2019-09-12 08:09:08 GMT <alfresco-discord> <bhagyas> I really wanted it work, but it didn't - but now I have a working compose set

2019-09-12 08:10:50 GMT <alfresco-discord> <yreg> that plugin alread had a compose plugin included by default AFAIK

2019-09-12 08:11:08 GMT <alfresco-discord> <bhagyas> @yreg yeah

2019-09-12 08:11:58 GMT <alfresco-discord> <yreg> or maybe not, check this for inspiration : https://github.com/xenit-eu/alfresco-zipkin/blob/master/integration-tests/build.gradle

2019-09-12 08:11:59 GMT <alfbot> Title:alfresco-zipkin/build.gradle at master · xenit-eu/alfresco-zipkin · GitHub (at github.com)

2019-09-12 08:13:19 GMT <alfresco-discord> <bhagyas> thanks

2019-09-12 08:14:05 GMT <alfresco-discord> <drazen04> Hi guys. Yesterday i had to "fight" with bpm:priority. I'm not able to set with execution.setVariable that priority in bpmn20.xml

2019-09-12 08:14:45 GMT <alfresco-discord> <drazen04> it retrieves always an error because at the end i value is not an int but a double

2019-09-12 08:15:51 GMT <alfresco-discord> <drazen04> I start to think that a var with a list value constraint in the model doesn't accept any other value into bpm

2019-09-12 08:15:56 GMT <alfresco-discord> <drazen04> and turns to double

2019-09-12 08:25:55 GMT <alfresco-discord> <Thijs> @bhagyas I'm just checking how we can make it more useful to everyone. Maybe it is a matter of documentation.

2019-09-12 08:26:05 GMT <alfresco-discord> <bhagyas> It could very well be 🙂

2019-09-12 08:26:38 GMT <alfresco-discord> <Thijs> @bhagyas In our first projects, we also made those dockerfiles manually, but we made the plugin to stop repeating ourselves

2019-09-12 08:27:36 GMT <alfresco-discord> <Thijs> @bhagyas The plugin has a bit of history now, but we try to raise the code quality.

2019-09-12 08:30:22 GMT <alfresco-discord> <Thijs> @bhagyas I guess, the main thing you are dealing with right now, is that the docker build does things in a certain way, that works very well for us, but it does not easily offer the flexibility to add other use cases to it

2019-09-12 08:31:58 GMT <alfresco-discord> <Thijs> there is a leanImage feature, that is pretty neat

2019-09-12 08:32:12 GMT <alfresco-discord> <Thijs> makes small layers and very fast docker builds

2019-09-12 08:32:41 GMT <alfresco-discord> <Thijs> but it adds some complexity

2019-09-12 08:38:06 GMT <alfresco-discord> <Thijs> @bhagyas I any case, we are interested in the hot reloading. If there is some build you can share, I'm eager to have a look.

2019-09-12 08:45:05 GMT <alfresco-discord> <Thijs> @yreg Yes, that avast docker-compose plugin is enabled by default

2019-09-12 08:45:32 GMT <alfresco-discord> <Thijs> in the alfresco-zipkin it is used separately though

2019-09-12 08:45:40 GMT <hi-ko> @kgastaldo: postscript: will new alfresco hub (web platform) contain a real addOn section? Nice to have: gist like section for solution snippets

2019-09-12 09:17:26 GMT <alfresco-discord> <bhagyas> Thanks @Thijs

2019-09-12 09:23:05 GMT <alfresco-discord> <bhagyas> I think adding additional servers and running docker-compose with search services, etc to the documentation would be nice

2019-09-12 09:23:44 GMT <alfresco-discord> <bhagyas> + updating the plugin to work with latest gradle versions

2019-09-12 09:24:54 GMT <alfresco-discord> <Thijs> right now you have to bring your own docker-compose, so if search services are in there, it works

2019-09-12 09:25:15 GMT <alfresco-discord> <Thijs> but using docker-compose is not documented at all in the plugin

2019-09-12 09:45:52 GMT <alfresco-discord> <bhagyas> yup

2019-09-12 09:47:54 GMT <alfresco-discord> <bhagyas> What do you think about the plugin building another war and putting it inside a container that already contains a war?

2019-09-12 09:50:15 GMT <alfresco-discord> <Thijs> you mean, overwriting?

2019-09-12 09:52:53 GMT <alfresco-discord> <Thijs> we now always unpack the war before copying it over to the image

2019-09-12 09:53:27 GMT <alfresco-discord> <bhagyas> yeah, does it remove it first? or leaves traces of the original?

2019-09-12 09:54:07 GMT <alfresco-discord> <Thijs> with leanImage=false, it will remove the unpacked wars with the same name before copying

2019-09-12 09:55:17 GMT <alfresco-discord> <Thijs> with leanImage=true, it will not, because the unpacked outside only contains the customizations made, not the original Alfresco war

2019-09-12 09:55:33 GMT <alfresco-discord> <Thijs> makes your last layer a lot smaller

2019-09-12 09:55:59 GMT <alfresco-discord> <Thijs> faster builds and faster deployments, less space on our docker registry

2019-09-12 09:56:53 GMT <alfresco-discord> <bhagyas> yeah

2019-09-12 09:59:48 GMT <alfresco-discord> <bhagyas> I'll have another look

2019-09-12 11:23:08 GMT <alfresco-discord> <kgastaldo> @hi-ko - we’re moving over all the addons but like jive, it’s not the perfect setup

2019-09-12 11:23:26 GMT <alfresco-discord> <kgastaldo> But all the content will be there - and sortable by version

2019-09-12 12:24:12 GMT <AFaust> Argh.... small typo in an FTS query => huge consequences: instead of AND there was an ABD.... instead of failing the query, it turned it from a complex AND that should have matched virtually nothing, to an implicit OR (with ABD being a regular term) which matched almost everyting

2019-09-12 12:45:25 GMT <alfresco-discord> <Toon Geens> ouch 🙂

2019-09-12 13:14:12 GMT <AFaust> And it's not like this was in a scheduled job to generate notification emails to users...

2019-09-12 13:42:54 GMT <alfresco-discord> <bhagyas> Got a working build! @Thijs !

2019-09-12 14:23:38 GMT <Tichodroma> I wonder how the primary parent of a node can be changed to be a *content* node. NodeService.moveNode(...) reports an integrity violation: Required Source Type: {http://www.alfresco.org/model/content/1.0}folder, ctual Source Type: {http://www.alfresco.org/model/content/1.0}content

2019-09-12 14:52:22 GMT <Tichodroma> I've asked ^ also on Stack Overflow: https://stackoverflow.com/q/57909289/11044402

2019-09-12 14:52:23 GMT <alfbot> Title:java - Make content node primary parent of node - Stack Overflow (at stackoverflow.com)

2019-09-12 15:08:34 GMT <AFaust> Tichodroma: well, you'd need a custom child association - can't do it with cm:contains or sys:children

2019-09-12 15:09:14 GMT <AFaust> And for that custom child association, you'd probably best use an aspect and apply that to the primary parent content node

2019-09-12 15:10:17 GMT <AFaust> the "primary" bit does not matter at all in this case actually - content node already is primary parent e.g. of renditions / thumbnails, so it is obvious it can be, but only with special assocs

2019-09-12 15:11:40 GMT <Tichodroma> that's an idea

2019-09-12 15:19:39 GMT <Tichodroma> I will try that.

2019-09-12 15:30:05 GMT <Tichodroma> AFaust: works, TY

2019-09-12 22:34:08 GMT <alfbot> grendal_prime: Sent 4 days, 2 hours, and 13 minutes ago: <AFaust> I prefer to use mod_proxy for Apache, as that does not rely (solely) on the binary AJP protocol and is generally easier to set up

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco