Skip to content

Commit

Permalink
Migrate LDA to ODA
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzvonimir committed Nov 8, 2024
1 parent 45d5494 commit 0296434
Show file tree
Hide file tree
Showing 30 changed files with 139 additions and 183 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
COMPOSE_PROJECT_NAME=lda
COMPOSE_PROJECT_NAME=oda
32 changes: 16 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ jobs:
- name: Build Binary for Linux
run: |
make build GOARCH=amd64
tar -czvf "lda-linux-amd64.tar.gz" "lda"
tar -czvf "oda-linux-amd64.tar.gz" "oda"
make build GOARCH=arm64
tar -czvf "lda-linux-arm64.tar.gz" "lda"
tar -czvf "oda-linux-arm64.tar.gz" "oda"
- uses: actions/upload-artifact@v4
with:
name: lda-linux-amd64.tar.gz
path: lda-linux-amd64.tar.gz
name: oda-linux-amd64.tar.gz
path: oda-linux-amd64.tar.gz

- uses: actions/upload-artifact@v4
with:
name: lda-linux-arm64.tar.gz
path: lda-linux-arm64.tar.gz
name: oda-linux-arm64.tar.gz
path: oda-linux-arm64.tar.gz

build-macos:
runs-on: macos-latest
Expand All @@ -58,19 +58,19 @@ jobs:
- name: Build Binary for macOS
run: |
make build GOARCH=amd64
tar -czvf "lda-darwin-amd64.tar.gz" "lda"
tar -czvf "oda-darwin-amd64.tar.gz" "oda"
make build GOARCH=arm64
tar -czvf "lda-darwin-arm64.tar.gz" "lda"
tar -czvf "oda-darwin-arm64.tar.gz" "oda"
- uses: actions/upload-artifact@v4
with:
name: lda-darwin-amd64.tar.gz
path: lda-darwin-amd64.tar.gz
name: oda-darwin-amd64.tar.gz
path: oda-darwin-amd64.tar.gz

- uses: actions/upload-artifact@v4
with:
name: lda-darwin-arm64.tar.gz
path: lda-darwin-arm64.tar.gz
name: oda-darwin-arm64.tar.gz
path: oda-darwin-arm64.tar.gz

create-release:
needs: [build-linux, build-macos]
Expand All @@ -87,9 +87,9 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: |
artifacts/lda-darwin-arm64.tar.gz/lda-darwin-arm64.tar.gz
artifacts/lda-darwin-amd64.tar.gz/lda-darwin-amd64.tar.gz
artifacts/lda-linux-amd64.tar.gz/lda-linux-amd64.tar.gz
artifacts/lda-linux-arm64.tar.gz/lda-linux-arm64.tar.gz
artifacts/oda-darwin-arm64.tar.gz/oda-darwin-arm64.tar.gz
artifacts/oda-darwin-amd64.tar.gz/oda-darwin-amd64.tar.gz
artifacts/oda-linux-amd64.tar.gz/oda-linux-amd64.tar.gz
artifacts/oda-linux-arm64.tar.gz/oda-linux-arm64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
app.ini
config.toml
docs
lda*
oda*
.vscode
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

All notable changes to the LDA project will be documented in this file.
All notable changes to the ODA project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Contributing to LDA Project
Contributing to ODA Project
===========================

We welcome contributions and are thrilled you're considering contributing to the LDA project. This document outlines the contribution process and how you can report issues or help improve the code.
We welcome contributions and are thrilled you're considering contributing to the ODA project. This document outlines the contribution process and how you can report issues or help improve the code.

Issues
------
Expand All @@ -19,4 +19,4 @@ Pull Requests
* **Feature Proposals**: For substantial changes or new features, we recommend opening a discussion first, either through an issue, GitHub discussions, or direct communication. This allows for community input and guidance before significant effort is undertaken.
* **Documentation Updates**: If your changes necessitate updates to the documentation, please include those in your PR.

Thank you for your interest in contributing to the LDA project. Your efforts help make this project better for everyone.
Thank you for your interest in contributing to the ODA project. Your efforts help make this project better for everyone.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

WORKDIR /app

COPY --from=builder /src/lda ./
COPY --from=builder /src/oda ./

ENTRYPOINT ["/lda"]
ENTRYPOINT ["/oda"]
2 changes: 1 addition & 1 deletion ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@

## Versions

- **LDA Version:** ...
- **ODA Version:** ...
- **Operating System:** ...
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) The lda Authors
Copyright (c) The oda Authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ CHANGES := $(shell test -n "$$(git status --porcelain)" && echo '+CHANGES' || tr

PROTO_LOCATION := $(shell find proto -iname "proto" -exec echo "-I="{} \;)

PACKAGE = lda
TARGET = lda
PACKAGE = oda
TARGET = oda

VERSION=$(shell git describe --tags --abbrev=0 || echo "x.x.x")
COMMIT=$(shell git rev-parse --short HEAD)
Expand All @@ -17,7 +17,7 @@ BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
UNAME := $(shell uname | tr A-Z a-z )

# docker registry prefix:
DOCKER_REGISTRY := registry.gitlab.codilas.com/codilas/devzero/lda
DOCKER_REGISTRY := registry.gitlab.codilas.com/codilas/devzero/oda

# Setup the -ldflags option for go build here, interpolate the variable values
LDFLAGS = -s -w -X config.Version=${VERSION} -X config.Commit=${COMMIT}${CHANGES} -X config.Branch=${BRANCH}
Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
![License](https://img.shields.io/github/license/devzero-inc/local-developer-analytics)
![Version](https://img.shields.io/github/v/tag/devzero-inc/local-developer-analytics)

# LDA
# ODA

The **LDA** CLI is local developer analytics tool. It provides:
The **ODA** CLI is local developer analytics tool. It provides:

- Tracking commands executed in user shell
- Tracking processes running on users computer
Expand All @@ -17,20 +17,20 @@ The **LDA** CLI is local developer analytics tool. It provides:

### Homebrew

You can install `lda` using [Homebrew][brew] (macOS or Linux):
You can install `oda` using [Homebrew][brew] (macOS or Linux):

```sh
brew install <>
```

### wget

You can install `lda` using `wget`:
You can install `oda` using `wget`:

```sh
wget https://github.com/devzero-inc/local-developer-analytics/releases/download/<version>/lda-<os>-<arch>.zip
unzip lda-<os>-<arch>.zip
mv lda /usr/local/bin
wget https://github.com/devzero-inc/local-developer-analytics/releases/download/<version>/oda-<os>-<arch>.zip
unzip oda-<os>-<arch>.zip
mv oda /usr/local/bin
```

### Other methods
Expand All @@ -47,23 +47,23 @@ Install from source:

## Install & Usage

LDA help interface provides summaries for commands and flags:
ODA help interface provides summaries for commands and flags:

```sh
lda --help
oda --help
```

After binary has been compiled we can install the service with the following commands:

* `lda install` => This will install the daemon, configure base directory, and inject configuration into the shell
* `lda start` => This will start the daemon
* `lda stop` => This will stop the daemon
* `lda uninstall` => This will uninstall the LDA and remove all configuration
* `lda serve` => This will serve the local dashbaord with data overview
* `oda install` => This will install the daemon, configure base directory, and inject configuration into the shell
* `oda start` => This will start the daemon
* `oda stop` => This will stop the daemon
* `oda uninstall` => This will uninstall the ODA and remove all configuration
* `oda serve` => This will serve the local dashbaord with data overview

## Community

For updates on the LDA CLI, [follow this repo on GitHub][repo].
For updates on the ODA CLI, [follow this repo on GitHub][repo].

For information on contributing to this project, please see the [contributing guidelines](CONTRIBUTING.md).

Expand Down
Loading

0 comments on commit 0296434

Please sign in to comment.