mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
Add jre for make open-api
This commit is contained in:
parent
974953e371
commit
63fc137a3f
@ -15,7 +15,8 @@
|
||||
"bluebrown.yamlfmt",
|
||||
"vkrishna04.cspell-sync",
|
||||
"vitest.explorer",
|
||||
"ms-playwright.playwright"
|
||||
"ms-playwright.playwright",
|
||||
"ms-azuretools.vscode-docker"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -85,16 +85,19 @@ After you've configured or reviewed the environment variables as mentioned above
|
||||
|
||||
By default, the devcontainer will automatically perform a few tasks whenever it starts.
|
||||
|
||||
1) Runs `postCreate.sh` - this bash script will adjust permissions to the `node` user that the devcontainer runs as. It will also run `npm i` and `npm run build` in all of the packages: `open-api/typescript-sdk`, `web`, and `server`.
|
||||
2. VSCode will autorun the `Immich Server and Web` task defined in `tasks.json`. This task depends on `Immich Web Server (Vite)` and `Immich API Server (Nest)`, which will both be started automatically.
|
||||
3. VSCode will automatically forward the web ports, and the debug ports from each process. The first time the web server is started, a browser will automatically be opened on the `/` URL of the server (both in local and cloud environments)
|
||||
1. Runs `postCreate.sh` - this bash script will adjust permissions to the `node` user that the devcontainer runs as. It will also run `npm i` and `npm run build` in all of the packages: `open-api/typescript-sdk`, `web`, and `server`.
|
||||
|
||||
2) VSCode will autorun the `Immich Server and Web` task defined in `tasks.json`. This task depends on `Immich Web Server (Vite)` and `Immich API Server (Nest)`, which will both be started automatically.
|
||||
3) VSCode will automatically forward the web ports, and the debug ports from each process. The first time the web server is started, a browser will automatically be opened on the `/` URL of the server (both in local and cloud environments)
|
||||
|
||||
The `Immich API Server (Nest)` task runs the "API server", watching and compiling chnages in the `/server` folder.
|
||||
|
||||
The `Immich Web Server (Vite)` task runs the "Web server", watching and compiling chnages in the `/web` folder. The web server will automatically proxy the upstream `/api` server in this development.
|
||||
|
||||
These two tasks combined replace the command
|
||||
|
||||
```
|
||||
make dev
|
||||
```
|
||||
|
||||
from the non devcontainer developer workflow.
|
@ -18,7 +18,10 @@ ENTRYPOINT ["tini", "--", "/bin/sh"]
|
||||
|
||||
FROM dev AS dev-container
|
||||
|
||||
RUN apt-get install inetutils-ping sudo -y
|
||||
RUN apt-get update && \
|
||||
apt-get install inetutils-ping openjdk-11-jre-headless \
|
||||
vim nano \
|
||||
-y --no-install-recommends --fix-missing
|
||||
RUN usermod -aG sudo node
|
||||
RUN echo "node ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
RUN mkdir -p /workspaces/immich
|
||||
|
Loading…
x
Reference in New Issue
Block a user