added .gitignore
This commit is contained in:
parent
1b1cd2e064
commit
05745ecde6
7 changed files with 139 additions and 25 deletions
11
.gitignore
vendored
11
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
/target
|
/target
|
||||||
/generated/**
|
|
||||||
!/generated/.gitkeep
|
/generated/**
|
||||||
/dist
|
!/generated/.gitkeep
|
||||||
/Cargo.lock
|
/dist
|
||||||
|
/Cargo.lock
|
20
Cargo.toml
20
Cargo.toml
|
@ -4,20 +4,14 @@ version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
opt-level = "z"
|
|
||||||
lto = "fat"
|
|
||||||
debug = 0
|
|
||||||
strip = true
|
|
||||||
codegen-units = 1
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
console_error_panic_hook = "0.1.7"
|
console_error_panic_hook = "0.1.7"
|
||||||
indoc = "2.0.1"
|
indoc = "2.0.1"
|
||||||
leptonic = { git = "https://github.com/lpotthast/leptonic", default-features = false, features = ["csr"] }
|
leptonic = { git = "https://github.com/lpotthast/leptonic", features = ["csr"] }
|
||||||
leptos = { version = "0.5.0-rc1", features = ["csr"] }
|
leptos = { version = "0.5.0-rc3", features = ["csr"] }
|
||||||
leptos-use = { git = "https://github.com/Synphonyte/leptos-use" }
|
leptos-use = { git = "https://github.com/Synphonyte/leptos-use" }
|
||||||
leptos_icons = { version = "0.0.16-beta", features = [
|
leptos_icons = { version = "0.1.0", features = [
|
||||||
"BsGithub",
|
"BsGithub",
|
||||||
"BsSearch",
|
"BsSearch",
|
||||||
"BsList",
|
"BsList",
|
||||||
|
@ -35,8 +29,8 @@ leptos_icons = { version = "0.0.16-beta", features = [
|
||||||
"BsBell",
|
"BsBell",
|
||||||
"BsPower",
|
"BsPower",
|
||||||
] }
|
] }
|
||||||
leptos_meta = { version = "0.5.0-rc1", features = ["csr"] }
|
leptos_meta = { version = "0.5.0-rc3", features = ["csr"] }
|
||||||
leptos_router = { version = "0.5.0-rc1", features = ["csr"] }
|
leptos_router = { version = "0.5.0-rc2", features = ["csr"] }
|
||||||
ordered-float = "3.9.0"
|
ordered-float = "3.9.0"
|
||||||
serde = "1.0.171"
|
serde = "1.0.171"
|
||||||
serde-wasm-bindgen = "0.5.0"
|
serde-wasm-bindgen = "0.5.0"
|
||||||
|
@ -53,5 +47,5 @@ wasm-bindgen = "0.2.87"
|
||||||
leptonic-theme = "0.2.0"
|
leptonic-theme = "0.2.0"
|
||||||
leptos-tiptap-build = "0.2.3"
|
leptos-tiptap-build = "0.2.3"
|
||||||
|
|
||||||
[workspace]
|
# [workspace]
|
||||||
members = ["src-tauri"]
|
# members = ["src-tauri"]
|
114
extra/lxc.txt
Normal file
114
extra/lxc.txt
Normal file
|
@ -0,0 +1,114 @@
|
||||||
|
multipass launch --name ubuntuvm --memory 8G --disk 100G 23.04
|
||||||
|
multipass launch -c 2 -m 4g -d 50g -n lxc
|
||||||
|
lxc launch ubuntu-minimal:23.04 c1
|
||||||
|
|
||||||
|
multipass exec ubuntuvm -- sudo ufw allow in on ens3
|
||||||
|
multipass exec ubuntuvm -- sudo ufw allow in on lxdbr0
|
||||||
|
multipass exec ubuntuvm -- sudo ufw enable
|
||||||
|
|
||||||
|
multipass transfer -r primary:/home/ubuntu/images /Users/aok/images
|
||||||
|
multipass transfer -r /Users/aok/images/images ubuntuvm:/home/ubuntu
|
||||||
|
|
||||||
|
multipass info ubuntuvm
|
||||||
|
ping 192.168.64.10
|
||||||
|
lxc remote switch primary
|
||||||
|
lxc remote remove ubuntuvm
|
||||||
|
multipass shell ubuntuvm
|
||||||
|
sudo passwd ubuntu
|
||||||
|
lxd init
|
||||||
|
lxc config set core.trust_password
|
||||||
|
lxc remote add ubuntuvm 192.168.64.10
|
||||||
|
lxc remote switch ubuntuvm
|
||||||
|
lxc config trust add ubuntuvm
|
||||||
|
multipass transfer -r primary:/home/ubuntu/images /Users/aok/images
|
||||||
|
multipass transfer -r /Users/aok/images/images ubuntuvm:/home/ubuntu
|
||||||
|
lxc image import meta-fe114071f31682de89c3a5d7573f50c4c3470ea76dead55ff8e507301a80503e.tar.xz fe114071f31682de89c3a5d7573f50c4c3470ea76dead55ff8e507301a80503e.squashfs --alias ubuntu23.04
|
||||||
|
lxc image ls
|
||||||
|
lxc launch ubuntu23.04 dev
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
|
|
||||||
|
cargo install --git https://github.com/bytebeamio/rumqtt rumqttd
|
||||||
|
or
|
||||||
|
wget https://github.com/bytebeamio/rumqtt/releases/download/rumqttd-0.18.0/rumqttd-0.18.0-linux-gnu
|
||||||
|
chmod +x rumqttd-0.18.0-linux-gnu
|
||||||
|
/rumqttd-0.18.0-linux-gnu --help
|
||||||
|
mv rumqttd-0.18.0-linux-gnu rumqttd
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/bytebeamio/rumqtt/main/rumqttd/rumqttd.toml > rumqttd.toml
|
||||||
|
rumqttd --config rumqttd.toml
|
||||||
|
|
||||||
|
|
||||||
|
curl -sSf https://install.surrealdb.com | sh
|
||||||
|
|
||||||
|
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
|
||||||
|
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
||||||
|
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install caddy
|
||||||
|
|
||||||
|
multipass exec ubuntuvm -- lxc list
|
||||||
|
curl http://CONTAINER_IP_ADDRESS
|
||||||
|
|
||||||
|
|
||||||
|
cargo tauri android init
|
||||||
|
caro tauri build
|
||||||
|
caro tauri dev
|
||||||
|
cargo tauri android dev
|
||||||
|
|
||||||
|
cargo watch -x run
|
||||||
|
cargo watch -x "build --all"
|
||||||
|
cargo watch -x "run -p nigig"
|
||||||
|
cargo watch -x "r --no-default-features --bin nigig"
|
||||||
|
cargo r --no-default-features --bin nigig
|
||||||
|
|
||||||
|
cargo tauri android build --split-per-abi --target aarch64
|
||||||
|
cargo tauri android init
|
||||||
|
adb install /home/ubuntu/Projects/rustdev/testalpha/src-tauri/gen/android/app/build/outputs
|
||||||
|
/apk/arm64/release/app-arm64-release.apk
|
||||||
|
|
||||||
|
# Host Commands
|
||||||
|
sudo lxc query /1.0/metrics
|
||||||
|
1. sudo lxc launch ubuntu:23.04 metrics
|
||||||
|
2. sudo lxc exec metrics -- sudo --login --user ubuntu
|
||||||
|
|
||||||
|
#Container Commands
|
||||||
|
3. sudo snap install prometheus
|
||||||
|
4. openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -sha384 -keyout metrics.key -nodes -out metrics.crt -days 3650 -subj "/CN=metrics.local"
|
||||||
|
|
||||||
|
# Host Commands
|
||||||
|
5. sudo lxc file pull metrics/home/ubuntu/metrics.crt - | sudo lxc config trust add --type metrics --name prometheus -
|
||||||
|
sudo lxc file pull metrics/var/snap/prometheus/current/tls/metrics.crt - | sudo lxc config trust add --type metrics --name prometheus -
|
||||||
|
6. sudo lxc config trust list
|
||||||
|
7. cat /var/snap/lxd/common/lxd/server.crt
|
||||||
|
8. sudo lxc config set core.metrics_address :8444
|
||||||
|
sudo lxc config set core.metrics_address ":8444"
|
||||||
|
|
||||||
|
9. ip -4 a
|
||||||
|
|
||||||
|
#Container Commands
|
||||||
|
10. sudo lxc launch ubuntu:23.04 metrics
|
||||||
|
11. nc -v 10.32.7.1 8444
|
||||||
|
12. vi server.crt # paste host result from #7
|
||||||
|
13. ls -lh
|
||||||
|
14. cd /var/snap/prometheus/current
|
||||||
|
15. sudo mkdir tls
|
||||||
|
16. sudo mv /home/ubuntu/metrics.* /home/ubuntu/server.crt tls
|
||||||
|
17. sudo vi prometheus.yml #paste sample from https://documentation.ubuntu.com/lxd/en/latest/metrics/
|
||||||
|
18. hostname && host #results
|
||||||
|
19. sudo snap restart prometheus
|
||||||
|
20. ip -4 a #Ip addr
|
||||||
|
21. 10.32.7.147:9090
|
||||||
|
#https://grafana.com/grafana/download?pg=get&plcmt=selfmanaged-box1-cta1
|
||||||
|
22. sudo apt-get install -y adduser libfontconfig1
|
||||||
|
wget https://dl.grafana.com/oss/release/grafana_10.0.3_amd64.deb
|
||||||
|
sudo dpkg -i grafana_10.0.3_amd64.deb
|
||||||
|
sudo /bin/systemctl daemon-reload
|
||||||
|
sudo /bin/systemctl enable grafana-server
|
||||||
|
sudo /bin/systemctl start grafana-server
|
||||||
|
|
||||||
|
https://grafana.com/grafana/dashboards/19131-lxd/
|
||||||
|
https://grafana.com/grafana/dashboards/6963-lxd-prometheus-container-dashboard/
|
||||||
|
|
||||||
|
|
||||||
|
https://www.scylladb.com/download/?platform=ubuntu-22.04&version=scylla-5.2#open-source
|
||||||
|
|
||||||
|
SCYLLA_ARGS="--log-to-syslog 1 --log-to-stdout 0 --default-log-level info --network-stack posix" --smp 1 --memory=750M --overprovisioned 1
|
3
extra/surreal.txt
Normal file
3
extra/surreal.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
surreal version
|
||||||
|
surreal start --strict --log debug memory
|
||||||
|
surreal start --help
|
|
@ -14,12 +14,14 @@ crate-type = ["staticlib", "cdylib", "rlib"]
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tauri-build = { version = "2.0.0-alpha", features = [] }
|
tauri-build = { version = "2.0.0-alpha.8", features = [] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tauri = { version = "2.0.0-alpha", features = [] }
|
tauri = { version = "2.0.0-alpha.14", features = [] }
|
||||||
tauri-plugin-window = "2.0.0-alpha"
|
# tauri-plugin-window = "2.0.0-alpha.2"
|
||||||
tauri-plugin-shell = "2.0.0-alpha"
|
tauri-plugin-window = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||||
|
# tauri-plugin-shell = "2.0.0-alpha.2"
|
||||||
|
tauri-plugin-shell = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
#[cfg(desktop)]
|
#[cfg(desktop)]
|
||||||
nigiginc_lib::run();
|
book_lib::run();
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,13 +14,13 @@ pub fn PageWelcome() -> impl IntoView {
|
||||||
</H1>
|
</H1>
|
||||||
|
|
||||||
<H2 id="sub-slogan">
|
<H2 id="sub-slogan">
|
||||||
"Build blazingly fast, ergonomic sites with an outstanding developer experience."
|
"Let's Design and Develop that Structure."
|
||||||
//"Elevate Web Development with Unleashed Performance and Ergonomic Design using Leptos!"
|
//"Elevate Web Development with Unleashed Performance and Ergonomic Design using Leptos!"
|
||||||
</H2>
|
</H2>
|
||||||
|
|
||||||
// TODO: Investigae: When using AppRoutes::Doc, browser navigation (back) does nothing...
|
// TODO: Investigae: When using AppRoutes::Doc, browser navigation (back) does nothing...
|
||||||
<LinkButton href=DocRoutes::Overview size=ButtonSize::Big style="text-align: center; font-size: 1.5em; margin: 2em;">
|
<LinkButton href=DocRoutes::Overview size=ButtonSize::Big style="text-align: center; font-size: 1.5em; margin: 2em;">
|
||||||
"Read the docs"
|
"Get a Quote"
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
</Box>
|
</Box>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue