Skip to content

Commit b5186d7

Browse files
authored
Merge pull request #266 from kubero-dev/release/v2.0.0
Release/v2.0.0
2 parents f60f62e + 1dc0127 commit b5186d7

File tree

172 files changed

+27547
-40017
lines changed

Some content is hidden

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

172 files changed

+27547
-40017
lines changed

.github/workflows/docker-prerelease.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@ jobs:
3535
- name: Checkout repository
3636
uses: actions/checkout@v4
3737

38-
- name: build
39-
run: |
40-
yarn install
41-
yarn build
42-
cd client
43-
npm install
44-
npm run build
45-
46-
- name: Set version
47-
id: version
48-
run: |
49-
echo ${GITHUB_REF#refs/tags/v} > dist/VERSION
50-
5138
# Install the cosign tool except on PR
5239
# https://github.com/sigstore/cosign-installer
5340
- name: Install cosign
@@ -92,6 +79,7 @@ jobs:
9279
context: .
9380
push: true
9481
tags: ${{ steps.kubero-meta.outputs.tags }}
82+
build-args: VERSION=${{ inputs.version }}
9583
platforms: linux/amd64
9684
labels: ${{ steps.kubero-meta.outputs.labels }}
9785

.github/workflows/docker-release.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,6 @@ jobs:
3939
- name: Checkout repository
4040
uses: actions/checkout@v3
4141

42-
- name: build
43-
run: |
44-
yarn install
45-
yarn build
46-
cd client
47-
npm install
48-
npm run build
49-
50-
- name: Set version
51-
id: version
52-
run: |
53-
echo ${GITHUB_REF#refs/tags/v} > dist/VERSION
54-
5542
# Install the cosign tool except on PR
5643
# https://github.com/sigstore/cosign-installer
5744
- name: Install cosign
@@ -94,9 +81,10 @@ jobs:
9481
# https://github.com/docker/build-push-action
9582
- name: Build and push Docker image
9683
id: kubero-build-and-push
97-
uses: docker/build-push-action@v3
84+
uses: docker/build-push-action@v5
9885
with:
9986
context: .
87+
build-args: VERSION=${GITHUB_REF#refs/tags/v}
10088
push: ${{ github.event_name != 'pull_request' }}
10189
tags: ${{ steps.kubero-meta.outputs.tags }}
10290
platforms: linux/amd64,linux/arm64

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ example-*.json
1313
*.log
1414
.dockerdata
1515

16-
secrets.yaml
16+
secrets.yaml
17+
18+
db

Dockerfile

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,37 @@
1-
FROM node:18-alpine
1+
FROM node:21-alpine AS build
2+
ENV NODE_ENV=development
3+
4+
WORKDIR /build
5+
6+
COPY server ./server
7+
RUN cd server && \
8+
yarn install && \
9+
npm run build && \
10+
yarn swaggergen && \
11+
cd ..
12+
COPY client ./client
13+
RUN cd client && \
14+
yarn install && \
15+
yarn build && \
16+
cd ..
17+
18+
FROM build AS release
19+
ARG VERSION=unknown
20+
21+
LABEL maintainer='www.kubero.dev'
22+
LABEL version=$VERSION
23+
224
ENV NODE_ENV=production
325

4-
WORKDIR /app
26+
WORKDIR /app/
27+
28+
COPY --from=build /build/server/dist /app/server
29+
COPY --from=build /build/server/package.json /app/server/package.json
30+
COPY --from=build /build/server/node_modules /app/server/node_modules
31+
COPY --from=build /build/server/swagger.json /app/swagger.json
532

6-
COPY dist ./server
7-
COPY package.json ./server/package.json
8-
COPY node_modules ./server/node_modules
9-
COPY client/dist ./client/dist
10-
COPY swagger.json ./swagger.json
1133

34+
RUN echo -n $VERSION > /app/server/VERSION
1235

1336
WORKDIR /app/server
1437

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ https://github.com/kubero-dev/buildpacks
8282
| <img src="client/public/img/addons/MongoDB.png" width="30px" style="vertical-align: middle; margin: 10px"> | Percona MongoDB Cluster | [Percona](https://artifacthub.io/packages/olm/community-operators/mongodb-operator) | |
8383
| <img src="client/public/img/addons/postgresql.png" width="30px" style="vertical-align: middle; margin: 10px"> | Crunchy Postgres Cluster | [Crunchy Data](https://artifacthub.io/packages/olm/community-operators/postgresql) | |
8484
| <img src="client/public/img/addons/Redis.png" width="30px" style="vertical-align: middle; margin: 10px"> | Redis Cluster | [Opstree](https://artifacthub.io/packages/olm/community-operators/redis-operator) | |
85+
| <img src="client/public/img/addons/CockroachDB.svg" width="30px" style="vertical-align: middle; margin: 10px"> | CockroachDB| [CockroachDB](https://artifacthub.io/packages/olm/community-operators/cockroachdb) | |
8586

8687

8788
\* Ships with the Kubero Operator

SECURITY.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
| Version | Supported |
66
| ------- | ------------------ |
7-
| 1.X.X | :white_check_mark: |
8-
| 0.X.X | :white_check_mark: |
7+
| 2.X.X | :white_check_mark: |
8+
| 1.X.X | security patches |
9+
| 0.X.X | |
910

1011
## Reporting a Vulnerability
1112

client/.browserslistrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
> 1%
2+
last 2 versions
3+
not dead
4+
not ie 11

client/.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

client/.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
extends: [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript',
10+
],
11+
rules: {
12+
'vue/multi-word-component-names': 'off',
13+
},
14+
}

client/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
node_modules
33
/dist
44

5-
65
# local env files
76
.env.local
87
.env.*.local

0 commit comments

Comments
 (0)