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 components: - name: tools container: image: harbor.weebo.fr/batleforc/che-rust:0.1.13 memoryLimit: 8Gi command: ["tail"] args: ["-f", "/dev/null"] mountSources: true endpoints: - name: 5437-http targetPort: 5437 exposure: public protocol: https env: - name: RUST_ENV value: "dev-che" - name: "PORT" value: "5437" - name: postgres container: image: postgres:15 memoryLimit: 2Gi endpoints: - name: postgres targetPort: 5432 env: - name: POSTGRES_USER value: "postgres" - name: POSTGRES_PASSWORD value: "postgres" - name: POSTGRES_DB value: "postgres" - name: PGDATA value: /tmp/pgdata 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