Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/spicy-places-pick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@wbce-d9/directus9': patch
---

Update docker url
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:

env:
GHCR_IMAGE: ghcr.io/${{ github.repository }}
DOCKERHUB_IMAGE: ${{ github.repository }}
DOCKERHUB_IMAGE: lawebcapsule/d9
DOCKERHUB_IMAGE_OLD: lawebcapsule/directus9

jobs:
create-release:
Expand Down Expand Up @@ -66,6 +67,7 @@ jobs:
with:
images: |
${{ env.DOCKERHUB_IMAGE }}
${{ env.DOCKERHUB_IMAGE_OLD }}
${{ env.GHCR_IMAGE }}
tags: |
type=semver,pattern={{version}}
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN corepack enable && corepack prepare
COPY pnpm-lock.yaml .
RUN pnpm fetch
COPY . .
ENV CI=true
RUN pnpm install --recursive --offline --frozen-lockfile

RUN : \
Expand Down
3 changes: 2 additions & 1 deletion directus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"./package.json": "./package.json"
},
"bin": {
"directus": "cli.js"
"directus": "cli.js",
"d9": "cli.js"
},
"dependencies": {
"@wbce-d9/api": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ export default defineConfig({
title: 'd9 Docs',
description: 'd9 — Open Data Platform. An Instant App & API for your SQL Database.',
ignoreDeadLinks: true,
appearance: "dark",
vite: {
plugins: [markdownVariablesPlugin()],
},
markdown: {
theme: 'material-theme-palenight',
theme: { light: 'github-light', dark: 'material-theme-palenight' },
toc: {
level: [2],
},
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const URLS = {
GITHUB_COMMUNITY: 'https://github.com/LaWebcapsule/directus9/discussions',
LOCALES: 'https://locales.directus.io',
NPM: 'https://www.npmjs.com/package/@wbce-d9/directus9',
DOCKER_HUB: 'https://github.com/LaWebcapsule/directus9/pkgs/container/directus9',
DOCKER_HUB: 'https://hub.docker.com/r/lawebcapsule/d9',
};

export const EMAILS = {
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/codebase-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readTime: 3 min read

## Monorepo

The primary d9 repository is located at [`directus/directus`]({{GITHUB_URL}}) and
The primary d9 repository is located at [`lawebcapsule/d9`]({{GITHUB_URL}}) and
houses the Admin App (Vue.js 3 w/ Composition API), API (Node.js), API Specification (OpenAPI), and other smaller
packages used internally. d9 follows a monorepo design similar to React or Babel — this page will outline our
monorepo's design and structure.
Expand Down
31 changes: 27 additions & 4 deletions docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readTime: 7 min read

## 1. Install & Start d9

The fastest way to get started is with Docker:
### With Docker (fastest way)

```bash
docker run -d \
Expand All @@ -24,13 +24,36 @@ docker run -d \
-e ADMIN_PASSWORD=your-password \
-e DB_CLIENT=sqlite3 \
-e DB_FILENAME=/directus/database/data.db \
ghcr.io/lawebcapsule/directus9:latest
lawebcapsule/d9:latest
```

Or with npm:
Once running, open `http://localhost:8055` in your browser and log in with the admin credentials you set above.

### With npm

Install d9 as an npm package:

```bash
npm init
npm install @wbce-d9/directus9
```

Create a `.env` file at the root of your directory with the following content:

```
KEY=some-random-key
SECRET=another-random-key
DB_CLIENT=sqlite3
DB_FILENAME=./data.db
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=your-password
```

Then bootstrap and start the server:

```bash
npm init @wbce-d9/directus-project@latest
npx directus bootstrap
npx directus start
```

Once running, open `http://localhost:8055` in your browser and log in with the admin credentials you set above.
Expand Down
18 changes: 9 additions & 9 deletions docs/self-hosted/docker-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ problems. If you can't or don't want to use Docker, we also publish an

:::

d9 is published to [Docker Hub]({{DOCKER_HUB_URL}}) under `directus/directus`. To use the
d9 is published to [Docker Hub]({{DOCKER_HUB_URL}}) under `lawebcapsule/d9`. To use the
latest d9 image from Docker Hub, run:

```bash
Expand All @@ -22,16 +22,16 @@ docker run \
-p 8055:8055 \
-e KEY=255d861b-5ea1-5996-9aa3-922530ec40b1 \
-e SECRET=6116487b-cda1-52c2-b5b5-c8022c45e263 \
directus/directus
lawebcapsule/d9
```

### Installing Specific Versions

To stick to a more specific version of d9 you can use one of the following tags:

- Full version, e.g. `9.0.0`
- Minor releases, e.g. `9.0`
- Major releases, e.g. `9`
- Full version, e.g. `12.0.1`
- Minor releases, e.g. `12.0`
- Major releases, e.g. `12`

To use a specific version of d9, run:

Expand All @@ -41,7 +41,7 @@ docker run \
-p 8055:8055 \
-e KEY=255d861b-5ea1-5996-9aa3-922530ec40b1 \
-e SECRET=6116487b-cda1-52c2-b5b5-c8022c45e263 \
directus/directus:9.0.0
lawebcapsule/d9:12.0.1
```

### Configure Admin User
Expand Down Expand Up @@ -97,7 +97,7 @@ services:

directus:
container_name: directus
image: directus/directus:latest
image: lawebcapsule/d9:latest
ports:
- 8055:8055
volumes:
Expand Down Expand Up @@ -146,8 +146,8 @@ If you are not using the `latest` tag for the d9 image you need to adjust your `
increment the tag version number, e.g.:

```diff
- image: directus/directus:9.0.0-rc.101
+ image: directus/directus:9.0.0
- image: lawebcapsule/d9:9.0.0-rc.101
+ image: lawebcapsule/d9:9.0.0
```

You can then issue the following two commands (from your docker-compose root):
Expand Down
2 changes: 1 addition & 1 deletion docs/self-hosted/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ like `KEY`, `SECRET`, `ADMIN_PASSWORD`, _etc._
version: '3'
services:
directus:
image: directus/directus:latest
image: lawebcapsule/d9:latest
ports:
- 8055:8055
volumes:
Expand Down
Loading