Comments (9)
Hey @allenday please check the docs to build from source https://dekart.xyz/docs/contributing/build-from-source/
from dekart.
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.
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.
@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.
from dekart.
FYI I'm also now experiencing the same problem for gcloud app deploy
, whereas I was previously able to deploy without issue.
from dekart.
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.
@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.
Hi @allenday!
I am following up on the above, are you still facing some issues?
from dekart.
Related Issues (20)
- Connecting multiple sources at the same time
- AI queries (generate query based on AI request and db schema) HOT 4
- Time series
- Embed map in Confluence
- Concurrent Map read and map write
- [Feature] Add in hatched and dotted symbology
- [Feature] Add labels to polygons
- Illegal base64 data at input byte 326
- Select Project ID and Storage Bucket over UI
- Save maps annotations
- [Bug] Slack link is no longer active
- [Bug] Because of the Button spinner, user can't choose the team plan again
- [Bug] query names lost upon forking report
- [Bug] kepler.gl layers are reordered when a query is refreshed
- [Feature] option to not change map view upon query refresh
- [Feature] scheduled auto-refresh
- [Bug] can't invite more than 1 team member HOT 1
- Add DuckDb support MVP
- Config Name Is Incorrect For Data Source In Documentation HOT 5
- [Feature] Provide Support for Uploading Json files HOT 3
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 dekart.