blob: e153fe1acfa4d8e3dc210a46d2d286365285af96 [file] [log] [blame] [view]
Giorgi Lekveishvili7e14b9a2023-11-23 13:04:50 +04001STATUS: draft
2
3# PCloud Developer Tools
4This document describes developer tools currently used to develop PCloud, and how they must be changed. One of the first commercial products built on top of the PCloud will be suite of applications needed for small and medium development teams to build their own products. PCloud must be developed using the same suite of tools, so that we can dogfood the commercial product and find problems early.
5
6## Background
7PCloud is the private cloud infrastructure with broad set of possibilities. To increase adoption number of first-party products, solving real problems of the real users, must be developed on top of it. Which later can be comercialized to create self-sufficient company.
8
9## Goals
101. Come up with the set of tools needed by dev teams, PCloud team being the first user.
112. These tools must help users during development and testing phases.
12
13## Non-goals
14While PCloud platform can host any kind of cloud services, goal of this document is not to dictate how developers will productionize their products developed using PCloud. That is the valid use case by itself, but must be brainstormed and designed separately.
15
16## Tools
17PCloud is set of services mainly written in [Go](https://go.dev), packaged as container images and deployed on [Kubernetes](https://kubernetes.io).
18
19### Currently used
201. [Git](https://git-scm.com) based monorepo
212. [Github](https://github.com) to host the code publicly
222. [Makefile](https://www.gnu.org/software/make/manual/make.html)-s to build binaries
233. [Podman](https://podman.io) to package containers
244. [Docker Hub](https://hub.docker.com) to publish container images
255. [k3s](https://k3s.io) to run K8s (Kubernetes) infrastructure
265. [Helm](https://helm.sh) charts to deploy them on top of K8s
27
28PCloud does not currently have unit and integration tests, and accordingly there is no CI/CD (Continuous Integration and Continuous Deployment) system used.
29
30### Tools that can help
311. [Gerrit](https://www.gerritcodereview.com) and [Gitiles](https://gerrit.googlesource.com/gitiles/) to host code and do code reviews
322. [Bazel](https://bazel.build) as a distributed and shared build system. Bazel is multi-lingual and can:
33 1. Build binaries and container images
34 2. Run tests
35 3. Store and re-use built artifacts on shared storage
363. Ticket/bug management - TBD
374. TODO: CI/CD: consider Fluxcd, Argocd, ...
385. TODO: Email service - maddy?
396. [Matrix](https://matrix.org) and [Element](https://matrix.org/ecosystem/clients/element/) for real-time communication
407. [Vaultwarden](https://github.com/dani-garcia/vaultwarden) as OSS implementation of the [Bitwarden](https://bitwarden.com) server, to store and share company wide credentials
418. [KubeVirt](https://kubevirt.io) to run VMs (Virtual Machines) on top of the PCloud. This will be needed to create on-domand workstations for development or manual testing. And to run workers of different services such as Bazel for example. We will most likely have to build the UI (User Interface) for it.