Update devcontainer and build instructions

This commit is contained in:
Austin 2023-03-17 18:29:24 +00:00 committed by pixelrazor
parent 07523219d1
commit 54da305d96
3 changed files with 8 additions and 14 deletions

View File

@ -13,12 +13,9 @@ RUN groupadd --gid $USER_GID $USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME && chmod 0440 /etc/sudoers.d/$USERNAME
RUN apt update && \ RUN apt update && \
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ apt install -y --no-install-recommends libssl-dev musl-dev make perl curl gzip
apt update && \
apt install -y --no-install-recommends nodejs libssl-dev musl-dev make perl curl
RUN RUSTFLAGS=-Ctarget-feature=-crt-static cargo install wasm-pack \ RUN RUSTFLAGS=-Ctarget-feature=-crt-static cargo install wasm-pack \
&& npm install -g rollup \
&& rustup target add wasm32-unknown-unknown && rustup target add wasm32-unknown-unknown
USER $USERNAME USER $USERNAME

View File

@ -1,5 +1,8 @@
{ {
"name": "LLDAP dev", "name": "LLDAP dev",
"build": { "dockerfile": "Dockerfile" }, "build": { "dockerfile": "Dockerfile" },
"forwardPorts": [3890, 17170] "forwardPorts": [
3890,
17170
]
} }

View File

@ -144,8 +144,7 @@ See https://github.com/Evantage-WS/lldap-kubernetes for a LLDAP deployment for K
To compile the project, you'll need: To compile the project, you'll need:
- nodejs 16: [nodesource nodejs installation guide](https://github.com/nodesource/distributions) - curl and gzip: `sudo apt install curl gzip`
- curl: `sudo apt install curl`
- Rust/Cargo: [rustup.rs](https://rustup.rs/) - Rust/Cargo: [rustup.rs](https://rustup.rs/)
Then you can compile the server (and the migration tool if you want): Then you can compile the server (and the migration tool if you want):
@ -157,13 +156,8 @@ cargo build --release -p lldap -p migration-tool
The resulting binaries will be in `./target/release/`. Alternatively, you can The resulting binaries will be in `./target/release/`. Alternatively, you can
just run `cargo run -- run` to run the server. just run `cargo run -- run` to run the server.
To bring up the server, you'll need to compile the frontend. In addition to To bring up the server, you'll need to compile the frontend. You can build the
cargo, you'll need: frontend files with `./app/build.sh` (you'll need to run
- WASM-pack: `cargo install wasm-pack`
- rollup.js: `npm install rollup`
Then you can build the frontend files with `./app/build.sh` (you'll need to run
this after every front-end change to update the WASM package served). this after every front-end change to update the WASM package served).
The default config is in `src/infra/configuration.rs`, but you can override it The default config is in `src/infra/configuration.rs`, but you can override it