Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

App Source Size Limit

Scheduled Pinned Locked Moved Discuss
8 Posts 3 Posters 637 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • amanharitsh123A Offline
    amanharitsh123A Offline
    amanharitsh123
    wrote on last edited by
    #1

    Hi Guys ,
    I am trying to pack sugarizer(https://github.com/llaske/sugarizer) and sugarizer server(https://github.com/llaske/sugarizer-server) . I have added a Dockerfile in sugarizer dir in which I am adding both sugarizer and sugarizer-server dir to /app/code/sugarizer and app/code/sugarizer-server. Everytime I start with the build command , it crashed with error .

    "ERROR Failed to build app. The app source is too large.
    Please adjust your .dockerignore file to only include neccessary files."

    Is there anyway to alter this limit? I tried shrinking sugarizer by 150MB around , leaving it still a 150MB package but still the error persists.

    1 Reply Last reply
    0
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    wrote on last edited by
    #2

    Often this is the case when not needed resources from the repo are pushed to the build server. You can filter those out by using a .dockerignore file in the repo. See for example https://git.cloudron.io/cloudron/wekan-app/blob/master/.dockerignore

    1 Reply Last reply
    0
  • amanharitsh123A Offline
    amanharitsh123A Offline
    amanharitsh123
    wrote on last edited by
    #3

    Please explain "Not needed resources". I cant find anything that seems extra or could be avoided. I already have a dockerignore file with entries for node_modules and git folders.

    1 Reply Last reply
    0
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    wrote on last edited by
    #4

    Oh ok, then the app is really this large. I guess we have to increase the limit then on the buildserver. I will do so in some time and keep this thread updated accordingly.

    1 Reply Last reply
    0
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    wrote on last edited by
    #5

    Before I adjust the source site limit, just to clarify, generally the package code itself should not be that large as it mostly contains a few scripts and metadata. The actual app code is usually fetched in the Dockerfile. Do you have a Cloudron package repo somewhere online to take a look, or did you intend to put the Cloudron package files directly into the app repo?

    1 Reply Last reply
    0
  • amanharitsh123A Offline
    amanharitsh123A Offline
    amanharitsh123
    wrote on last edited by
    #6

    I have read the cloudron packaging documentation and according to that, I added a Docker file in my sugarizer dir with ADD commands to add the whole content of /sugarizer/ dir as well as /sugarizer-server/ dir to /app/code/sugarizer/ and /app/code/sugarizer-server/ .

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #7

    Are you adding the contents of .git, node_modules etc by any chance as part of your ADD command?

    I suspect you are developing the cloudron package inside your app's git repo itself. If you do this, you have to be careful not to add build and version control artifacts as part of Cloudron image creation. Maybe you can hop onto chat.cloudron.io and we can help you there.

    amanharitsh123A 1 Reply Last reply
    0
  • amanharitsh123A Offline
    amanharitsh123A Offline
    amanharitsh123
    replied to girish on last edited by
    #8

    @girish Hi , I have made sure that that my repo should not have any git data or meta data. I even tried shrinking the app on my end as much as I can. If you want to take a look on the app , here it is : https://github.com/llaske/sugarizer

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.