Coder Social home page Coder Social logo

Comments (9)

delfrrr avatar delfrrr commented on July 20, 2024

Hey @allenday please check the docs to build from source https://dekart.xyz/docs/contributing/build-from-source/

from dekart.

allenday avatar allenday commented on July 20, 2024

Thanks @delfrrr . I've done this, and granted permissions repo, workflow, write:packages, but still seeing the same error.

Contents of my .npmrc look like this:

//npm.pkg.github.com/:_authToken=ghp_XXXXXXXXXX
@dekart-xyz:registry=https://npm.pkg.github.com

from dekart.

allenday avatar allenday commented on July 20, 2024

Do some other commands such as:
https://github.com/dekart-xyz/www/blob/main/content/docs/contributing/build-from-source.md?plain=1#L48
also need to be added to the Dockerfile?

from dekart.

delfrrr avatar delfrrr commented on July 20, 2024

@allenday can you please confirm if npm install is completing/failing on your local? (see steps)

Also can you please confirm which step fails in docker build?

Please note that root Dockerfile is used to build dekart docker image before publishing it; it is used for CI/CD workflow and it executes successfully https://github.com/dekart-xyz/dekart/runs/4893074528?check_suite_focus=true

These are steps to build frontend in Dockerfile

FROM node:16 as nodebuilder
WORKDIR /source
ADD package.json . //copy your package.json
ADD package-lock.json . //copy your package-lock.json
ADD .npmrc . //copy your package-lock.json .npmrc
RUN npm i // does this command fails?
ADD public public
ADD src src
RUN npm run build

You are not expected to modify Dockerfile.
You don't need yo copy .env into the Docker; environment variable are provided when you run the container https://github.com/dekart-xyz/dekart/tree/main/install/docker

.env is used only for local development

from dekart.

allenday avatar allenday commented on July 20, 2024

from dekart.

allenday avatar allenday commented on July 20, 2024

FYI I'm also now experiencing the same problem for gcloud app deploy, whereas I was previously able to deploy without issue.

from dekart.

delfrrr avatar delfrrr commented on July 20, 2024

hey @allenday ; I've launched VM instance on GCP and went through setup steps on it successfully using friend's GitHub token (to make sure there is no permission problem);

System Info: Linux instance-1 4.19.0-18-cloud-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux

These are my steps starting from empty instance

# git
sudo apt install git-all
git clone https://github.com/dekart-xyz/dekart.git
cd dekart/

# .npmrc
vim .npmrc # content as mentioned above

# setting up node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
nvm install 16

# testting npm install
npm install # works

# docker
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo   "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo docker run hello-world # testing docker
sudo make docker # works

from dekart.

delfrrr avatar delfrrr commented on July 20, 2024

@allenday if you do experience problem, and build failed inside the docker I can only assume that problem is with your .npmrc file:

  • wrong path
  • wrong token

let me know if I can do anything else here

from dekart.

kevinjamesparks avatar kevinjamesparks commented on July 20, 2024

Hi @allenday!
I am following up on the above, are you still facing some issues?

from dekart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.