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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • 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
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. CLI ignores cloudron/Dockerfile

CLI ignores cloudron/Dockerfile

Scheduled Pinned Locked Moved Solved Support
clibuild
7 Posts 2 Posters 158 Views 2 Watching
  • 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.
  • rosanoR Offline
    rosanoR Offline
    rosano
    wrote last edited by joseph
    #1

    With v8.0.2 cloudron update seems to only look for Dockerfile at the root even though my project has cloudron/Dockerfile. I tried deleting the Dockerfile at the root and/or setting --file cloudron/Dockerfile but it still seems to be stuck looking at the root.

    Cannot locate specified Dockerfile: Dockerfile 
    
    1 Reply Last reply
    0
    • rosanoR Offline
      rosanoR Offline
      rosano
      wrote last edited by
      #7

      Just tried updating the CLI via npm install -g cloudron@8.2.1 and it seems to work now 👍🏽 Thanks for looking into it.

      1 Reply Last reply
      1
      • rosanoR Offline
        rosanoR Offline
        rosano
        wrote last edited by
        #2

        I just tried cloudron install --file platform/cloudron/Dockerfile in another project and it seems to still be ignoring the --file argument.

        No build detected. This package will be built on the server.
        Location: test-build
        App is being installed.
        
         => Queued ...
         => Deleting old containers 
         => Building image 
        
        App installation error: Installation failed: Unable to build image from /home/yellowtent/appsdata/f84d72bb-bbbb-4f2e-a731-30b8cf399128/source.tar.gz: (HTTP code 500) server error - Cannot locate specified Dockerfile: Dockerfile
        

        Is this a bug or have I missed something?

        1 Reply Last reply
        1
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #3

          Hello @rosano
          This could be a regression of Cloudron Version 9.1.6.
          Thanks for reporting and I will look into this tomorrow.

          1 Reply Last reply
          1
          • jamesJ Offline
            jamesJ Offline
            james
            Staff
            wrote last edited by
            #4

            Hello @rosano
            I have to apologize, I did not get to your issue yet.

            rosanoR 1 Reply Last reply
            0
            • jamesJ james

              Hello @rosano
              I have to apologize, I did not get to your issue yet.

              rosanoR Offline
              rosanoR Offline
              rosano
              wrote last edited by
              #5

              @james My fix at the moment is to make a temporary commit moving Cloudron stuff into /Dockerfile and then deleting the commit after successful install. Seems to look only there.

              1 Reply Last reply
              2
              • jamesJ Offline
                jamesJ Offline
                james
                Staff
                wrote last edited by
                #6

                Hello @rosano
                I was not able to reproduce this issue.

                First with Dockerfile located in the project root.

                cloudron install --location $(yq -r .id CloudronManifest.json)
                

                No issue.
                Moved the Dockerfile to cloudron/Dockerfile and updated the app with:

                 cloudron update --app $(yq -r .id CloudronManifest.json) --no-backup --file cloudron/Dockerfile
                

                Also with no issues.

                This also worked vice versa.

                1 Reply Last reply
                1
                • rosanoR Offline
                  rosanoR Offline
                  rosano
                  wrote last edited by
                  #7

                  Just tried updating the CLI via npm install -g cloudron@8.2.1 and it seems to work now 👍🏽 Thanks for looking into it.

                  1 Reply Last reply
                  1
                  • rosanoR rosano has marked this topic as solved

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

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