Drone is a Container-Native, Continuous Delivery Platform
Go to file
Johannes Batzill ecb6276fa8 Add EOF to RPC File Chunk & Cleanups (#29)
Adds an EOF flag to data chunks to avoid using []byte("EOF") as end (due to potential false positives).
Furthermore, a few cleanups are done:
- Add TODOs for initial git changes
- Add missing file headers
- Fix typo for license (was licence)
- Fix make wire target
2022-10-12 10:21:53 -07:00
.githooks [MAINT] initial config for ci linter (#17) 2022-09-19 18:13:18 +02:00
.github/workflows gh token secret for ci pipeline 2022-09-22 19:44:43 +02:00
.vscode Initial commit 2022-08-09 12:37:37 -07:00
cli Add EOF to RPC File Chunk & Cleanups (#29) 2022-10-12 10:21:53 -07:00
client [Harness] Adding JWT/PAT/SAT Support, Harness Clients, Inline User/ServiceAccount Creation, harness Build flag, ... (#22) 2022-09-30 16:22:12 -07:00
contrib Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
docker [MAINT] initial work on local dev env (#13) 2022-09-12 19:09:04 +02:00
internal Add EOF to RPC File Chunk & Cleanups (#29) 2022-10-12 10:21:53 -07:00
mocks [Harness] Adding JWT/PAT/SAT Support, Harness Clients, Inline User/ServiceAccount Creation, harness Build flag, ... (#22) 2022-09-30 16:22:12 -07:00
resources Add EOF to RPC File Chunk & Cleanups (#29) 2022-10-12 10:21:53 -07:00
scripts [MAINT] initial work on local dev env (#13) 2022-09-12 19:09:04 +02:00
types [Embedded] Harness Router, Inline Space Creation, Bootstrap, Harness/Admin User Setup (#28) 2022-10-10 21:32:14 -07:00
version [MAINT] initial config for ci linter (#17) 2022-09-19 18:13:18 +02:00
web Initial skeleton for Repository Resource View flow (#30) 2022-10-11 23:54:10 -07:00
.gitignore initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
.golangci.yml [MAINT] initial config for ci linter (#17) 2022-09-19 18:13:18 +02:00
.harness.env [Embedded] Harness Router, Inline Space Creation, Bootstrap, Harness/Admin User Setup (#28) 2022-10-10 21:32:14 -07:00
.local.env [Embedded] Harness Router, Inline Space Creation, Bootstrap, Harness/Admin User Setup (#28) 2022-10-10 21:32:14 -07:00
CHANGELOG.md Initial commit 2022-08-09 12:37:37 -07:00
go.mod initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
go.sum initial work on create repository (#27) 2022-10-11 17:48:04 +02:00
LICENSE.md Initial commit 2022-08-09 12:37:37 -07:00
main.go Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
Makefile Add EOF to RPC File Chunk & Cleanups (#29) 2022-10-12 10:21:53 -07:00
README.md Update README.md 2022-10-03 12:17:43 -07:00
Taskfile.yml Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
wait-for-gitness.sh [MAINT] initial work on local dev env (#13) 2022-09-12 19:09:04 +02:00
yarn.lock Initial commit 2022-08-09 12:37:37 -07:00

CI pipeline CodeQL

Pre-Requisites

Install the latest stable version of Node and Go version 1.19 or higher, and then install the below Go programs. Ensure the GOPATH bin directory is added to your PATH.

$ make all

Build

Build the user interface:

$ pushd web
$ yarn install
$ yarn run build
$ popd

Build the server and command line tools:

$ go generate ./...
$ go build -o release/gitness

Test

Execute the unit tests:

$ make test

Run

This project supports all operating systems and architectures supported by Go. This means you can build and run the system on your machine; docker containers are not required for local development and testing.

Start the server at localhost:3000

$ release/gitness server

User Interface

This project includes a simple user interface for interacting with the system. When you run the application, you can access the user interface by navigating to http://localhost:3000 in your browser.

Swagger

This project includes a swagger specification. When you run the application, you can access the swagger specification by navigating to http://localhost:3000/swagger in your browser.

Command Line

This project includes simple command line tools for interacting with the system. Please remember that you must start the server before you can execute commands.

Register a new user:

$ release/gitness register

Login to the application:

$ release/gitness login

Logout from the application:

$ release/gitness logout

View your account details:

$ release/gitness account

Generate a personal access token:

$ release/gitness token

Create a pipeline:

$ release/gitness pipeline create <name>

List pipelines:

$ release/gitness pipeline ls

Debug and output http responses from the server:

$ DEBUG=true release/gitness pipeline ls

View all commands:

$ release/gitness --help