Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No package.json when installed in a Kubernetes cluster #8471

Closed
3 tasks done
V1210N opened this issue Sep 30, 2021 · 2 comments
Closed
3 tasks done

No package.json when installed in a Kubernetes cluster #8471

V1210N opened this issue Sep 30, 2021 · 2 comments

Comments

@V1210N
Copy link

V1210N commented Sep 30, 2021

Preflight Checklist

Describe the Bug

Installing Directus via its Dockerhub container image on a Kubernetes cluster will cause the image to not have its package.json.

There are no traces of the Dockerfile's builder steps, which indicate that these might be getting skipped over. There is also no node_modules folder.

The absence of package.json and node_modules leads to extensions being unable to be loaded.

To Reproduce

I used a basic setup with a custom helm chart, however, this is likely also reproducible in other chart setups.

  1. Install the Directus helm chart.
  2. Once the deployment is up and running, SSH into the Directus Pod.
  3. Go to the default install directory /directus and run ls.
  4. At this point you'll notice the absence of both package.json and node_modules.

What version of Directus are you using?

9.0.0-rc.95

What version of Node.js are you using?

16.9.1

What database are you using?

Postgres 12.8

What browser are you using?

(irrelevant)

What operating system are you using?

Linux (Directus' Dockerfile)

How are you deploying Directus?

Kubernetes

@paescuj
Copy link
Member

paescuj commented Oct 1, 2021

The Docker image shouldn't behave differently on Kubernetes, so this must have something to do with your deployment configuration. Looking at the deployment.yaml file, it seems like you're mounting the whole /directus folder instead of /directus/uploads (see https://docs.directus.io/guides/installation/docker/#persistence).

@azrikahar
Copy link
Contributor

This may be another helpful reference: https://github.com/directus-community/helm-chart

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants