Skip to content

Commit 5e1f5fd

Browse files
refactoring: removed app and ui
1 parent cf6b06a commit 5e1f5fd

File tree

1,523 files changed

+7618
-48322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,523 files changed

+7618
-48322
lines changed

core/.dockerignore .dockerignore

File renamed without changes.

.github/workflows/core-ci.yml .github/workflows/ci.yml

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: core-ci
1+
name: compage-ci
22

33
on:
44
push:
@@ -25,25 +25,20 @@ jobs:
2525
uses: actions/setup-go@v4
2626
with:
2727
go-version: '1.20'
28-
cache-dependency-path: '**/core/go.sum'
28+
cache-dependency-path: '**/go.sum'
2929
- name: Build
3030
run: |
31-
cd core
3231
go build -v ./...
33-
cd ..
3432
- name: golangci-lint
3533
run: |
3634
go install github.com/golangci/golangci-lint/cmd/[email protected]
37-
cd core
3835
golangci-lint run
39-
cd ..
4036
- name: Install Protoc
4137
uses: arduino/setup-protoc@v2
4238
with:
4339
version: "23.x"
4440
- name: Test
4541
run: |
46-
cd core
4742
sudo apt install dos2unix -y
4843
# install openapi-generator-cli
4944
mkdir -p $HOME/ogc
@@ -54,11 +49,10 @@ jobs:
5449
export GOBIN=$GOPATH/bin
5550
export PATH=$PATH:$GOPATH:$GOBIN:$HOME/ogc
5651
go test -v ./... -race -coverprofile=coverage.out -coverpkg=./... -covermode=atomic
57-
cd ..
5852
- name: Upload coverage to Codecov
5953
uses: codecov/codecov-action@v3
6054
with:
61-
files: ./core/coverage.out
55+
files: ./coverage.out
6256
flags: core
6357
token: ${{secrets.CODECOV_TOKEN}}
6458
- name: Run Trivy vulnerability scanner in repo mode
@@ -97,7 +91,7 @@ jobs:
9791
id: metadata
9892
uses: docker/metadata-action@v4
9993
with:
100-
images: ${{ env.REGISTRY }}/${{ github.repository }}/core
94+
images: ${{ env.REGISTRY }}/${{ github.repository }}
10195
tags: |
10296
type=semver,pattern={{version}}
10397
type=semver,pattern={{major}}.{{minor}}
@@ -114,16 +108,16 @@ jobs:
114108
uses: docker/build-push-action@v4
115109
with:
116110
# relative path to the place where source code with Dockerfile is located
117-
context: ./core
111+
context: .
118112
# Note: tags have to be all lower-case
119-
tags: ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ github.run_id }}
113+
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }}
120114
# ${{ steps.metadata.outputs.tags }}
121115
labels: ${{ steps.metadata.outputs.labels }}
122116
# build on feature branches, push only on the main branch
123117
push: true
124118
# - uses: goodwithtech/dockle-action@main
125119
# with:
126-
# image: ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ github.run_id }}
120+
# image: ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }}
127121
# format: 'list'
128122
# exit-code: '1'
129123
# exit-level: 'warn'
@@ -132,11 +126,11 @@ jobs:
132126
uses: sigstore/cosign-installer@main
133127
- name: Sign the images
134128
run: |
135-
cosign sign -y ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ github.run_id }}
129+
cosign sign -y ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }}
136130
env:
137131
COSIGN_EXPERIMENTAL: 1
138132
- name: Verify the pushed tags
139-
run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ github.run_id }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/core-ci.yml@refs/heads/main --certificate-oidc-issuer https://token.actions.githubusercontent.com
133+
run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/ci.yml@refs/heads/main --certificate-oidc-issuer https://token.actions.githubusercontent.com
140134
env:
141135
COSIGN_EXPERIMENTAL: 1
142136
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph

.github/workflows/core-release.yml .github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: core-release
1+
name: compage-release
22
on:
33
push:
44
tags:
@@ -37,11 +37,11 @@ jobs:
3737
uses: docker/build-push-action@v4
3838
with:
3939
push: true
40-
context: ./core
41-
tags: ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ env.RELEASE_VERSION }}
40+
context: .
41+
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.RELEASE_VERSION }}
4242
# - uses: goodwithtech/dockle-action@main
4343
# with:
44-
# image: ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ github.run_id }}
44+
# image: ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.run_id }}
4545
# format: 'list'
4646
# exit-code: '1'
4747
# exit-level: 'warn'
@@ -50,11 +50,11 @@ jobs:
5050
uses: sigstore/cosign-installer@main
5151
- name: Sign the images
5252
run: |
53-
cosign sign -y ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ env.RELEASE_VERSION }}
53+
cosign sign -y ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.RELEASE_VERSION }}
5454
env:
5555
COSIGN_EXPERIMENTAL: 1
5656
- name: Verify the pushed tags
57-
run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}/core:${{ env.RELEASE_VERSION }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/core-release.yml@refs/tags/${{ env.RELEASE_VERSION }} --certificate-oidc-issuer https://token.actions.githubusercontent.com
57+
run: cosign verify ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.RELEASE_VERSION }} --certificate-identity ${{ env.GH_URL }}/${{ github.repository }}/.github/workflows/release.yml@refs/tags/${{ env.RELEASE_VERSION }} --certificate-oidc-issuer https://token.actions.githubusercontent.com
5858
env:
5959
COSIGN_EXPERIMENTAL: 1
6060
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph

.github/workflows/ui-ci.yml

-58
This file was deleted.

.gitignore

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
/node_modules/
22
/app/build/
33
/app/node_modules/
4-
/core/.devspace/
5-
/core/.idea/
4+
/.devspace/
5+
/.idea/
66
/.devspace/logs/default.log
7-
/app/scratch/
8-
/core/core
7+
/scratch/
98
/.idea
10-
/core/coverage.out
11-
/app/coverage
9+
/coverage.out
10+
/coverage
1211
openapitools.json
13-
/core/openapitools.json
14-
/ui/.env.kind.cluster
15-
/app/compage-app.sqlite3
12+
/openapitools.json
1613
/deploy/build/
17-
/app/secure-connect-compage.zip
18-
/charts/compage/secure-connect-compage.zip
14+
compage

.gitmodules

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
[submodule "core/templates/compage-template-go"]
2-
path = core/templates/compage-template-go
1+
[submodule "templates/compage-template-go"]
2+
path = templates/compage-template-go
33
url = https://github.com/intelops/compage-template-go.git
44
branch = template-v8
5-
[submodule "core/templates/compage-template-java"]
6-
path = core/templates/compage-template-java
5+
[submodule "templates/compage-template-java"]
6+
path = templates/compage-template-java
77
url = https://github.com/intelops/compage-template-java.git
88
branch = template-v1
9-
[submodule "core/templates/compage-template-javascript"]
10-
path = core/templates/compage-template-javascript
9+
[submodule "templates/compage-template-javascript"]
10+
path = templates/compage-template-javascript
1111
url = https://github.com/intelops/compage-template-javascript.git
1212
branch = template-v1
13-
[submodule "core/templates/compage-template-python"]
14-
path = core/templates/compage-template-python
13+
[submodule "templates/compage-template-python"]
14+
path = templates/compage-template-python
1515
url = https://github.com/intelops/compage-template-python.git
1616
branch = template-v1
17-
[submodule "core/templates/compage-template-ruby"]
18-
path = core/templates/compage-template-ruby
17+
[submodule "templates/compage-template-ruby"]
18+
path = templates/compage-template-ruby
1919
url = https://github.com/intelops/compage-template-ruby.git
2020
branch = template-v1
21-
[submodule "core/templates/compage-template-rust"]
22-
path = core/templates/compage-template-rust
21+
[submodule "templates/compage-template-rust"]
22+
path = templates/compage-template-rust
2323
url = https://github.com/intelops/compage-template-rust.git
2424
branch = template-v1
25-
[submodule "core/templates/compage-template-typescript"]
26-
path = core/templates/compage-template-typescript
25+
[submodule "templates/compage-template-typescript"]
26+
path = templates/compage-template-typescript
2727
url = https://github.com/intelops/compage-template-typescript.git
2828
branch = template-v1

core/.golangci.yml .golangci.yml

File renamed without changes.

CONTRIBUTING.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ To contribute code.
3232
5. Clone the project: `git clone https://github.com/[YOUR_USERNAME]/compage && cd compage`
3333
6. kindly refer compage.md file to know the structure of the project.
3434
7. The Compage has three servers (subprojects) which need to be started to run the compage on local
35-
- core (Golang), navigate to core directory and follow its [core README](./core/README.md)
36-
- app (Node.js), navigate to app directory and follow its [app README](./app/README.md)
37-
- ui (ReactJs), navigate to ui directory and follow its [ui README](./ui/README.md)
35+
- (Golang), navigate to core directory and follow its [core README](./core/README.md)
3836
8. Commit changes *([Please refer the commit message conventions](https://www.conventionalcommits.org/en/v1.0.0/))*
3937
9. Push commits.
4038
10. Open pull request.
@@ -49,7 +47,7 @@ To contribute code.
4947
```shell
5048
export PATH="$PATH:$(go env GOPATH)/bin"
5149
```
52-
- Download buf binary from this link—https://github.com/bufbuild/buf/releases and fire the command from core directory of compage.
50+
- Download buf binary from this link—https://github.com/bufbuild/buf/releases and fire the command from root directory of compage.
5351
```shell
5452
buf generate
5553
```

core/Dockerfile Dockerfile

File renamed without changes.

0 commit comments

Comments
 (0)