Skip to content

Commit

Permalink
Merge v1.5 to Main (#371)
Browse files Browse the repository at this point in the history
* Image version 1.4.1

Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>

* Bump actions/setup-go from 4.0.1 to 4.1.0 (#296)

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v4.0.1...v4.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 (#297)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/setup-node from 3.7.0 to 3.8.0 (#298)

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.7.0 to 3.8.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v3.7.0...v3.8.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/checkout from 3.5.3 to 3.6.0 (#300)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3.5.3...v3.6.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/setup-node from 3.8.0 to 3.8.1 (#299)

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v3.8.0...v3.8.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Introduce Docker files for running Tornjak on Openshift (#304)

* UBI migration for frontend

Signed-off-by: Andrew Block <andy.block@gmail.com>

* Updated backend for UBI based container

Signed-off-by: Andrew Block <andy.block@gmail.com>

* Updated permissions on frontend container

Signed-off-by: Andrew Block <andy.block@gmail.com>

---------

Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Co-authored-by: Andrew Block <andy.block@gmail.com>

* Bump actions/checkout from 3.6.0 to 4.0.0 (#301)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3.6.0...v4.0.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump docker/login-action from 2.2.0 to 3.0.0 (#302)

Bumps [docker/login-action](https://github.com/docker/login-action) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@v2.2.0...v3.0.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/checkout from 4.0.0 to 4.1.0 (#305)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Added workflows for ubi image (#306)

* Added workflows for ubi image

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Set Dockerfiles for ubi image

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

---------

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* workflow hotfix

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Fixed image labels for UBI image (#308)

* Added labels

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Update Dockerfile.backend-container.ubi

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>

---------

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>

* Bump golang.org/x/net from 0.9.0 to 0.17.0 (#309)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.9.0 to 0.17.0.
- [Commits](golang/net@v0.9.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add UBI description (#310)

* Added UBI description

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Added Alpine to image description

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Update Dockerfile.backend-container

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>

* Update Dockerfile.backend-container.ubi

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>

* Update Dockerfile.frontend-container

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>

* Update Dockerfile.frontend-container.ubi

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>

---------

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>

* Change version to v1.4.2

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Bump actions/checkout from 4.1.0 to 4.1.1 (#312)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @babel/traverse from 7.22.5 to 7.23.2 in /tornjak-frontend (#313)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/setup-node from 3.8.1 to 4.0.0 (#314)

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.8.1 to 4.0.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v3.8.1...v4.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump google.golang.org/grpc from 1.55.0 to 1.56.3 (#316)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.55.0 to 1.56.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.55.0...v1.56.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add support for nextjs (#317)

Signed-off-by: Mohammed Abdi <mohammma@usc.edu>
Co-authored-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* Reorganize Root Directory (#315)

* Moved golang files up a directory

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Remove run_tornjak script

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Adjusted Gofiles to reflect new structure

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Moved docker-compose file to examples folder

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Reverting accidentally added changes

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Moved Keycloak example

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* moved backend script

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* renamed tornjak frontend folder

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* adjusted lcoation of frontend Dockerfiles

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* re-add Dockerfile for frontend

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* add accidentally ignored packages

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* fixed rebase error

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

---------

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Bump github.com/go-jose/go-jose/v3 from 3.0.0 to 3.0.1 (#320)

Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/v3/CHANGELOG.md)
- [Commits](go-jose/go-jose@v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update Quickstart Readme (#318)

* Updating some doc and add  troubleshoot

Signed-off-by: Kidus Teferra <kidus.teferra@ibm.com>

* Updating quick start docs

Signed-off-by: Kidus Teferra <kidus.teferra@ibm.com>

* Troubleshoot section update

Signed-off-by: Kidus Teferra <kidus.teferra@ibm.com>

---------

Signed-off-by: Kidus Teferra <54513597+kidus0214@users.noreply.github.com>
Co-authored-by: Kidus Teferra <kidus.teferra@ibm.com>

* Bump @adobe/css-tools from 4.3.1 to 4.3.2 in /frontend (#321)

Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/setup-go from 4.1.0 to 5.0.0 (#322)

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v4.1.0...v5.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix type for upgraded Axios library (#323)

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Bump axios from 0.21.4 to 1.6.0 in /frontend (#319)

Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.21.4...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update version.txt

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Update Push Action Branch to v1.5 (#324)

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Bump actions/setup-node from 4.0.0 to 4.0.1 (#325)

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v4.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#326)

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](golang/crypto@v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump follow-redirects from 1.15.3 to 1.15.4 in /frontend (#330)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.3...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fixed carbon react version change bug on cluster management page (#332)

Signed-off-by: Mohammed Abdi <mohammma@usc.edu>
Co-authored-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* added cluster delete functionality under cluster edit tab (#333)

Signed-off-by: Mohammed Abdi <mohammma@usc.edu>
Co-authored-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* Update tutorial (#334)

* update port comment (#295)

Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>

* Removed unsupported architectures in tutorial

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* nit fix

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

---------

Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>

* Bump actions/setup-node from 4.0.1 to 4.0.2 (#336)

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v4.0.1...v4.0.2)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump golangci/golangci-lint-action from 3.7.0 to 3.7.1 (#337)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.7.0...v3.7.1)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add mkdir for file not found error (#329)

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Bump golangci/golangci-lint-action from 3.7.1 to 4.0.0 (#338)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.1 to 4.0.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.7.1...v4.0.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* updated version (#350)

Signed-off-by: Benak961 <91481367+Benak961@users.noreply.github.com>

* Bump ip from 1.1.8 to 1.1.9 in /frontend (#351)

Bumps [ip](https://github.com/indutny/node-ip) from 1.1.8 to 1.1.9.
- [Commits](indutny/node-ip@v1.1.8...v1.1.9)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix the Minikube link in /docs/quickstart/README.md (#352)

Signed-off-by: Karen Jude <kjude79@gmail.com>

* Remove spire dependency (#348)

* refactored

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Removed run dependency backend

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

---------

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Add support for Multi arch image (Frontend) (#347)

* multi arch image support arm64 added including ci build

Signed-off-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* update qemu and buildx to v3

Signed-off-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* add to label

Signed-off-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* update label format

Signed-off-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

---------

Signed-off-by: Mohammed Abdi <mohammma@usc.edu>
Co-authored-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* Bump docker/setup-buildx-action from 2 to 3 (#355)

Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](docker/setup-buildx-action@v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump docker/setup-qemu-action from 1 to 3 (#354)

Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](docker/setup-qemu-action@v1...v3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix multi-arch frontend build (#353)

* Added --load flag to multi arch build

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Use --push flag instead of --load

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Add back old build and create new target for multiarch build

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* modified release frontend image target

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* removed erroneous tab

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

---------

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Release Multiarch backend (#358)

* Multiarch build

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* multi-arch backend images

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* added support for ubi

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

---------

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Add make vendor to backend build (#359)

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Bump github.com/go-jose/go-jose/v3 from 3.0.1 to 3.0.3 (#360)

Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.1 to 3.0.3.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/v3.0.3/CHANGELOG.md)
- [Commits](go-jose/go-jose@v3.0.1...v3.0.3)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update frontend ubi image (#362)

* update ubi image

Signed-off-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* install full ubi dependencies in build stage

Signed-off-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* downgrade nodejs to 18 for consistency

Signed-off-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

---------

Signed-off-by: Mohammed Abdi <mohammma@usc.edu>
Co-authored-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>

* Bump actions/checkout from 4.1.1 to 4.1.2 (#365)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4.1.1...v4.1.2)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump google.golang.org/protobuf from 1.30.0 to 1.33.0 (#366)

Bumps google.golang.org/protobuf from 1.30.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump docker/login-action from 3.0.0 to 3.1.0 (#367)

Bumps [docker/login-action](https://github.com/docker/login-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump follow-redirects from 1.15.5 to 1.15.6 in /frontend (#369)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.5...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* modified error code for returned errors from SPIRE (#368)

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

---------

Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
Signed-off-by: Mohammed Abdi <mohammma@usc.edu>
Signed-off-by: Kidus Teferra <54513597+kidus0214@users.noreply.github.com>
Signed-off-by: Benak961 <91481367+Benak961@users.noreply.github.com>
Signed-off-by: Karen Jude <kjude79@gmail.com>
Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Block <andy.block@gmail.com>
Co-authored-by: Mohammed Abdi <mohammma@usc.edu>
Co-authored-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>
Co-authored-by: Kidus Teferra <54513597+kidus0214@users.noreply.github.com>
Co-authored-by: Kidus Teferra <kidus.teferra@ibm.com>
Co-authored-by: Benak961 <91481367+Benak961@users.noreply.github.com>
Co-authored-by: Karen Jude <kjude79@gmail.com>
  • Loading branch information
10 people committed Mar 21, 2024
1 parent 8ebb14c commit befb837
Show file tree
Hide file tree
Showing 133 changed files with 3,998 additions and 5,046 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,31 @@ jobs:
EOF
- name: Check out repository code
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4.1.2

- name: Install Golang
uses: actions/setup-go@v4.0.1
uses: actions/setup-go@v5.0.0
with:
go-version-file: go.mod
check-latest: true
cache: true

- uses: actions/setup-node@v3.7.0
- uses: actions/setup-node@v4.0.2
with:
node-version: '18'

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Download modules
run: go mod download

- name: golangci-lint
uses: golangci/golangci-lint-action@v3.6.0
uses: golangci/golangci-lint-action@v4.0.0
with:
version: v1.53
args: --timeout 7m
Expand Down
41 changes: 25 additions & 16 deletions .github/workflows/master-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- main
- v1.4
- v1.5
jobs:
tornjak-build:
runs-on: ubuntu-latest
Expand All @@ -19,10 +19,10 @@ jobs:
EOF
- name: Check out repository code
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4.1.2

- name: Install Golang
uses: actions/setup-go@v4.0.1
uses: actions/setup-go@v5.0.0
with:
go-version-file: go.mod
check-latest: true
Expand All @@ -31,21 +31,28 @@ jobs:
- name: Download modules
run: go mod download

- uses: actions/setup-node@v3.7.0
- uses: actions/setup-node@v4.0.2
with:
node-version: '18'

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Download modules
run: go mod download

- name: golangci-lint
uses: golangci/golangci-lint-action@v3.6.0
uses: golangci/golangci-lint-action@v4.0.0
with:
version: v1.53
args: --timeout 7m

- name: Log in to GHCR.io
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -58,18 +65,20 @@ jobs:
- name: Set release repo
run: echo "REPO=ghcr.io/${{ github.repository_owner }}" >> $GITHUB_ENV

# build and push images tagged with GITHUB_SHA, version, and latest
- name: Build and push tornjak backend image
run: make release-tornjak-backend

- name: Build and push tornjak frontend image
run: make release-tornjak-frontend
# build and push images tagged with GITHUB_SHA, version
- name: Build and push tornjak images
run: make release-images

- name: Build and push tornjak image (frontend+backend)
run: make release-tornjak
# build and push UBI images
- name: Add ubi prefix
run: echo "IMAGE_TAG_PREFIX=ubi-" >> $GITHUB_ENV
- name: Set frontend Dockerfile
run: echo "DOCKERFILE_FRONTEND=frontend/Dockerfile.frontend-container.ubi" >> $GITHUB_ENV
- name: Set backend Dockerfile
run: echo "DOCKERFILE_BACKEND=Dockerfile.backend-container.ubi" >> $GITHUB_ENV

- name: Build and push tornjak manager image
run: make release-tornjak-manager
- name: Build and push UBI images
run: make release-images

- name: Print job result
run: |
Expand Down
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
vendor

# dependencies
tornjak-frontend/node_modules
tornjak-frontend/.pnp
tornjak-frontend/.pnp.js
frontend/node_modules
frontend/.pnp
frontend/.pnp.js

# testing
tornjak-frontend/coverage
frontend/coverage

# production
tornjak-frontend/build
frontend/build

# misc
.DS_Store
Expand Down
46 changes: 41 additions & 5 deletions Dockerfile.backend-container
Original file line number Diff line number Diff line change
@@ -1,19 +1,55 @@
FROM alpine
# xx is helper for cross-compilation
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.3.0 AS xx

FROM --platform=$BUILDPLATFORM golang:1.20-alpine3.18 AS builder
RUN apk add build-base
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
COPY --link --from=xx / /
ARG TARGETOS
ARG TARGETARCH
ENV CGO_ENABLED=1

RUN apk add clang lld
RUN make vendor
RUN xx-go --wrap
RUN xx-apk add musl-dev gcc
RUN if [ "$TARGETARCH" = "arm64" ]; then CC=aarch64-alpine-linux-musl; fi && \
go build --tags 'sqlite_json' -mod=vendor -ldflags '-s -w -linkmode external -extldflags "-static"' -o bin/tornjak-backend ./cmd/agent/main.go

FROM alpine AS runtime
RUN mkdir -p /opt/spire

WORKDIR /opt/spire
ENTRYPOINT ["/opt/spire/run_backend.sh"]

# Add init
COPY run_backend.sh run_backend.sh
COPY bin/tornjak-backend tornjak-backend
COPY scripts/run_backend.sh run_backend.sh
COPY --from=builder /usr/src/myapp/bin/tornjak-backend tornjak-backend

# add a version link to the image description
ARG version
ARG github_sha
LABEL org.opencontainers.image.description="Tornjak backend ($version): https://github.com/spiffe/tornjak/releases/tag/$version" \
LABEL org.opencontainers.image.description="Tornjak backend ($version) Alpine based image: https://github.com/spiffe/tornjak/releases/tag/$version" \
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"

# Additional labels
LABEL architecture="amd64" \
build-date="" \
description="Tornjak Backend" \
io.k8s.description="Tornjak Backend" \
io.k8s.display-name="tornjak-backend" \
maintainer="" \
name="spiffe/tornjak-backend" \
release="$version" \
summary="Tornjak backend image" \
url="" \
vcs-ref="" \
vcs-type="" \
vendor="" \
version="$version"

# create env. variables with the build details
ENV VERSION=$version
ENV GITHUB_SHA=$github_sha
54 changes: 54 additions & 0 deletions Dockerfile.backend-container.ubi
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# xx is helper for cross-compilation
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.3.0 AS xx

FROM --platform=$BUILDPLATFORM golang:1.20-alpine3.18 AS builder
RUN apk add build-base
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
COPY --link --from=xx / /
ARG TARGETOS
ARG TARGETARCH
ENV CGO_ENABLED=1

RUN apk add clang lld
RUN make vendor
RUN xx-go --wrap
RUN xx-apk add musl-dev gcc
RUN if [ "$TARGETARCH" = "arm64" ]; then CC=aarch64-alpine-linux-musl; fi && \
go build --tags 'sqlite_json' -mod=vendor -ldflags '-s -w -linkmode external -extldflags "-static"' -o bin/tornjak-backend ./cmd/agent/main.go

FROM registry.access.redhat.com/ubi8-micro:latest AS runtime
RUN mkdir -p /opt/spire

WORKDIR /opt/spire
ENTRYPOINT ["/opt/spire/run_backend.sh"]

# Add init
COPY scripts/run_backend.sh run_backend.sh
COPY --from=builder /usr/src/myapp/bin/tornjak-backend tornjak-backend

# add a version link to the image description
ARG version
ARG github_sha
LABEL org.opencontainers.image.description="Tornjak backend ($version) UBI based image: https://github.com/spiffe/tornjak/releases/tag/$version" \
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
# replace UBI labels
LABEL architecture="amd64" \
build-date="" \
description="Tornjak Backend" \
io.k8s.description="Tornjak Backend" \
io.k8s.display-name="tornjak-backend" \
maintainer="" \
name="spiffe/tornjak-backend" \
release="$version" \
summary="Tornjak backend UBI image" \
url="" \
vcs-ref="" \
vcs-type="" \
vendor="" \
version="$version"

# create env. variables with the build details
ENV VERSION=$version
ENV GITHUB_SHA=$github_sha
35 changes: 0 additions & 35 deletions Dockerfile.tornjak-container

This file was deleted.

Loading

0 comments on commit befb837

Please sign in to comment.