Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
8056e19
update to build
Sep 6, 2023
d0f9c54
Merge branch 'develop' of https://github.com/KiltedKanuck/OpenEdgeOps…
Sep 6, 2023
2d3a53b
fix location
Sep 6, 2023
7a48c3c
updates
Sep 6, 2023
3273928
more updates
Sep 6, 2023
e9967c3
removed staging
Sep 6, 2023
57df5f1
update build
Sep 6, 2023
eb28486
Correcting propath
Sep 6, 2023
023602a
Nexus push
Sep 6, 2023
a70cfe2
updated nexus commit
Sep 6, 2023
8a5cb37
fixed spelling
Sep 6, 2023
52db106
added work dir
Sep 6, 2023
fd81aff
corrected upload
Sep 6, 2023
ec89484
deploy scripts
Sep 6, 2023
ce900ff
git ignores
Sep 6, 2023
781d1d1
configure DB details
Sep 6, 2023
b6cc94b
get rid of ant & simplify deploy scripts
Sep 7, 2023
760ff37
deploy script changes
Sep 7, 2023
b342d13
refactor sports app
Sep 7, 2023
2d1102c
update CI
Sep 7, 2023
87caccf
update CI
Sep 7, 2023
f91cc23
added deploy after compile
Sep 7, 2023
58ac92e
debug
Sep 7, 2023
434d89b
debug
Sep 7, 2023
442b1b5
debug
Sep 7, 2023
6076126
more debug
Sep 7, 2023
fa534e7
added undeploy and deploy to deploy steps
Sep 7, 2023
ce3e2cd
added correct working-dir
Sep 7, 2023
235552e
update of local images
Sep 7, 2023
60aaddf
fix sports app url
Sep 7, 2023
dbcc6c9
Merge branch 'develop' of https://github.com/KiltedKanuck/OpenEdgeOps…
Sep 7, 2023
85bcb37
fix sports app url
Sep 7, 2023
643005c
updates to test
Sep 8, 2023
e361e62
adding second workflow
Sep 8, 2023
7e1e683
corrected syntax
Sep 8, 2023
a982d44
Comment out test
Sep 8, 2023
564d7a5
fine tune build
Sep 8, 2023
3cc4257
added vars
Sep 8, 2023
cc29651
update
Sep 8, 2023
c35f690
fixed case
Sep 8, 2023
e70ac11
ABL unit test
Sep 9, 2023
d2f178a
Merge branch 'develop' of https://github.com/KiltedKanuck/OpenEdgeOps…
Sep 9, 2023
3ae4242
Report ABL unit test results
Sep 9, 2023
bd3c4d1
Report ABL unit test results
Sep 9, 2023
820ff6b
debug unit test report
Sep 9, 2023
2db2b01
undo false test failures
Sep 9, 2023
8566cb5
try setting permissions
Sep 9, 2023
e743151
use java junit format
Sep 9, 2023
97d8726
upload test results
Sep 9, 2023
51878a8
upload test results
Sep 9, 2023
ce8e176
test report workflow
Sep 9, 2023
f9203d6
debug reporting
Sep 9, 2023
4586a85
reporting unit test
Sep 9, 2023
2995416
reporting unit test
Sep 9, 2023
e988779
use latest version of test reporter
Sep 9, 2023
a48c6d3
use latest version of test reporter
Sep 9, 2023
03ecd69
try different plugin to publish report
Sep 9, 2023
3023636
fail tests deliberately
Sep 9, 2023
02672b8
run report job even after failures
Sep 9, 2023
3782839
undo test failures
Sep 9, 2023
d4daac0
docker image scan
Sep 9, 2023
3bf1932
trigger build
Sep 9, 2023
cceb2af
permission for docker scan
Sep 9, 2023
ffdb0a0
trivy scan for paose image
Sep 9, 2023
c100dcf
fix pasoe image name
Sep 9, 2023
b3a5b89
test JDK security scan
Sep 9, 2023
9fc8f0f
space
Sep 9, 2023
01e4118
test security scan of JDK image
Sep 9, 2023
b7d225f
test security scan of for sample app image
Sep 9, 2023
4be3367
Merge branch 'main' into develop
Sep 10, 2023
f123b80
Use OEDF default plugin
Sep 13, 2023
917d6b6
Sports - init project
Sep 13, 2023
b223d04
merge prop change
Sep 13, 2023
96a2714
using default OEDF plugin
Sep 13, 2023
5ee0fc8
docker build for sports app
Sep 13, 2023
38a7b0d
docker image for webui app
Sep 13, 2023
5fa8683
webui script changes
Sep 13, 2023
a19b160
dockerfile for sports
Sep 13, 2023
aa8f793
deploy script changes - use webui as docker image
Sep 13, 2023
9fc9ead
sports app gradle scripts
Sep 13, 2023
abb3174
goss for webui
Sep 13, 2023
1024f2a
goss command fix
Sep 13, 2023
33fe6a2
new flow for build sports app
Sep 13, 2023
5ba1315
fix workflow syntax
Sep 13, 2023
7770c2c
fix build errors
Sep 13, 2023
6f73d0e
debug
Sep 13, 2023
27bc040
debug
Sep 13, 2023
d859ae1
debug
Sep 13, 2023
9c3c89f
fix report publish issues
Sep 13, 2023
6a3904f
trigger build
Sep 13, 2023
4a9d2b2
fix workspace var
Sep 13, 2023
6eaebdb
remove modes from goss yaml
Sep 13, 2023
fd4b721
take care of exit code
Sep 13, 2023
ab22743
test result name
Sep 13, 2023
0aaa979
docker build for webui
Sep 13, 2023
4c0e362
docker build for webui
Sep 13, 2023
5f18df2
Push docker images to nexus
Sep 13, 2023
31eac80
change in deploy scripts
Sep 13, 2023
a3aeac7
mkdir fix
Sep 13, 2023
fec01fa
Security scan job
Sep 13, 2023
a50dfe8
Placer holder job for push to release
Sep 13, 2023
5adeb49
add dependency web app container
Sep 14, 2023
7b7958b
clean up
Sep 18, 2023
1e1a5a7
gradle build in container
Sep 18, 2023
a006ea0
debug
Sep 18, 2023
fa5b6a6
fix dev yml
Sep 18, 2023
9d1349a
Test for app
Sep 19, 2023
1c95eab
Use correct node
Sep 19, 2023
2f371ea
Fixing test for Sample app
Sep 19, 2023
824c004
Fixing test for Sample app
Sep 19, 2023
ac41a65
Fixing test for Sample app
Sep 19, 2023
bc6813c
delete unwanted folders
Sep 19, 2023
fd9be03
files rename
Sep 20, 2023
f86f0e6
rename folder
Sep 20, 2023
213bf61
Compile job fixes
Sep 20, 2023
2b79072
Variables for docker build of sports app
Sep 20, 2023
d69bf41
fix var
Sep 20, 2023
87db254
use variables for web app
Sep 20, 2023
6f14148
use env vars for deploy
Sep 20, 2023
9e521ec
debug and vars in stage
Sep 20, 2023
0176b00
debug and vars in stage
Sep 20, 2023
378b9dd
debug deploy
Sep 20, 2023
0fe55e0
debug deploy
Sep 20, 2023
6a2948d
debug deploy
Sep 20, 2023
3b4e649
debug deploy
Sep 20, 2023
7bc8122
debug deploy
Sep 20, 2023
952f3e9
debug deploy
Sep 20, 2023
e98b6fa
stage tested artifacts
Sep 20, 2023
8af0e68
Sports app base reference (#9)
RahulKSmash Sep 20, 2023
f1234e8
limit readcustomer
Sep 20, 2023
05f78b9
test change
Sep 20, 2023
72233a8
test
Sep 20, 2023
997a385
test
Sep 20, 2023
9d48094
test
Sep 20, 2023
af9c619
test
Sep 20, 2023
5634e76
test
Sep 20, 2023
2db0c0a
Merge branch 'develop' into sports-app-base-reference
RahulKSmash Sep 21, 2023
ccd9f18
Merge pull request #11 from rahulk3010/sports-app-base-reference
RahulKSmash Sep 21, 2023
ed1c121
Add Sigrid steps
Sep 21, 2023
4fcf71d
Merge branch 'main' of https://github.com/KiltedKanuck/OpenEdgeOps in…
Sep 21, 2023
1d5e783
updates the sigrid and undelete of workflow
Sep 21, 2023
75878af
updated pull request
Sep 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
173 changes: 173 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
name: Development
run-name: ${{ github.actor }} is compiling our Sample App 🚀
on: [push]
jobs:
compile:
name: OpenEdge Compile Job
permissions: write-all
runs-on: self-hosted
defaults:
run:
working-directory: ${{ github.workspace }}/Sports
steps:
- uses: actions/checkout@v3
- name: Pull Dev PASOE Docker Image
run: |
docker login ${{ vars.DOCKER_REPO_URL }} -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PWD }}
docker pull ${{ vars.DOCKER_REPO_URL }}/openedge-dev-pasoe:${{ vars.OE_VERSION }}
- name: Running Gradle build in a Container
run: docker run --rm -v ./:/psc/wrk/Sports/ -e APP_LOCATION=/psc/wrk/Sports ${{ vars.DOCKER_REPO_URL }}/openedge-dev-pasoe:${{ vars.OE_VERSION }}
- name: Setup Python - needed by publish step
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Publish ABL Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
files: ${{ github.workspace }}/Sports/build/test-results/test/*.xml
check_name: Test Results - ABL Unit tests for Sports App
build:
name: Build Docker Image for Sports App
needs: compile
permissions: write-all
runs-on: self-hosted
defaults:
run:
working-directory: ${{ github.workspace }}/Sports/docker
steps:
- name: Copy ABLApp archive ('.oear')
run: cp -rf ./../build/distributions/ablapps/*.oear ./ablapps
- name: Docker build
run: sh build.sh
env:
APP_NAME: ${{ vars.APP_NAME }}
APP_VERSION: ${{ vars.APP_VERSION }}
- name: Test Docker Image state - Goss
run: sh test.sh
env:
APP_NAME: ${{ vars.APP_NAME }}
APP_VERSION: ${{ vars.APP_VERSION }}
- name: Setup Python - needed by publish step
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Publish Goss Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
files: ${{ github.workspace }}/Sports/docker/tests/*.xml
check_name: Test Results - Goss tests for Sports App
- name: Push Docker Image to Develop Docker Registry
run: |
docker tag ${{ vars.APP_NAME }}:${{ vars.APP_VERSION }} ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/${{ vars.APP_NAME }}:${{ vars.APP_VERSION }}
docker login ${{ vars.DOCKER_REPO_URL }} -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PWD }}
docker push ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/${{ vars.APP_NAME }}:${{ vars.APP_VERSION }}
buildwebui:
name: Build Docker Image for Web UI App
permissions: write-all
runs-on: self-hosted
defaults:
run:
working-directory: ${{ github.workspace }}/webui
steps:
- name: Docker build
run: sh build.sh
- name: Test Docker Image state - Goss
run: sh test.sh
- name: Setup Python - needed by publish step
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Publish Goss Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
files: ${{ github.workspace }}/webui/tests/*.xml
check_name: Test Results - Goss tests for Web UI App
- name: Push Docker Image to Develop Docker Registry
run: |
docker tag webui:latest ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/webui:latest
docker login ${{ vars.DOCKER_REPO_URL }} -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PWD }}
docker push ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/webui:latest
deploy:
name: Test Sample App Deploy
needs: [build, buildwebui]
permissions: write-all
runs-on: self-hosted
defaults:
run:
working-directory: ${{ github.workspace }}/deploy
steps:
- run: mkdir -p ./license
- name: Download the OpenEdge License file
run: wget -cO - ${{vars.NEXUS_URL}}/OpenEdge/linux/${{vars.OE_VERSION}}/linux-${{vars.OE_VERSION}}-license.cfg > ./license/progress.cfg --no-check-certificate
- name: Undeploy previous version of Sample App
run: sh undeploy.sh
env:
DOCKER_REPO_URL: ${{ vars.DOCKER_REPO_URL }}
OE_VERSION: ${{ vars.OE_VERSION }}
APP_NAME: ${{ vars.APP_NAME }}
APP_VERSION: ${{ vars.APP_VERSION }}
APP_GROUP: ${{ vars.APP_GROUP }}
- name: Deploy new version of Sample App
run: sh deploy.sh
env:
DOCKER_REPO_URL: ${{ vars.DOCKER_REPO_URL }}
OE_VERSION: ${{ vars.OE_VERSION }}
APP_NAME: ${{ vars.APP_NAME }}
APP_VERSION: ${{ vars.APP_VERSION }}
APP_GROUP: ${{ vars.APP_GROUP }}
- name: Test the app
run: sh test-app-image.sh
working-directory: ${{ github.workspace }}/test-app-image
- name: Setup Python - needed by publish step
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Publish Sample Sports App Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
files: ${{ github.workspace }}/test-app-image/*.xml
check_name: Test Results - Sports App Services
action_fail: true
- name: Undeploy the app and clean up resources
run: echo "TODO"
securityscans:
name: Scan Docker Images for Security Vulnerabilities
needs: [build, buildwebui]
permissions: write-all
runs-on: self-hosted
steps:
- name: Run security scan for Sports App docker image
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/${{ vars.APP_NAME }}:${{ vars.APP_VERSION }}
format: 'sarif'
output: 'trivy-results-sports.sarif'
- name: Upload security scan report of Sports App docker image to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results-sports.sarif'
category: sports-app-scan
- name: Run security scan for Web UI App docker image
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/webui:latest
format: 'sarif'
output: 'trivy-results-webui.sarif'
- name: Upload security scan report of Web UI App docker image to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results-webui.sarif'
category: webui-app-scan
stage:
name: Stage Artifacts and Docker Images for Release
needs: [deploy, securityscans]
runs-on: self-hosted
steps:
- name: Publish Docker Images to Release Docker Registry
run: |
docker login ${{ vars.DOCKER_REPO_URL }} -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PWD }}
docker tag ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/webui:latest ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/webui:latest-tested
docker push ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/webui:latest-tested
docker tag ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/${{ vars.APP_NAME }}:${{ vars.APP_VERSION }} ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/${{ vars.APP_NAME }}:${{ vars.APP_VERSION }}-tested
docker push ${{ vars.DOCKER_REPO_URL }}/${{ vars.APP_GROUP }}/${{ vars.APP_NAME }}:${{ vars.APP_VERSION }}-tested
18 changes: 18 additions & 0 deletions .github/workflows/sigrid-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: sigrid-publish
on:
push:
branches:
- "main"

jobs:
sigridci:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Download Sigrid CI
run: "git clone https://github.com/Software-Improvement-Group/sigridci.git sigridci"
- name: "Run Sigrid CI"
env:
SIGRID_CI_TOKEN: "${{ secrets.SIGRID_CI_TOKEN }}"
run: "./sigridci/sigridci/sigridci.py --customer 'Progress Software' --system 'Sample App' --source . --publish"
15 changes: 15 additions & 0 deletions .github/workflows/sigrid-pullrequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: sigrid-pullrequest
on: [pull_request]

jobs:
sigridci:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Download Sigrid CI
run: "git clone https://github.com/Software-Improvement-Group/sigridci.git sigridci"
- name: "Run Sigrid CI"
env:
SIGRID_CI_TOKEN: "${{ secrets.SIGRID_CI_TOKEN }}"
run: "./sigridci/sigridci/sigridci.py --customer 'Progress Software' --system 'SampleApp' --source ."
5 changes: 5 additions & 0 deletions test-app-image/test/testCustomer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ var result,

describe("Test Customer", () => {
const options = {
<<<<<<< HEAD
serviceURI: "https://ec2-3-84-2-121.compute-1.amazonaws.com:8811/Sports",
catalogURI: "https://ec2-3-84-2-121.compute-1.amazonaws.com:8811/Sports/static/SportsService.json",
=======
serviceURI: "https://<instance-public-ip>:8811/Sports",
catalogURI: "https://<instance-public-ip>:8811/Sports/static/SportsService.json",
>>>>>>> 2dc36163c2e39a60013d4a4da933f744805c5f4a
resourceName: "Customer",
authenticationModel: "anonymous"
};
Expand Down
4 changes: 4 additions & 0 deletions webui/src/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

$(function () {
'use strict';
<<<<<<< HEAD
var serviceURI = "https://ec2-3-84-2-121.compute-1.amazonaws.com:8811/Sports";
=======
var serviceURI = "https://<instance-public-ip>:8811/Sports";
>>>>>>> 2dc36163c2e39a60013d4a4da933f744805c5f4a
var catalogURI = serviceURI + "/static/SportsService.json";

function createGrid() {
Expand Down