This is an automated email from the ASF dual-hosted git repository. msciabarra pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git
commit f14390e9d9c41a583bde41d91ec8e4d3e1cf7de1 Author: Michele Sciabarra <[email protected]> AuthorDate: Fri Jul 12 10:40:42 2024 +0200 0.1-dev.2407121006 --- README.md | 34 ++++++++++++++++++++++++++++++++++ Taskfile.yml | 8 ++++++++ 2 files changed, 42 insertions(+) diff --git a/README.md b/README.md index 81160d5..cabe30b 100644 --- a/README.md +++ b/README.md @@ -1 +1,35 @@ # Apache OpenServerless Operator + +In this readme there are informations for developer, please refer to the [website](https://openserverless.apache.org) for more informations. + + +## Prerequisites + +1. Please setup and use a development VM [as described here](https://github.com/apache/openserverless) + +2. With VSCode, access to the development VM, open the workspace `openserverless/openserverless.code-orkspace` and then open a terminal with `operator` subproject e enabling the nix enviroment with direnv (the vm provides those). + +3. Create a fork of `githbub.com/apache/openserverless-operator` + +4. Copy .env.dist in .env and put your github username in it + +5. Since the build requires you push your sources in your repo, you need the credentials to access it. The fastest way is to [create a personal token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) + +6. Now setup a remote to access your repo and set it as your default upstream branch. + +``` +git remote add fork https://<GITHUB_USERNAME>:<GITHUB_TOKEN>@github.com/<GITHUB_USERNAME>/openserverless-operator +git branch -u https://github.com/<GITHUB_USERNAME>/openserverless-operator +``` + +That's it. Now you can use `task build` to build the image + +## How to build and use an operator image + +Ensure you have satified the prerequisites. + +Note you need write access to a github repository repository. + +The task build will commit and push all your changes and then build the operator from the public sources in your local k3s. + + diff --git a/Taskfile.yml b/Taskfile.yml index e082a4d..cbdf1fb 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -17,8 +17,16 @@ tasks: - env PAGER= git tag install-registry: + cmds: - helm repo add twuni https://helm.twun.io - helm install docker-registry twuni/docker-registry --namespace default + status: + - kubectl -n default get po -l app=docker-registry + + tag-commit-push: + - task tag + - git commit -m "{{.TAG}}" -a + - git push build: env:
