Comments (13)
Yes thats correct, I think the docker file needs to be updates to pnpm and also adapted to the new turbo repo structure.
from unsaged.
Think the Dockerfile needs to be rewritten to support the change of pnpm
from unsaged.
In order to build the project I'm adding
npm i
into the Dockerfile. Otherwise this doesn't work on a host without npm. This approach worked yesterday.# ---- Dependencies ---- FROM base AS dependencies RUN npm i RUN npm ci
Today looks like it's breaking when I get the latest version form main.
npm notice npm notice New major version of npm available! 9.6.3 -> 10.2.4 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.4> npm notice Run `npm install -g [email protected]` to update! npm notice npm ERR! code EUNSUPPORTEDPROTOCOL npm ERR! Unsupported URL Type "workspace:": workspace:* npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-11-23T11_47_26_971Z-debug-0.log
I can see commits have been made to the package.json file.
/
Try this and let me know if it works for you. Works in my Coolify docker app
EDIT
Nevermind it ended up crashing so going to restructure this.
from unsaged.
No luck.
- clone from master
- cd unsaged/apps/unsaged
Will complain about missing pnpm-lock.yaml
So I copied it from root:
$ cp ../../pnpm-lock.yaml .
$ cp ../../package.json .
Sending build context to Docker daemon 2.192MB
Step 1/21 : FROM node:19-alpine AS base
---> e2a8cc97f817
Step 2/21 : WORKDIR /app
---> Using cache
---> c16f1b42f5ab
Step 3/21 : RUN npm install -g pnpm
---> Using cache
---> b11eff3dab53
Step 4/21 : COPY package*.json pnpm-lock.yaml ./
---> Using cache
---> 4566546a5a3c
Step 5/21 : COPY .env.local .env.local
---> Using cache
---> cebbd926d3de
Step 6/21 : FROM base AS dependencies
---> cebbd926d3de
Step 7/21 : RUN pnpm install --frozen-lockfile
---> Using cache
---> 147977990791
Step 8/21 : FROM dependencies AS build
---> 147977990791
Step 9/21 : COPY . .
---> 95fcf422683c
Step 10/21 : RUN pnpm run build
---> Running in f060c6a35729
WARN The "workspaces" field in package.json is not supported by pnpm. Create a "pnpm-workspace.yaml" file instead.
> monorepo@ build /app
> turbo run build
• Running build
• Remote caching disabled
root task build (turbo run build) looks like it invokes turbo and might cause a loop
No tasks were executed as part of this run.
Tasks: 0 successful, 0 total
Cached: 0 cached, 0 total
Time: 1.064s
ERROR run failed: command exited (1)
ELIFECYCLE Command failed with exit code 1.
The command '/bin/sh -c pnpm run build' returned a non-zero code: 1
from unsaged.
No luck.
- clone from master
- cd unsaged/apps/unsaged
Will complain about missing pnpm-lock.yaml So I copied it from root:
$ cp ../../pnpm-lock.yaml . $ cp ../../package.json .
Sending build context to Docker daemon 2.192MB Step 1/21 : FROM node:19-alpine AS base ---> e2a8cc97f817 Step 2/21 : WORKDIR /app ---> Using cache ---> c16f1b42f5ab Step 3/21 : RUN npm install -g pnpm ---> Using cache ---> b11eff3dab53 Step 4/21 : COPY package*.json pnpm-lock.yaml ./ ---> Using cache ---> 4566546a5a3c Step 5/21 : COPY .env.local .env.local ---> Using cache ---> cebbd926d3de Step 6/21 : FROM base AS dependencies ---> cebbd926d3de Step 7/21 : RUN pnpm install --frozen-lockfile ---> Using cache ---> 147977990791 Step 8/21 : FROM dependencies AS build ---> 147977990791 Step 9/21 : COPY . . ---> 95fcf422683c Step 10/21 : RUN pnpm run build ---> Running in f060c6a35729 WARN The "workspaces" field in package.json is not supported by pnpm. Create a "pnpm-workspace.yaml" file instead. > monorepo@ build /app > turbo run build • Running build • Remote caching disabled root task build (turbo run build) looks like it invokes turbo and might cause a loop No tasks were executed as part of this run. Tasks: 0 successful, 0 total Cached: 0 cached, 0 total Time: 1.064s ERROR run failed: command exited (1) ELIFECYCLE Command failed with exit code 1. The command '/bin/sh -c pnpm run build' returned a non-zero code: 1
Okay let me work on a proper docket file for standard use. My environment is a bit different so I'll switch to my other server.
What os you running?
from unsaged.
one without npm installed :) .. Oracle Linux or Linux Flatcar
from unsaged.
Ooooo lol Might be a bit beyond my knowledge but I'll play with it once I wrap up work
from unsaged.
I also have a GitHub workflow to make this image on their free servers and post it in dockerhub. I need to tweak it due to the recent changes but that's another option
from unsaged.
from unsaged.
that even better!
…
On Thu, 30 Nov 2023, 20:56 Bortus-AI, @.> wrote: I also have a GitHub workflow to make this image on their free servers and post it in dockerhub. I need to tweak it due to the recent changes but that's another option — Reply to this email directly, view it on GitHub <#104 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOPPAYTME43VFFO6QEB5SLYHDXI3AVCNFSM6AAAAAA7XU5HEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGU2DQNBXGU . You are receiving this because you authored the thread.Message ID: @.>
Yeah its super nice. Auto builds and pushes it so no need to worry about all the dependencies and building locally. I'll work on that again this evening
from unsaged.
I also had this issue. I had to remove the eslint line and force it to use npm
from unsaged.
that even better!
…
On Thu, 30 Nov 2023, 20:56 Bortus-AI, @.> wrote: I also have a GitHub workflow to make this image on their free servers and post it in dockerhub. I need to tweak it due to the recent changes but that's another option — Reply to this email directly, view it on GitHub <#104 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOPPAYTME43VFFO6QEB5SLYHDXI3AVCNFSM6AAAAAA7XU5HEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGU2DQNBXGU . You are receiving this because you authored the thread.Message ID: @.>
I got the dockerfle to build and run okay so making some progress. Will start working on the GitHub workflow and auto building the image so you don't need pnpm installed
from unsaged.
If you want a copy of my github workflow to build and create the docker image I can share it.
from unsaged.
Related Issues (20)
- [BUG] Models not loading HOT 1
- [Feature] - Allow document upload HOT 2
- [Docs] Bad link for generation script on Getting Started page HOT 2
- [Feature] Add Ollama URL input in the settings tab
- [Feature] Add AWS Bedrock
- [Feature] Update Image generation
- [Feature] Add all previous supported languages
- Blank Page Issue with Latest Build in Docker Environment HOT 4
- [BUG] npm dependency issue HOT 2
- [Feature] Add GPT Vision Models HOT 1
- [Feature] Gemini Pro Support HOT 4
- [BUG] TypeError: Cannot read properties of undefined (reading 'inTable')
- [BUG] Docker image does not start: `next: command not found` HOT 1
- [FEATURE] Support for LaTeX
- No Logs in Cloudflare AI Gateway [BUG]
- [Help Needed] Fix support for other languages HOT 1
- [Help Needed] - Is a on-prem supabase install supported ? HOT 5
- [Help Needed] Transition from NextAuth to Supabase Auth for User Authentication HOT 1
- [Question] - 401 on access to conversation table in Supabase HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unsaged.