Can't build alfresco-transform-core

cancel
Showing results for 
Search instead for 
Did you mean: 
iohann95
Active Member II

Can't build alfresco-transform-core

Jump to solution

Unfortunately, no matter what I do, I just can't compile this project. In the end, I always get the same error:

[ERROR] F8: Failed to execute the build: io.fabric8.maven.docker.access.DockerAccessException: Unable to build image [alfresco/alfresco-imagemagick:latest] : Connection reset by peer

 

If anone knows what may be going on, I would appreciate it. Thanks!

1 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: Can't build alfresco-transform-core

Jump to solution

Sorry to hear that, I tried in my Mac and it worked fine.

Also Travis is working as expected:

https://app.travis-ci.com/github/Alfresco/alfresco-transform-core/builds/241395410

You can also build your Docker Image by using the Dockerfile in

https://github.com/Alfresco/alfresco-transform-core/blob/master/alfresco-transform-core-aio/alfresco...

and changing manually the file inside the alfresco-transform-core-aio-boot.jar file.

Alternativelly, you can create a new TEngine with a lower priority for the transformation/extractions required.

Hyland Developer Evangelist

View solution in original post

7 Replies
angelborroy
Alfresco Employee

Re: Can't build alfresco-transform-core

Jump to solution

How did you build the project?

Another approach would be to create a new Transform Engine overriding default extractor with lower priority numbers for these routes:

https://github.com/Alfresco/alfresco-transform-core/blob/master/alfresco-transform-tika/alfresco-tra...

Hyland Developer Evangelist
iohann95
Active Member II

Re: Can't build alfresco-transform-core

Jump to solution

Hi Angel,

 

I tried to build following the README.me

Configured the Alfresco Maven repository and run the command:

mvn clean install -Plocal,docker-it-setup

I'm using Ubuntu 20.04 LTS on an AWS EC2.

But always fails with that error.

 

I tried really hard to search for a solution but nothing seems to be exactly my problem.

 

Thanks!

 

About the alternate solution, I will see if I can figure out how to use it!

angelborroy
Alfresco Employee

Re: Can't build alfresco-transform-core

Jump to solution

Do you have Docker installed on that AWS EC2 Instance?

You may also try skipping unnecesary steps and tests to avoid starting Docker issues:

$ mvn clean install -Plocal -DskipTests
Hyland Developer Evangelist
iohann95
Active Member II

Re: Can't build alfresco-transform-core

Jump to solution

Angel,

Yes I have Docker installed.

Tried to run using the command you sent me, got the same error

 

Now I even tried to build it on my Windows 10 PC, using Docker + Debian WSL2,

I got the same error.

 

I really don't know what I am doing wrong...

iohann95
Active Member II

Re: Can't build alfresco-transform-core

Jump to solution

I give up. I tried everything possible, used other linux distros, tried other configurations, searching what may be going wrong, but the result is always the same.

A crucial step has to be missing on the project readme.

I never encountered such problem building other maven projects.

Also, the Travis CI link on the project page is broken, it gives a 404 error. so I start to have my doubts if it's really "passing" the build process.

 

0000.png

angelborroy
Alfresco Employee

Re: Can't build alfresco-transform-core

Jump to solution

Sorry to hear that, I tried in my Mac and it worked fine.

Also Travis is working as expected:

https://app.travis-ci.com/github/Alfresco/alfresco-transform-core/builds/241395410

You can also build your Docker Image by using the Dockerfile in

https://github.com/Alfresco/alfresco-transform-core/blob/master/alfresco-transform-core-aio/alfresco...

and changing manually the file inside the alfresco-transform-core-aio-boot.jar file.

Alternativelly, you can create a new TEngine with a lower priority for the transformation/extractions required.

Hyland Developer Evangelist

View solution in original post

iohann95
Active Member II

Re: Can't build alfresco-transform-core

Jump to solution

I eventually used the dumbest method possible.

I created a Dockerfile that just replaced the edited jar.

ARG TRANSFORM_ENGINE_TAG
FROM alfresco/alfresco-transform-core-aio:${TRANSFORM_ENGINE_TAG}

COPY alfresco-transform-core-aio-boot.jar /usr/bin/
COPY alfresco-transform-core-aio-boot.jar /usr/bin/alfresco-transform-core-aio-boot-2.5.3.jar

But it worked though... thanks!