Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage #92

Merged
merged 274 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
ee5934c
🌈 Work in progress
fungiboletus Feb 2, 2023
df87a26
🚚 Rename a method
fungiboletus Feb 2, 2023
459907f
⬆️ Update hasura graphql-engine
fungiboletus Feb 2, 2023
6fa6ee2
🐛 Fix missing file
fungiboletus Feb 2, 2023
76fd7fb
✨ Work in progress
fungiboletus Feb 15, 2023
849e0bf
✨ Work in progress
fungiboletus Feb 15, 2023
b23eeaa
🧹 Little cleaning
fungiboletus Feb 15, 2023
b398933
✨ Work in progress
fungiboletus Feb 20, 2023
40dbe8f
♻️ Refactor
fungiboletus Apr 24, 2023
aa47147
🔥 Little cleaning
fungiboletus Apr 24, 2023
a5a45b6
💩 Connecting timescaledb and prometheus is difficult
fungiboletus Apr 25, 2023
c9ea62d
🫤 Put back postgresql
fungiboletus Apr 25, 2023
b023ee5
🐛 Fix helm diff check
fungiboletus Apr 25, 2023
639a71e
🐛 Add missing dependencie
fungiboletus Apr 25, 2023
b94147f
🐛 Fix docker check
fungiboletus Apr 25, 2023
7512b9e
🏗️ Disable workflows for now
fungiboletus Apr 25, 2023
1ea0c4e
🐛 Add buildx
fungiboletus Apr 25, 2023
93abde4
update
Apr 25, 2023
927ffbd
✨ Add documentation link to install helm diff plugin
fungiboletus May 4, 2023
d3711f6
✨Do not start the kubernetes cluster when it's already started.
fungiboletus May 4, 2023
105216d
Merge branch 'kubernetes-migration-test' of github.com:DataCloud-proj…
fungiboletus May 4, 2023
5e24903
Merge pull request #80 from DataCloud-project/kubernetes-migration-test
aleenathomas May 15, 2023
6d8f11f
🚛♻️ Big refactor
fungiboletus Jun 8, 2023
893134f
🔥 I forgot to remove promscale...
fungiboletus Jun 8, 2023
28fefab
🌈 Kubernetes secrets API is done
fungiboletus Jun 8, 2023
b389b4c
frontend-dev
Jun 13, 2023
1ba6318
Remove lib folders from .gitignore
fungiboletus Jun 13, 2023
9bba110
add lib folder
goranbs Jun 13, 2023
1ed80af
⬆️ YOLO dependencies update
fungiboletus Jun 13, 2023
d85d4c8
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
fungiboletus Jun 13, 2023
e0b9687
🌈 Create Project API with CRDs
fungiboletus Jun 13, 2023
54d0835
update
goranbs Jun 13, 2023
fa8fecc
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
goranbs Jun 13, 2023
871ea54
update
goranbs Jun 14, 2023
3ab20a9
update
goranbs Jun 14, 2023
c7803cd
🎉 The Projects CRUD wonderful code is there
fungiboletus Jun 14, 2023
43f1caf
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
fungiboletus Jun 14, 2023
b9914f9
🌈 Work in progress
fungiboletus Jun 14, 2023
90bbe2b
dry-runs
goranbs Jun 14, 2023
85c42b6
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
goranbs Jun 14, 2023
d0c411b
🎨 Line icons and nice font
fungiboletus Jun 14, 2023
be3f951
🎨 Better buttons
fungiboletus Jun 14, 2023
6510d48
🎨 Stylised checkbox
fungiboletus Jun 14, 2023
05b8669
Fixed routing issue from projects to dry run page
aleenathomas Jun 15, 2023
c35c82d
Fixed clickable row issue in projects page
aleenathomas Jun 15, 2023
a6884ef
goran dec
goranbs Jun 15, 2023
9eb2633
merged
goranbs Jun 15, 2023
1a3caf8
update
goranbs Jun 15, 2023
53a0398
removed faulting autoimported pkg
goranbs Jun 15, 2023
2124639
Sample delete function in dry runs page (temporary)
aleenathomas Jun 15, 2023
ca5c15d
Added create new dry run and styles folder
aleenathomas Jun 16, 2023
a2d596c
Added checkboxes in projects page
aleenathomas Jun 16, 2023
9314857
WIP Added create new project modal and button
aleenathomas Jun 16, 2023
6f870b2
Some corrections/adjustments in UI
aleenathomas Jun 19, 2023
08b0231
Renamed secrets page
aleenathomas Jun 19, 2023
7534f7b
🚀 CRUD
fungiboletus Jun 19, 2023
08e2ae3
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
fungiboletus Jun 19, 2023
e6e2733
🔥 Cleaning dependencies
fungiboletus Jun 19, 2023
bb7a8e9
🌈 Assign existing run to project, and graphs between runs and projects
fungiboletus Jun 19, 2023
e0448ca
🌈 Log feature
fungiboletus Jun 19, 2023
8454ae7
Added keycloak-js
aleenathomas Jun 19, 2023
acfd848
WIP keycloak authentication in frontend
aleenathomas Jun 19, 2023
b599b11
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jun 19, 2023
492f4a5
✨ Work on cadvisor and prometheus
fungiboletus Jun 20, 2023
e6cabcb
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
fungiboletus Jun 20, 2023
78b94d0
⚡️ Significant performances improvement by measuring less !
fungiboletus Jun 20, 2023
26f7814
🔧 Restore workflows
fungiboletus Jun 21, 2023
c9e0ae2
🐳 Cadvisor bridge Dockerfile
fungiboletus Jun 21, 2023
b6e1057
⚡️ Some performance bump
fungiboletus Jun 21, 2023
eedae57
⚡️ Huge performance improvement.
fungiboletus Jun 21, 2023
64c8b1d
📝 CAdvisor readme
fungiboletus Jun 21, 2023
86ca9d2
🔧 Improve workflows
fungiboletus Jun 21, 2023
cf19f92
🔧 Setup ServiceMonitor for cAdvisor, using the bridge
fungiboletus Jun 21, 2023
12cd356
WIP keycloak authentication
aleenathomas Jun 26, 2023
1acdd12
WIP: Adding graphql queries in frontend
aleenathomas Jun 27, 2023
02125ab
WIP adding more graphql queries
aleenathomas Jun 27, 2023
ab4bfb8
WIP adding argo types in frontend
aleenathomas Jun 27, 2023
26b6507
🌈 Prometheus integration
fungiboletus Jun 28, 2023
7a35ca9
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
fungiboletus Jun 28, 2023
545ae6a
🌈 Implement all the prometheus resolvers
fungiboletus Jun 28, 2023
210d3ef
🌈 Download API for artifacts !
fungiboletus Jun 28, 2023
20ced72
🫳🏼🎤 drop the labels
fungiboletus Jun 28, 2023
c3d2994
🌈 Argo WorkflowTemplates
fungiboletus Jun 29, 2023
232d4b9
✨ Support fetching logs for S3
fungiboletus Jun 30, 2023
ab2bdac
🔧 Mark optional dependencies as optional to speed up build
fungiboletus Jun 30, 2023
0df61f4
⬆️ Upgrade from Apollo Server 3 to Apollo Server 4
fungiboletus Jul 3, 2023
dfc4393
⬆️ YOLO update of helm chart dependencies
fungiboletus Jul 3, 2023
40e066c
⎈ Fix helm charts
fungiboletus Jul 3, 2023
3f0bd6c
🌈 Make the source code more solid
fungiboletus Jul 3, 2023
4b1ae95
♻️ Refactor port forwarding for higher scalability
fungiboletus Jul 3, 2023
3394e81
📝 Update on the README
fungiboletus Jul 3, 2023
bdff4cd
🔥 Cleaning
fungiboletus Jul 3, 2023
acf3580
♻️ Reorganisation of the code
fungiboletus Jul 3, 2023
3e5406e
first get allProjectsQuery is working
goranbs Jul 5, 2023
2c3027c
🚀 progress work on project and secrets page
goranbs Jul 6, 2023
f064ff6
fixed await credentialsPromise then List
goranbs Jul 6, 2023
286ee86
work on submit new secret
goranbs Jul 6, 2023
9de410f
reorganized
goranbs Jul 6, 2023
67ebcb0
create and delete credential(s) now working
goranbs Jul 6, 2023
53f3449
attempt autorefresh after modal.close()
goranbs Jul 6, 2023
fcb97ee
Added query get_all_dry_runs
aleenathomas Jul 6, 2023
6dd41a0
WIP: Added list in dry runs page
aleenathomas Jul 6, 2023
9fba970
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 6, 2023
5fe0930
Added workflow template in create project
aleenathomas Jul 6, 2023
4e4b39c
Refresh page on update
aleenathomas Jul 6, 2023
2358da5
projects and secrets table reactive
goranbs Jul 7, 2023
5ded958
comment
goranbs Jul 7, 2023
f6b5826
Displaying dry runs from backend
aleenathomas Jul 7, 2023
91b6e25
WIP: create new dry run modal
aleenathomas Jul 7, 2023
d6b8abe
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 7, 2023
e42ff42
Refresh after deleting projects
aleenathomas Jul 7, 2023
d1cb884
Create new dryrun implemented
aleenathomas Jul 10, 2023
1af34ed
work on visualizations
goranbs Jul 10, 2023
2e7169b
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
goranbs Jul 10, 2023
55f30aa
Delete new dry run added
aleenathomas Jul 10, 2023
6ba04e1
Revert "Delete new dry run added"
aleenathomas Jul 10, 2023
937647f
progress on visualizations
goranbs Jul 10, 2023
ba36221
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 10, 2023
936fb80
Delete dry run added
aleenathomas Jul 10, 2023
97be174
wired bug axes plotted under figure
goranbs Jul 10, 2023
e687a5b
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
goranbs Jul 10, 2023
350bead
get metrics data for dryRun
goranbs Jul 10, 2023
765e153
WIP: Added stop dry run
aleenathomas Jul 10, 2023
f206137
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 10, 2023
965d1d1
Refresh dry runs automatically
aleenathomas Jul 10, 2023
aa914b0
Added dry run counts in projects page
aleenathomas Jul 10, 2023
26215b7
visualizations for CPU Memory Receive Transmit
goranbs Jul 12, 2023
4cde0f2
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
goranbs Jul 12, 2023
617052e
WIP: error handling in frontend
aleenathomas Jul 12, 2023
1997a45
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 12, 2023
a4212e3
ignore empty node data
goranbs Jul 12, 2023
9f0ddef
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
goranbs Jul 12, 2023
9be3441
update on visualizations
goranbs Jul 12, 2023
c7550b2
pwd auto generate or manual
goranbs Jul 13, 2023
738ec11
display workflow as json or yaml
goranbs Jul 13, 2023
68a1b6c
text-size code block
goranbs Jul 13, 2023
1e93903
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 14, 2023
3bc7cfa
Displaying alert on create dry run modal and stop dry run
aleenathomas Jul 14, 2023
73c51b3
Create project with YAML or JSON
aleenathomas Jul 14, 2023
5e38a91
Added js-yaml; run npm i
aleenathomas Jul 14, 2023
739ff3c
progress bar
goranbs Jul 14, 2023
a15d68c
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 14, 2023
fb6fa55
ignore .vite
goranbs Jul 14, 2023
33fcefd
visualizing charts using mermaid and gojs
goranbs Jul 14, 2023
432cb8e
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
goranbs Jul 14, 2023
767373d
Added suspend and resume dry runs
aleenathomas Jul 18, 2023
350e756
Fixed error on refresh in secrets page
aleenathomas Jul 18, 2023
c97b45f
progress mermaid charts
goranbs Jul 18, 2023
d885c80
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
goranbs Jul 18, 2023
d67fed3
Added resource usage graphs in dry run page
aleenathomas Jul 18, 2023
81d370b
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 18, 2023
363a14b
work on mermaid dag
goranbs Jul 19, 2023
f2fe9e8
Added logs in dry run page
aleenathomas Jul 19, 2023
a755ff5
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 19, 2023
74abd09
Fixed undefined.request bug in dag page
aleenathomas Jul 20, 2023
6d11388
Added show workflowtemplate in projects page
aleenathomas Jul 24, 2023
c988736
input areas skeleton styles
goranbs Jul 25, 2023
8b20b94
load workflow template and render diagram
goranbs Jul 25, 2023
60b40f1
justify-center diagram
goranbs Jul 25, 2023
78d8f97
wip get dry run phase results
goranbs Jul 25, 2023
2f65952
assembled workflow and dryrun query into one promise
goranbs Jul 25, 2023
a88714e
displayName of dryRun
goranbs Jul 25, 2023
bc44b40
WIP: adding workflow diagram in resources page
aleenathomas Jul 27, 2023
ab76c98
WIP: added workflow diagram in resources page
aleenathomas Jul 27, 2023
c7cc3e8
Fixed exception on null logs
aleenathomas Jul 28, 2023
abee244
Adding scrollable areas in dry runs
aleenathomas Jul 28, 2023
88b87f4
WIP: added timestamp to human readable format
aleenathomas Jul 28, 2023
7786fe8
Added separate util for graphql api
aleenathomas Jul 28, 2023
046013f
Added dynamic params for dry run page
aleenathomas Jul 28, 2023
b9e4956
Code cleanup frontend
aleenathomas Jul 28, 2023
ce9f0eb
Commented controller out in sonarqube.yaml
aleenathomas Jul 31, 2023
190b6f6
WIP: release
aleenathomas Jul 31, 2023
516c642
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 31, 2023
145485e
moved folder frontend-dev -> frontend
goranbs Jul 31, 2023
5cc1a06
removed frontend/ from .gitignore
goranbs Jul 31, 2023
eac66ee
Updated readme with how to start frontend
aleenathomas Jul 31, 2023
527c2c9
Added alerts on create and delete project
aleenathomas Jul 31, 2023
c21e7d5
WIP: refresh error on resources page
aleenathomas Jul 31, 2023
e7ae91e
Fixed npm run check issues in the frontend
aleenathomas Jul 31, 2023
e750779
Added frontend dockerfile
aleenathomas Jul 31, 2023
fddbb5c
Changed adapter to node
aleenathomas Jul 31, 2023
2e1cde7
Formatting frontend prettier
aleenathomas Jul 31, 2023
650671f
Resolving sonar issue frontend
aleenathomas Jul 31, 2023
a6f1fd4
Update sonarqube.yaml
aleenathomas Jul 31, 2023
d83a12f
Using docker to run frontend
aleenathomas Jul 31, 2023
f13e473
Update sonarqube.yaml
aleenathomas Jul 31, 2023
f174cea
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Jul 31, 2023
5e4c3dc
Fixed Click bug on dry runs page
aleenathomas Aug 2, 2023
17e38ee
Added rename project modal
aleenathomas Aug 2, 2023
d60cb5b
Es lint correction
aleenathomas Aug 2, 2023
2e9d63c
moved mermaid and plotly into components
goranbs Aug 2, 2023
83f0c62
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
goranbs Aug 2, 2023
9763fbf
scrollable tables
goranbs Aug 3, 2023
1bc211c
display title of plot with no data
goranbs Aug 3, 2023
1df69d1
fix checkboxes
goranbs Aug 3, 2023
80b9a05
scrollable table
goranbs Aug 3, 2023
976e0a1
clickable logo + home
goranbs Aug 3, 2023
94d4495
display logs
goranbs Aug 3, 2023
3417cc4
fixed bug when drawing subgraphs
goranbs Aug 4, 2023
a3c737a
diagram has been moved into [resource]
goranbs Aug 4, 2023
ecfc3be
todo: fix request bug(s)
goranbs Aug 4, 2023
df12ace
added description/caption to table - sonarqube bug fix
goranbs Aug 4, 2023
892cff4
beaty fixes
goranbs Aug 4, 2023
979d6b7
beauty fixes
goranbs Aug 4, 2023
172447f
more beauty fixes
goranbs Aug 4, 2023
b70dc8a
cleanup
goranbs Aug 4, 2023
438e41e
changed some colors
goranbs Aug 4, 2023
cacac9a
Fixed table widths, npm check
aleenathomas Aug 8, 2023
040dfd5
WIP: Added sample file manager skeleton
aleenathomas Aug 8, 2023
ceeeb7d
Merge remote-tracking branch 'origin/stage' into stage
fungiboletus Aug 10, 2023
ddfeb22
WIP: Display resource usage for each step on click
aleenathomas Aug 10, 2023
733fe72
Added legend for dry run diagram
aleenathomas Aug 11, 2023
358733b
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Aug 11, 2023
dfd0849
✨ Configurable interval and scrapeTimeout
fungiboletus Aug 11, 2023
bf6ade8
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
fungiboletus Aug 11, 2023
a863489
✨ Sort list of nodes by time and name
fungiboletus Aug 11, 2023
fbeb3d3
🐛 Fix dry run status
fungiboletus Aug 11, 2023
fde60c5
🎨 Makes prettier happy
fungiboletus Aug 11, 2023
786482e
🐛 Support network metrics on POD level
fungiboletus Aug 11, 2023
d84d172
✨ Fetch logs from kubernetes as a failback when they are missing from…
fungiboletus Aug 11, 2023
36afff2
Display run duration
aleenathomas Aug 11, 2023
d9823e3
✨ Create a new status "Suspended" for suspended dry runs
fungiboletus Aug 11, 2023
d4d317c
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
fungiboletus Aug 11, 2023
1bde0f0
✨ Simplify the minio client configuration
fungiboletus Aug 11, 2023
db546c6
🔧 Put the frontend in the helm chart
fungiboletus Aug 11, 2023
0db0d42
🌈 Ansible scripts to install SIM-PIPE on a clean Ubuntu/Debian VM
fungiboletus Aug 11, 2023
ea7a24b
⬆️ YOLO dependencies update
fungiboletus Aug 15, 2023
717cbd8
🤪 Fix install scripts
fungiboletus Aug 15, 2023
4582270
🔧 Tell Github that arm64 is something
fungiboletus Aug 15, 2023
1860937
🔧 Set the pull policy to always during development
fungiboletus Aug 15, 2023
9ffde60
🐛 Fix #104
fungiboletus Aug 15, 2023
760f7e2
Added sftpgo web redirect and network data display
aleenathomas Aug 15, 2023
851f0fe
Displaying max resource usage
aleenathomas Aug 15, 2023
1f78478
Displaying max resource usage
aleenathomas Aug 15, 2023
6e2d690
👷🏽‍♀️ Automatic helm chart release using OCI 0/n
fungiboletus Aug 16, 2023
6f45e74
👷🏽‍♀️ Automatic helm chart release using OCI 1/n
fungiboletus Aug 16, 2023
299680e
👷🏽‍♀️ Automatic helm chart release using OCI 2/n
fungiboletus Aug 16, 2023
eff7b61
✨ Improved installation scripts for Debian
fungiboletus Aug 16, 2023
17a62c7
🔧 Improve use of sudo
fungiboletus Aug 16, 2023
bb06ecc
🔧 Use -E when using sudo
fungiboletus Aug 16, 2023
a026281
Revert "🔧 Use -E when using sudo"
fungiboletus Aug 16, 2023
5d3a77a
Reverted to combined network graph
aleenathomas Aug 17, 2023
3c86620
Merge branch 'stage' of https://github.com/DataCloud-project/SIM-PIPE…
aleenathomas Aug 17, 2023
a321c2c
Added dry run view and per step view
aleenathomas Aug 17, 2023
22d7f87
Displaying logs and empty resource correctly
aleenathomas Aug 17, 2023
c57918a
Display selected step name in resource page
aleenathomas Aug 17, 2023
6470b56
🔧 Improve install script for debian
fungiboletus Aug 18, 2023
a746171
Merge branch 'stage' of github.com:DataCloud-project/SIM-PIPE into stage
fungiboletus Aug 18, 2023
5eef997
Truncate longer step names in diagram and graphs
aleenathomas Aug 18, 2023
4273922
WIP: Sonarqube quality check frontend
aleenathomas Aug 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

17 changes: 0 additions & 17 deletions .env

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/cadvisor-bridge-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Create and publish cadvisor-bridge image

on:
push:
branches:
- main
- dev
pull_request:
paths:
- "cadvisor-bridge/**"

env:
REGISTRY: ghcr.io
CADVISOR_BRIDGE_IMAGE_NAME: datacloud-project/sim-pipe-cadvisor-bridge

jobs:
build-and-push-cadvisor-bridge:
name: Build and push cadvisor-bridge image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for simpipe-cadvisor-bridge main image
id: meta-main
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/datacloud-project/simpipe-cadvisor-bridge

- name: Build and push Docker cadvisor-bridge image
uses: docker/build-push-action@v4
with:
context: ./cadvisor-bridge/
push: true
tags: ${{ steps.meta-main.outputs.tags }}
labels: ${{ steps.meta-main.outputs.labels }}
platforms: linux/arm64,linux/amd64
53 changes: 53 additions & 0 deletions .github/workflows/controller-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Create and publish the docker image for the controller

on:
push:
branches:
- main
- dev
pull_request:
paths:
- "controller/**"

env:
REGISTRY: ghcr.io
CONTROLLER_IMAGE_NAME: datacloud-project/sim-pipe-controller

jobs:
build-and-push-controller-image:
name: Build and push controller image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for controller main image
id: meta-main
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.CONTROLLER_IMAGE_NAME }}

- name: Build and push Docker controller image
uses: docker/build-push-action@v4
with:
context: ./controller/
push: true
tags: ${{ steps.meta-main.outputs.tags }}
labels: ${{ steps.meta-main.outputs.labels }}
platforms: linux/arm64,linux/amd64
106 changes: 0 additions & 106 deletions .github/workflows/docker-images.yaml

This file was deleted.

32 changes: 21 additions & 11 deletions .github/workflows/example-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
branches:
- main
paths:
- 'example/**'
- "examples/fake-file-process/**"
pull_request:
paths:
- 'example/**'
- "examples/fake-file-process/**"

env:
REGISTRY: ghcr.io
Expand All @@ -28,6 +28,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
Expand All @@ -44,12 +50,13 @@ jobs:
type=raw,value=latest

- name: Build and push Docker pre process image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./example/pre-process/
context: ./examples/fake-file-process/pre-process/
push: true
tags: ${{ steps.meta-pre-process.outputs.tags }}
labels: ${{ steps.meta-pre-process.outputs.labels }}
platforms: linux/arm64,linux/amd64

- name: Extract metadata (tags, labels) for process image
id: meta-process
Expand All @@ -60,12 +67,13 @@ jobs:
type=raw,value=latest

- name: Build and push Docker process image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./example/process/
context: ./examples/fake-file-process/process/
push: true
tags: ${{ steps.meta-process.outputs.tags }}
labels: ${{ steps.meta-process.outputs.labels }}
platforms: linux/arm64,linux/amd64

- name: Extract metadata (tags, labels) for analyse image
id: meta-analyse
Expand All @@ -76,12 +84,13 @@ jobs:
type=raw,value=latest

- name: Build and push Docker analyse image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./example/analyse/
context: ./examples/fake-file-process/analyse/
push: true
tags: ${{ steps.meta-analyse.outputs.tags }}
labels: ${{ steps.meta-analyse.outputs.labels }}
platforms: linux/arm64,linux/amd64

- name: Extract metadata (tags, labels) for fail image
id: meta-fail
Expand All @@ -92,9 +101,10 @@ jobs:
type=raw,value=latest

- name: Build and push Docker fail image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./example/fail/
context: ./examples/fake-file-process/fail/
push: true
tags: ${{ steps.meta-fail.outputs.tags }}
labels: ${{ steps.meta-fail.outputs.labels }}
labels: ${{ steps.meta-fail.outputs.labels }}
platforms: linux/arm64,linux/amd64
53 changes: 53 additions & 0 deletions .github/workflows/frontend-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Create and publish the frontend docker image

on:
push:
branches:
- main
- dev
pull_request:
paths:
- "frontend/**"

env:
REGISTRY: ghcr.io
FRONTEND_IMAGE_NAME: datacloud-project/sim-pipe-frontend

jobs:
build-and-push-frontend-image:
name: Build and push frontend image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for frontend main image
id: meta-main
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.FRONTEND_IMAGE_NAME }}

- name: Build and push Docker frontend image
uses: docker/build-push-action@v4
with:
context: ./frontend/
push: true
tags: ${{ steps.meta-main.outputs.tags }}
labels: ${{ steps.meta-main.outputs.labels }}
platforms: linux/arm64,linux/amd64
Loading