schemaVersion: 2.2.0 metadata: name: BotDiscord language: rust version: 1.0.0 projects: - name: template git: remotes: origin: git@git.weebo.fr:sandbox/BotDiscord.git variables: DB_PASSWORD: "bot_password_azertdsq" DB_USER: "bot_root" components: - name: tools container: image: harbor.weebo.fr/batleforc/che-rust:latest memoryLimit: 10Gi mountSources: true endpoints: - name: 5437-http targetPort: 5437 exposure: public protocol: https env: - name: RUST_ENV value: "dev-che" - name: "PORT" value: "5437" - name: DB_USER value: "{{DB_USER}}" - name: DB_PASSWORD value: "{{DB_PASSWORD}}" - name: surrealdb container: image: surrealdb/surrealdb:latest memoryLimit: 2Gi args: - "start" endpoints: - name: surrealdb targetPort: 8000 env: - name: SURREAL_AUTH value: "true" - name: SURREAL_USER value: "{{DB_USER}}" - name: SURREAL_PASS value: "{{DB_PASSWORD}}" - name: SURREAL_PATH value: "file:/appdata/bot.db" volumeMounts: - name: db-volume path: /appdata - name: db-volume volume: size: 2Gi commands: - id: build exec: component: tools workingDir: ${PROJECT_SOURCE} commandLine: cargo build group: kind: build isDefault: true - id: run exec: component: tools workingDir: ${PROJECT_SOURCE} commandLine: cargo run group: kind: run isDefault: true