Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Tweaks

Manav Rathic05bbf5fd303
diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml
index 49b0fd396a..d051a986d6 100644
--- a/.github/workflows/web-lint.yml
+++ b/.github/workflows/web-lint.yml
@@ -39,6 +39,8 @@ jobs:
- run: yarn lint
+ - run: yarn test:run
+
- name: Audit dependencies
run: |
yarn audit --level critical || exit_code=$?
diff --git a/mobile/apps/photos/pubspec.lock b/mobile/apps/photos/pubspec.lock
index 3ffd42f3f4..502e007866 100644
--- a/mobile/apps/photos/pubspec.lock
+++ b/mobile/apps/photos/pubspec.lock
@@ -616,17 +616,17 @@ packages:
relative: true
source: path
version: "0.0.1"
- ente_qr_ui:
+ ente_photos_rust:
dependency: "direct main"
description:
- path: "../../packages/qr"
+ path: rust_builder
relative: true
source: path
version: "0.0.1"
- ente_photos_rust:
+ ente_qr_ui:
dependency: "direct main"
description:
- path: rust_builder
+ path: "../../packages/qr"
relative: true
source: path
version: "0.0.1"
diff --git a/rust/README.md b/rust/README.md
index 07bccbad95..7d4b44404e 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -126,7 +126,7 @@ cargo build # build
cargo test # test
```
-**ente-wasm (web/packages/ente-wasm/):**
+**ente-wasm (web/packages/wasm/):**
```sh
yarn install # installs wasm-pack
diff --git a/server/config/compose.yaml b/server/config/compose.yaml
index 064c1adb34..b90cbba6b9 100644
--- a/server/config/compose.yaml
+++ b/server/config/compose.yaml
@@ -62,7 +62,8 @@ services:
ente-web:
build:
- context: ../../web
+ context: ../..
+ dockerfile: web/Dockerfile
ports:
- 3000:3000
- 3001:3001
diff --git a/web/docs/docker.md b/web/docs/docker.md
index a9a28ffc37..b4517f813e 100644
--- a/web/docs/docker.md
+++ b/web/docs/docker.md
@@ -10,6 +10,8 @@ These images expose web apps on 5 ports:
- `3002` - Albums
- `3003` - Auth
- `3004` - Cast
+- `3005` - Share
+- `3006` - Embed
For example, for selectively exposing only the photos web app on your port 8000,
you could:
@@ -37,3 +39,11 @@ configure your Docker image to connect to it:
```sh
docker run -it --rm -e ENTE_API_ORIGIN=https://api.example.org ghcr.io/ente-io/web
```
+
+### Dockerfile
+
+If you're manually building the Docker image using `web/Dockerfile` instead of using prebuilt `ghcr.io/ente-io/web` image, remember to run the build from the repo root since the context requires both the `web` and `rust` folders.
+
+```sh
+docker build -f web/Dockerfile .
+```
diff --git a/web/package.json b/web/package.json
index 2880801895..2a9697c21f 100644
--- a/web/package.json
+++ b/web/package.json
@@ -26,7 +26,9 @@
"dev:photos": "yarn build:wasm && yarn workspace photos next dev -p 3000",
"dev:share": "yarn build:wasm && yarn workspace share next dev -p 3005",
"lint": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --check --log-level warn .\" \"yarn workspaces run eslint\" \"yarn workspaces run tsc\"",
- "lint-fix": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --write --log-level warn .\" \"yarn workspaces run eslint --fix\" \"yarn workspaces run tsc\""
+ "lint-fix": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --write --log-level warn .\" \"yarn workspaces run eslint --fix\" \"yarn workspaces run tsc\"",
+ "test": "yarn workspace ente-wasm test",
+ "test:run": "yarn workspace ente-wasm test run"
},
"resolutions": {
"@types/react": "^19.2.2",