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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Build Service
  3. Calling build inside a docker container

Calling build inside a docker container

Scheduled Pinned Locked Moved Solved Build Service
5 Posts 2 Posters 1.1k 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.
  • klawitterbK Offline
    klawitterbK Offline
    klawitterb
    wrote on last edited by
    #1

    Currently playing a bit around with the buildservice and gitlab runners.
    When I call the cloudron build command using the build service it fails with the following error:

    Pushing 7961033aba9e [==================================================>]     512B/usr/local/node-18.12.1/lib/node_modules/cloudron/src/build-actions.js:100
                    process.stdout.clearLine();
                                   ^
    TypeError: process.stdout.clearLine is not a function
        at EventSource.<anonymous> (/usr/local/node-18.12.1/lib/node_modules/cloudron/src/build-actions.js:100:32)
        at EventSource.emit (node:events:513:28)
        at _emit (/usr/local/node-18.12.1/lib/node_modules/cloudron/node_modules/eventsource/lib/eventsource.js:287:17)
        at parseEventStreamLine (/usr/local/node-18.12.1/lib/node_modules/cloudron/node_modules/eventsource/lib/eventsource.js:302:9)
        at IncomingMessage.<anonymous> (/usr/local/node-18.12.1/lib/node_modules/cloudron/node_modules/eventsource/lib/eventsource.js:259:11)
        at IncomingMessage.emit (node:events:513:28)
        at addChunk (node:internal/streams/readable:324:12)
        at readableAddChunk (node:internal/streams/readable:297:9)
        at Readable.push (node:internal/streams/readable:234:10)
        at HTTPParser.parserOnBody (node:_http_common:129:24)
    

    Any ideas? Works perfectly fine on my local machine. My gitlab runner is running inside a docker container as well, might it be related?

    girishG 1 Reply Last reply
    0
    • klawitterbK klawitterb

      Currently playing a bit around with the buildservice and gitlab runners.
      When I call the cloudron build command using the build service it fails with the following error:

      Pushing 7961033aba9e [==================================================>]     512B/usr/local/node-18.12.1/lib/node_modules/cloudron/src/build-actions.js:100
                      process.stdout.clearLine();
                                     ^
      TypeError: process.stdout.clearLine is not a function
          at EventSource.<anonymous> (/usr/local/node-18.12.1/lib/node_modules/cloudron/src/build-actions.js:100:32)
          at EventSource.emit (node:events:513:28)
          at _emit (/usr/local/node-18.12.1/lib/node_modules/cloudron/node_modules/eventsource/lib/eventsource.js:287:17)
          at parseEventStreamLine (/usr/local/node-18.12.1/lib/node_modules/cloudron/node_modules/eventsource/lib/eventsource.js:302:9)
          at IncomingMessage.<anonymous> (/usr/local/node-18.12.1/lib/node_modules/cloudron/node_modules/eventsource/lib/eventsource.js:259:11)
          at IncomingMessage.emit (node:events:513:28)
          at addChunk (node:internal/streams/readable:324:12)
          at readableAddChunk (node:internal/streams/readable:297:9)
          at Readable.push (node:internal/streams/readable:234:10)
          at HTTPParser.parserOnBody (node:_http_common:129:24)
      

      Any ideas? Works perfectly fine on my local machine. My gitlab runner is running inside a docker container as well, might it be related?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @klawitterb said in Calling build inside a docker container:

      process.stdout.clearLine is not a function

      Oh, this seems like we need to handle a case where stdout is not stdout (like the CI).

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

        Right, I can reproduce this with a simple program:

        $ node -e 'process.stdout.clearLine();'
        $ node -e 'process.stdout.clearLine();' >/dev/null
        [eval]:1
        process.stdout.clearLine();
                       ^
        
        TypeError: process.stdout.clearLine is not a function
            at [eval]:1:16
            at Script.runInThisContext (node:vm:129:12)
            at Object.runInThisContext (node:vm:307:38)
            at node:internal/process/execution:79:19
            at [eval]-wrapper:6:22
            at evalScript (node:internal/process/execution:78:60)
            at node:internal/main/eval_string:28:3
        
        Node.js v18.16.0
        
        1 Reply Last reply
        1
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @klawitterb I published a new version. Can you try with CLI v5.3.4 ?

          klawitterbK 1 Reply Last reply
          2
          • girishG girish

            @klawitterb I published a new version. Can you try with CLI v5.3.4 ?

            klawitterbK Offline
            klawitterbK Offline
            klawitterb
            wrote on last edited by
            #5

            @girish works perfectly fine now, thanks for the quick fix

            1 Reply Last reply
            2
            • nebulonN nebulon marked this topic as a question on
            • nebulonN nebulon has marked this topic as solved on
            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