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

Memory issues #7

Open
krystofurr opened this issue May 6, 2017 · 4 comments
Open

Memory issues #7

krystofurr opened this issue May 6, 2017 · 4 comments

Comments

@krystofurr
Copy link

Hello,

I've been working with your docker build for Alfresco and was wondering if its normal to have memory issues when manually building from the Dockerfile instead of pulling from the docker hub. I never seem to have issues pulling the image down from the hub and running the container, but when downloading the github repository and building from the Dockerfile, I get the following error during the build:

0.97 GB of RAM is not enough to run Alfresco for test or production purposes. Alfresco might not work correctly and if it does, will not perform well. Upgrade the server to have at least 2.0 GB of RAM, and optimally 4.0 GB of RAM. The command '/bin/sh -c /app/assets/install_alfresco.sh' returned a non-zero code: 1

I'm running docker toolbox in a Windows 10 environment. I noticed that my virtual box VM only have 1024MB of RAM set for it which is likely causing the issue, but why does it work fine when I pull the image down from docker hub?

@disaster37
Copy link
Owner

Hi,

like you say, your VM have no enough memory. In fact, we use the official install script that check the machine requirement before start installation. And the script check that you are the minimum memory for Alfresco before start installation. In not really good situation for docker context. Maybee there aare king of argument to not check the memory requirement during alfresco installation...

@krystofurr
Copy link
Author

Ah I see. So your staying when you download from the docker hub there may be an argument that prevents the memory check ? How could I disable that check for the Dockerfile build?

@dm-conti
Copy link

I have the same problem on Mac OS X but in my case it detects 1.95Gb which is always lower than the minimum requirement of 2Gb.

@disaster37
Copy link
Owner

Yep, Alfresco is not packaged to be include on Docker. So we need to use the Alfresco standard installer when build Docker image. The matter is that the Alfresco installer check the server requierement before process the installation. So if you haven't 2go of Ram on the machine that buid the docker image, you get your error. There are no error when the Docker image is build by docker hub or quay.io because of the server that run the build has more than 2go of ram.

I hope it's clear. I don't found any option on Alfresco installer to disable the memory check requirement.

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

No branches or pull requests

3 participants