No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Quasar in Docker

    Help
    4
    5
    3308
    Loading More Posts
    • 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.
    • B
      beezerk last edited by

      Hey, i want to use quasar in docker but it gives me the following error:

      quasar  | 
      quasar  |  I  App [SPA with MAT theme] at http://localhost:8095/
      quasar  | 
      quasar  |   Error: Error: Exited with code 3
      quasar  |     
      quasar  |     - index.js:84   ChildProcess.cp.once.code
      quasar  |       [www]/[opn]/index.js:84:13
      quasar  |     
      quasar  |     - child_process.js:936   maybeClose
      quasar  |       internal/child_process.js:936:16
      quasar  |     
      quasar  |     - child_process.js:353   Socket.stream.socket.on
      quasar  |       internal/child_process.js:353:11
      quasar  |     
      

      My dockerfile looks like this:

      FROM node:8.9.0
      
      RUN apt-get update -qq \
          && apt-get install -y build-essential
      
      ARG APPLICATION="."
      ARG APPLICATION_WORKDIR="/var/www"
      
      COPY ${APPLICATION} ${APPLICATION_WORKDIR}
      WORKDIR ${APPLICATION_WORKDIR}
      
      # Expose is for dev server
      EXPOSE 8095
      
      RUN npm install
      RUN npm rebuild node-sass
      RUN npm install -g quasar-cli
      
      CMD ["quasar", "dev"]
      
      

      I already tried the quasar docker setup but its over 1 year old and not working. So maybe somebody has a working configuration for me or can help me with mine.

      1 Reply Last reply Reply Quote 1
      • B
        beezerk last edited by

        Ok with help i could fix this problem. Its cause by the “open: true” setting in quasar.conf.js. Setting this to false fix the error.

        1 Reply Last reply Reply Quote 1
        • I
          imagina last edited by

          Same problem here. I think it could be “try catched” because in Linux it will fail always.

          M 1 Reply Last reply Reply Quote 0
          • M
            mariaczi @imagina last edited by

            @imagina said in Quasar in Docker:

            Same problem here. I think it could be “try catched” because in Linux it will fail always.

            It fails only in Docker, doesn’t fail in Linux host.

            I am going to prepare some PR for docs with quick Docker reference for development with hot reload etc, but it will happen over next 2 weeks as I am pretty busy now.

            1 Reply Last reply Reply Quote 0
            • J
              jwdobken last edited by

              I experience the same issue, I use yarn instead of npm:

              FROM node:latest
              WORKDIR app
              COPY * /app/
              # Install vue first and then quasar
              RUN yarn global add vue-cli
              RUN yarn global add quasar-cli
              RUN yarn install
              RUN quasar dev
              EXPOSE 8080
              
              1 Reply Last reply Reply Quote 1
              • First post
                Last post