Skip to content

Commit

Permalink
Merge branch 'master' into feature/update_java_qs
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ authored Dec 12, 2023
2 parents b9e856e + 54e23f0 commit 2e328dc
Show file tree
Hide file tree
Showing 13 changed files with 141 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Added secret scanning in docker plain ([#963](https://github.com/opendevstack/ods-quickstarters/pull/963))
- Added Nodejs20 agent ([#962](https://github.com/opendevstack/ods-quickstarters/issues/962))
- Added java 21 to jdk agent, updated Springboot and Spock quickstarters ([#962](https://github.com/opendevstack/ods-quickstarters/issues/962))
- Update Streamlit and Python quickstarters and agent ([#968](https://github.com/opendevstack/ods-quickstarters/issues/968))

### Modified

Expand Down
2 changes: 1 addition & 1 deletion be-python-flask/files/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Flask
description: "Flask is a micro web framework written in Python. Technologies: Flask 2.2.2, Python 3.9"
description: "Flask is a micro web framework written in Python. Technologies: Flask 3.0.0, Python 3.11"
supplier: https://www.palletsprojects.com/p/flask/
version: 4.x
type: ods
4 changes: 2 additions & 2 deletions be-python-flask/files/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gunicorn==20.1.0
flask==2.3.2
gunicorn==21.2.0
flask==3.0.0
6 changes: 3 additions & 3 deletions be-python-flask/files/tests_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r ./requirements.txt

mypy==1.3.0
flake8==6.0.0
pytest==7.3.1
mypy==1.7.1
flake8==6.1.0
pytest==7.4.3
pytest-cov==4.1.0
2 changes: 1 addition & 1 deletion common/jenkins-agents/python/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN pipVersions=( pip3.8 pip3.9 pip3.11 ); \
fi; \
$pipV config set global.cert /etc/ssl/certs/ca-bundle.crt && \
$pipV install --upgrade pip --user && \
$pipV install virtualenv==20.23.0 setuptools==67.8.0 Cython==0.29.35 pypandoc==1.11; \
$pipV install virtualenv==20.25.0 setuptools==69.0.2 Cython==3.0.6 pypandoc==1.12; \
done;

# Enables default user to access $HOME folder
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/quickstarters/pages/be-python-flask.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ version: 1.0.1
type: ods
role: backend
runtime: flask
runtimeVersion: 2.2.2
runtimeVersion: 3.0.0
```


Expand Down
2 changes: 1 addition & 1 deletion docs/modules/quickstarters/pages/ds-streamlit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ version: 1.0.1
type: ods
role: dashboard
runtime: streamlit
runtimeVersion: 0.18
runtimeVersion: 1.29.0
```

== How this quickstarter is built through Jenkins
Expand Down
6 changes: 3 additions & 3 deletions ds-streamlit/files/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
streamlit==1.22.0
plotly==5.14.1
pandas==2.0.2
streamlit==1.29.0
plotly==5.18.0
pandas==2.1.4
8 changes: 4 additions & 4 deletions ds-streamlit/files/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-r ./requirements.txt

mypy==1.3.0
flake8==6.0.0
pytest==7.3.1
mypy==1.7.1
flake8==6.1.0
pytest==7.4.3
pytest-cov==4.1.0
black==23.3.0
black==23.11.0
42 changes: 42 additions & 0 deletions ds-streamlit/testdata/golden/jenkins-build-stages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"stage": "odsPipeline start",
"status": "SUCCESS"
},
{
"stage": "Create virtualenv for tests",
"status": "SUCCESS"
},
{
"stage": "Linter",
"status": "SUCCESS"
},
{
"stage": "Unit Test",
"status": "SUCCESS"
},
{
"stage": "Build",
"status": "SUCCESS"
},
{
"stage": "SonarQube Analysis",
"status": "SUCCESS"
},
{
"stage": "Build OpenShift Image",
"status": "SUCCESS"
},
{
"stage": "Build OpenShift Image (streamlit-oauth)",
"status": "SUCCESS"
},
{
"stage": "Deploy to OpenShift",
"status": "SUCCESS"
},
{
"stage": "odsPipeline finished",
"status": "SUCCESS"
}
]
30 changes: 30 additions & 0 deletions ds-streamlit/testdata/golden/jenkins-provision-stages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"stage": "Checkout quickstarter",
"status": "SUCCESS"
},
{
"stage": "Initialize output directory",
"status": "SUCCESS"
},
{
"stage": "Copy files from quickstarter",
"status": "SUCCESS"
},
{
"stage": "Setup OpenShift resources",
"status": "SUCCESS"
},
{
"stage": "Create Jenkinsfile",
"status": "SUCCESS"
},
{
"stage": "Create sonar-project.properties",
"status": "SUCCESS"
},
{
"stage": "Push to remote",
"status": "SUCCESS"
}
]
25 changes: 25 additions & 0 deletions ds-streamlit/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "{{.SonarQualityProfile}}",
"language": "py",
"deleted": false
}
],
"qualityGate": {
"name": "Sonar way",
"isDefault": true
},
"breadcrumbs": [
{
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
}
27 changes: 27 additions & 0 deletions ds-streamlit/testdata/steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
componentID: streamlit
steps:
- type: provision
provisionParams:
verify:
jenkinsStages: golden/jenkins-provision-stages.json
- type: build
buildParams:
verify:
jenkinsStages: golden/jenkins-build-stages.json
sonarScan: golden/sonar-scan.json
runAttachments:
- SCRR-{{.ProjectID}}-{{.ComponentID}}.docx
- SCRR-{{.ProjectID}}-{{.ComponentID}}.md
openShiftResources:
imageTags:
- name: "{{.ComponentID}}"
tag: latest
- name: "{{.ComponentID}}-oauth"
tag: latest
imageStreams:
- "{{.ComponentID}}"
- "{{.ComponentID}}-oauth"
deploymentConfigs:
- "{{.ComponentID}}"
services:
- "{{.ComponentID}}-oauth"

0 comments on commit 2e328dc

Please sign in to comment.