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

Dviz 12 upgrade admin dependencies #1

Open
wants to merge 204 commits into
base: dgtkit-4.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
4aa468c
Initial commit
vchihai Oct 19, 2021
4323aa9
Merge remote-tracking branch 'dg-toolkit/dgtkit-3.x'
vchihai Oct 19, 2021
d40f3ef
TCDING-62: Setup the application.
vchihai Nov 11, 2021
2e6856b
TCDING-62: Remove unused file. Configure the docker env.
vchihai Nov 25, 2021
c38bf7a
Merge pull request #1 from devgateway/task/TCDING-62/tcdi-admin
vchihai Nov 25, 2021
f78dce8
TCDING-57: Init dataset model
vchihai Dec 1, 2021
0c9a6f8
TCDING-57: Setup the menu items and logos.
vchihai Dec 1, 2021
9c7d2e4
TCDING-57: Add tobacco products pages and models
vchihai Dec 1, 2021
03c8dd4
TCDING-57: Update font awesome icons version
vchihai Dec 2, 2021
830a704
TCDING-57: Add TETSIM model
vchihai Dec 3, 2021
fb70b63
Merge pull request #2 from devgateway/task/TCDING-57/tetsim-model
vchihai Dec 7, 2021
2a4d11e
TOBACCO-791: Add TETSIM list page
vchihai Dec 9, 2021
00363d3
Merge pull request #3 from devgateway/task/TOBACCO-791/tetsim-homepage
vchihai Dec 9, 2021
bf27518
TOBACCO-792: Add homepages for datasets, categories
vchihai Dec 10, 2021
4ed1995
Merge pull request #4 from devgateway/feature/TOBACCO-792/tcdi-homepage
vchihai Dec 10, 2021
5f1676d
TOBACCO-798: Add base line numbers to tetsim dataset homepage
vchihai Dec 15, 2021
3af48d4
Merge pull request #5 from devgateway/task/TOBACCO-798/base-line-numbers
vchihai Dec 15, 2021
3cb3626
TOBACCO-799: Add price analysis variables
vchihai Jan 3, 2022
c803462
Merge pull request #6 from devgateway/task/TOBACCO-799/price-analysis…
vchihai Jan 3, 2022
4d183f8
TOBACCO-800: Add industry responses variables
vchihai Jan 3, 2022
067f757
Merge pull request #7 from devgateway/task/TOBACCO-800/tetsim-industr…
vchihai Jan 3, 2022
a01af4c
TOBACCO-793: Add validators on tobacco product form
vchihai Jan 4, 2022
4a42b48
Merge pull request #8 from devgateway/task/TOBACCO-793/tobacco-produc…
vchihai Jan 4, 2022
f8cb729
TOBACCO-802: Add datasets statuses
vchihai Jan 7, 2022
f977e43
TOBACCO-802: Add year valaidator
vchihai Jan 7, 2022
696ee58
Merge pull request #9 from devgateway/task/TOBACCO-802/action-buttons
vchihai Jan 7, 2022
e4bcb1a
Add entrypoint
Jan 12, 2022
0d0cdad
Use unpacked JAR content in image
Jan 12, 2022
a46bc18
Add Jenkinsfile
Jan 12, 2022
aee2041
Temporarily skip checkstyle
Jan 12, 2022
5218c43
Correct Dockerfile path
Jan 12, 2022
7dd8350
Move Dockerfile to correct path
Jan 12, 2022
8f091b3
Revert "Correct Dockerfile path"
Jan 12, 2022
fa492de
Merge pull request #10 from devgateway/ci
vchihai Jan 13, 2022
dfba520
Update compose files
Jan 13, 2022
3894502
Build & publish with Compose
Jan 13, 2022
0e483f7
Deploy with Ansible
Jan 13, 2022
abec218
Provide default command
Jan 14, 2022
6cb586a
Expose Java port 8080 at host port 80
Jan 14, 2022
ea8962b
Configure networking
Jan 14, 2022
b0a7547
TOBACCO-812: Update log configuration
vchihai Jan 14, 2022
4eb8fc0
Merge pull request #11 from devgateway/task/TOBACCO-812/log-appender
vchihai Jan 14, 2022
2105c68
TOBACCO-812: Remove file appender
vchihai Jan 15, 2022
fe67e13
Merge pull request #12 from devgateway/task/TOBACCO-812/logs
vchihai Jan 15, 2022
f1bfac6
TOBACCO-809: Add currencies
vchihai Jan 17, 2022
c01a695
TOBACCO-809: Set unit currency to variables
vchihai Jan 17, 2022
c774b18
Merge pull request #13 from devgateway/task/TOBACCO-809/currencies
vchihai Jan 17, 2022
9ed908c
TOBACCO-810: Error message for no Tobacco Products
vchihai Jan 17, 2022
675907e
Merge pull request #14 from devgateway/task/TOBACCO-810/tetesim-no-pr…
vchihai Jan 17, 2022
d9502e0
TOBACCO-812: Update menu links
vchihai Jan 17, 2022
1b4c68d
Merge pull request #15 from devgateway/task/TOBACCO-812/menu
vchihai Jan 17, 2022
b59e91b
TOBACCO-814: Remove datasets subitems
vchihai Jan 19, 2022
858ffb2
Merge pull request #16 from devgateway/task/TOBACCO-814/menu-options
vchihai Jan 19, 2022
dd68e7b
TOBACCO-791: Update date format for tetsim list page
vchihai Jan 19, 2022
be91430
Merge pull request #17 from devgateway/bug/TOBACCO-791/date-format
vchihai Jan 19, 2022
045e7d8
TOBACCO-798: Update the mechanism of setting the year to the dataset
vchihai Jan 20, 2022
e15a438
TOBACCO-798: Fix max bigdecimal issue
vchihai Jan 20, 2022
4571d4d
Merge pull request #18 from devgateway/bug/TOBACCO-798/tetsim-year
vchihai Jan 20, 2022
f0e84b2
TOBACCO-792: Rename titles
vchihai Jan 21, 2022
a6d5ef6
Merge pull request #19 from devgateway/bug/TOBACCO-798/tetsim-year
vchihai Jan 21, 2022
d91b001
TOBACCO-817: Display autosave when the action happens
vchihai Jan 21, 2022
bbdc5be
Merge pull request #20 from devgateway/bug/TOBACCO-817/autosave
vchihai Jan 21, 2022
9adf534
TOBACCO-816: Enable modal buttons when autosave fails
vchihai Jan 24, 2022
7756513
Merge pull request #21 from devgateway/bug/TOBACCO-816/modal-buttons
vchihai Jan 24, 2022
3cdd448
TOBACCO-813: Update categories menu
vchihai Jan 24, 2022
4e148cc
Merge pull request #22 from devgateway/bug/TOBACCO-813/menu
vchihai Jan 24, 2022
74395f5
TOBACCO-818: Don't add autosave behaviour when the form isnew
vchihai Jan 27, 2022
e3ec9e6
Merge pull request #23 from devgateway/bug/TOBACCO-818/autosave
vchihai Jan 27, 2022
ad126d7
TOBACCO-802: Hide delete button when dataset is published
vchihai Jan 28, 2022
e26c961
Merge pull request #24 from devgateway/bug/TOBACCO-802/delete-button
vchihai Jan 28, 2022
6bdd87b
TOBACCO-812: Fix checksyle issues
vchihai Feb 1, 2022
7e2fdbd
Merge pull request #25 from devgateway/task/TOBACCO-812/checkstyle
vchihai Feb 1, 2022
f51f5b8
adding admin to country stack
sdimunzio Feb 1, 2022
77567e3
Merge remote-tracking branch 'origin/develop' into develop
sdimunzio Feb 1, 2022
5962b95
updating nginx config & entrypoint
sdimunzio Feb 2, 2022
6af00dc
creating admin db
sdimunzio Feb 2, 2022
1820589
updating admin reverse proxy
sdimunzio Feb 3, 2022
17e9f08
TOBACCO-828: Set base path to admin
vchihai Feb 3, 2022
24237ce
Merge pull request #26 from devgateway/task/TOBACCO-828/admin-base-path
vchihai Feb 3, 2022
d525d74
TOBACCO-791: Fix default sorting
vchihai Feb 15, 2022
f41e8d2
Merge pull request #27 from devgateway/bug/TOBACCO-791/tetsim-default…
vchihai Feb 15, 2022
ecf3315
flexible API refactoring
sdimunzio Feb 15, 2022
b85062c
flexible API refactoring
sdimunzio Feb 15, 2022
0c97fb8
Merge branch 'develop' of github.com:devgateway/tcdi-admin into develop
sdimunzio Feb 15, 2022
f14c2d1
Revert "flexible API refactoring"
vchihai Feb 17, 2022
f04dd26
updating dimension names
sdimunzio Mar 3, 2022
4c10e79
TOBACCO-830: Remove unused files
vchihai Mar 14, 2022
ee2a811
TOBACCO-840: Calculate variables in TETSIM Outputs
vchihai Mar 14, 2022
f3de828
TOBACCO-842: Create tests for TETSIM Output Overshift calculations
vchihai Mar 14, 2022
e4fc1dc
TOBACCO-840: Calculate Excise Revenue and Total Gov revenue for tetsi…
vchihai Mar 14, 2022
941dcea
TOBACCO-840: Update tetsim calculation. Add undershift calculations.
vchihai Mar 15, 2022
bd4c569
TOBACCO-842: Refactor TETSIM output tests. Add undershift calculations.
vchihai Mar 15, 2022
d244e03
Merge pull request #28 from devgateway/task/TOBACCO-830/tetsim-outputs
sdimunzio Mar 18, 2022
c09728a
TOBACCO-841: Add Tetsim API
vchihai Mar 21, 2022
1390b65
Merge pull request #29 from devgateway/task/TOBACCO-830/tetsim-outputs
vchihai Mar 24, 2022
8111e02
TCDIKE-85: Enable remote ip valve for fixing forwarding
vchihai Apr 5, 2022
11394af
Merge pull request #30 from devgateway/task/TCDIKE-85/proxy-issue
vchihai Apr 5, 2022
69fa3c6
TOBACCO-908: Generate tetsim csv dataset output
vchihai May 30, 2022
83bffb9
Merge pull request #31 from devgateway/task/TOBACCO-908/tetsim-csv
vchihai May 30, 2022
c23cf24
TOBACCO-915: Add service management
vchihai Jul 4, 2022
55b0d87
TOBACCO-921: Add client to send request to microservices
vchihai Jul 4, 2022
f4122f5
TOBACCO-945: Add service dropdown in tetsim form
vchihai Jul 5, 2022
a42e208
TOBACCO-945: Add eureka discovery client and use the registered services
vchihai Jul 7, 2022
391f256
TOBACCO-941: Check the tetsim dataset in publishing mode
vchihai Jul 13, 2022
9b4e3be
TOBACCO-946: Publish the tetsim dataset to the microservice
vchihai Jul 13, 2022
d005fa6
TOBACCO-947: Update externalId with code.
vchihai Jul 14, 2022
f187d4a
TOBACCO-950: Unpublish the dataset by deleting it from the microservice
vchihai Jul 14, 2022
032839c
TOBACCO-951: Implement CSV dataset uploads
vchihai Jul 19, 2022
5a39d24
TOBACCO-952: Add action buttons to service page
vchihai Jul 25, 2022
ef7167c
TOBACCO-957: Create page to view service dimensions
vchihai Aug 3, 2022
b0ed0c3
TOBACCO-954: Add new variables for tetsim outputs
vchihai Aug 4, 2022
ddf8782
TOBACCO-986: Remove the hardcoded country name and retreive from DB
vchihai Sep 6, 2022
9cd37ee
TOBACCO-988: Rename admin menu
vchihai Sep 6, 2022
ecee5f7
TOBACCO-989: Create the data page with icons
vchihai Sep 12, 2022
0ec1cfb
TOBACCO-998: Update the datasets pages
vchihai Sep 15, 2022
3d5beba
TOBACCO-999: Manage dimensions of a service
vchihai Sep 26, 2022
778f5e7
TOBACCO-990: Manage measures of a service
vchihai Sep 27, 2022
ecffea7
Merge pull request #32 from devgateway/task/TOBACCO-873/api-managament
vchihai Sep 27, 2022
364e0c9
TOBACCO-990: Add editing colors in measures
vchihai Sep 29, 2022
29117b8
TOBACCO-1000: Add list and edit categories page. Refactoring the serv…
vchihai Oct 5, 2022
5c33b31
TOBACCO-1036: Update tetsim output exports
vchihai Oct 6, 2022
ad33e27
TOBACCO-1054: Add tobacco products to menu and configurations
vchihai Oct 12, 2022
7c3ab3e
Merge pull request #33 from devgateway/task/TOBACCO-1054/tobacco-product
vchihai Oct 12, 2022
518e275
TOBACCO-1021: Add label translations for measures, categories, dimens…
vchihai Oct 13, 2022
97032ba
TOBACCO-1021: Add unique validator for labels
vchihai Oct 14, 2022
c222a69
TOBACCO-1057: Update data icon description in home page
vchihai Oct 19, 2022
cdb14f8
Merge pull request #35 from devgateway/task/TOBACCO-1057/homepage
vchihai Oct 19, 2022
8daf7db
TOBACCO-1058: Remove groups
vchihai Oct 19, 2022
d17e663
Merge pull request #36 from devgateway/task/TOBACCO-1058/remove-groups
vchihai Oct 19, 2022
d643c85
TOBACCO-1059: Add asterisk to required fields
vchihai Oct 19, 2022
fb8af5f
Merge pull request #37 from devgateway/task/TOBACCO-1059/asterisk
vchihai Oct 19, 2022
4d12ff6
TOBACCO-1061: Update data page icons
vchihai Oct 19, 2022
d975a5f
Merge pull request #38 from devgateway/task/TOBACCO-1061/data-icons
vchihai Oct 19, 2022
40604b4
TOBACCO-1060: Update currency field in admin settings
vchihai Oct 19, 2022
8ac30d1
Merge pull request #39 from devgateway/task/TOBACCO-1060/update-currency
vchihai Oct 19, 2022
f4f5898
TOBACCO-1062: Remove tobacco product category
vchihai Oct 20, 2022
ea23946
Merge pull request #40 from devgateway/task/TOBACCO-1062/remove-tobac…
vchihai Oct 21, 2022
880ece1
TOBACCO-1069: Detect the tetsim service by name
vchihai Oct 21, 2022
efd1117
Merge pull request #41 from devgateway/task/TOBACCO-1069/testim-service
vchihai Oct 21, 2022
8e981f4
TOBACCO-1065: Update csv list page
vchihai Oct 22, 2022
867677f
Merge pull request #42 from devgateway/task/TOBACCO-1065/csv-list-page
vchihai Oct 22, 2022
c33ff47
TOBACCO-1064: Update the configurations icon
vchihai Oct 26, 2022
ce2f7dd
Merge pull request #43 from devgateway/task/TOBACCO-1064/configuratio…
vchihai Oct 26, 2022
c8b7b5b
Merge branch 'develop' into feature/TOBACCO-1021/translations
vchihai Oct 26, 2022
beda4b5
TOBACCO-1066: Update data entry form
vchihai Oct 28, 2022
819d256
Merge pull request #44 from devgateway/task/TOBACCO-1066/check-data-e…
vchihai Oct 28, 2022
859b967
TOBACCO-1068: Update measures page
vchihai Oct 28, 2022
83f71ba
Merge pull request #45 from devgateway/task/TOBACCO-1068/measures-page
vchihai Oct 28, 2022
c3053f8
TOBACCO-1078: Update dimensions page
vchihai Oct 28, 2022
5ce3a5b
Merge pull request #46 from devgateway/task/TOBACCO-1078/dimensions
vchihai Oct 28, 2022
5202f89
TOBACCO-1079: Update categories page
vchihai Oct 28, 2022
051192a
Merge pull request #47 from devgateway/task/TOBACCO-1079/categories-page
vchihai Oct 28, 2022
4803434
Merge branch 'develop' into feature/TOBACCO-1021/translations
vchihai Oct 28, 2022
3862cde
TOBACCO-1021: Update labels in form
vchihai Oct 28, 2022
86ee005
TOBACCO-1082: Add country name to data service page
vchihai Nov 1, 2022
9837e78
Merge pull request #48 from devgateway/task/TOBACCO-1082/data-country…
vchihai Nov 1, 2022
2966bc1
TOBACCO-1084: Replace Label with System Label
vchihai Nov 1, 2022
4091dad
Merge pull request #49 from devgateway/task/TOBACCO-1084/system-labels
vchihai Nov 1, 2022
0ee07dc
TOBACCO-1083: Add filters page
vchihai Nov 3, 2022
93a3480
Merge pull request #50 from devgateway/feature/TOBACCO-1083/filters
vchihai Nov 3, 2022
f8c3b66
TOBACCO-1067: Update csv upload page
vchihai Nov 7, 2022
78ce9e4
Merge pull request #51 from devgateway/task/TOBACCO-1067/csv-upload-page
vchihai Nov 7, 2022
8fe6d98
TOBACCO-1087: Add configuration for number of items in a table
vchihai Nov 7, 2022
9502b47
Merge pull request #52 from devgateway/task/TOBACCO-1087/add-configur…
vchihai Nov 7, 2022
3b075f4
TOBACCO-1091: Add group and expression fields to measure
vchihai Nov 7, 2022
b230de6
Merge pull request #53 from devgateway/task/TOBACCO-1091/add-group-ex…
vchihai Nov 7, 2022
fe513d5
TOBACCO-1067: Update upload button label
vchihai Nov 7, 2022
1f6d35b
TOBACCO-1090: Add unpublishing status
vchihai Nov 9, 2022
02ff8c8
Merge pull request #54 from devgateway/task/TOBACCO-1090/unpublishing
vchihai Nov 9, 2022
9749c1e
TOBACCO-1090: Update the error message for publishing/unpublishing
vchihai Nov 11, 2022
ea87a86
TOBACCO-1098: Add the template download feature
vchihai Nov 11, 2022
085193b
Merge pull request #55 from devgateway/task/TOBACCO-1098/template-dow…
vchihai Nov 11, 2022
d754453
TOBACCO-1088: Add filters to datasets tables
vchihai Nov 14, 2022
9ecbfb2
TOBACCO-1088: Add filters to data lists
vchihai Nov 16, 2022
b2bd007
Merge pull request #56 from devgateway/task/TOBACCO-1088/table-filters
vchihai Nov 16, 2022
1c437a3
TCDIKE-412: Detect testim service based on eureka metadata
vchihai Nov 24, 2022
66d06fc
Merge pull request #57 from devgateway/task/TCDIKE-412/tetsim-metadata
vchihai Nov 24, 2022
8169e0f
TOBACCO-1086: Add breadcrumbs
vchihai Nov 24, 2022
238a51e
Merge pull request #58 from devgateway/task/TOBACCO-1086/breadcrumbs
vchihai Dec 5, 2022
f178eb5
TOBACCO-1119: Add a friendly name to the APIs
vchihai Dec 7, 2022
d93f560
Merge pull request #59 from devgateway/task/TOBACCO-1119/add-friednly…
vchihai Dec 7, 2022
d7cc302
TOBACCO-1095: Configure mail sender when sending mails
vchihai Dec 16, 2022
5f7fe05
Merge pull request #60 from devgateway/task/TOBACCO-1095/mail-service
vchihai Dec 16, 2022
6a44285
TOBACCO-1089: Display remote datasets
vchihai Jan 11, 2023
5ded93a
TOBACCO-1162: Add Baseline Tax Burden as a separate measure
vchihai Jan 18, 2023
15988c4
Merge branch 'develop' into DRC01
vchihai Jan 30, 2023
81d058f
Merge pull request #62 from devgateway/DRC01
sdimunzio Feb 2, 2023
4163c46
TCDIDRC-86: Add tranlations columns to the entities tables
vchihai Feb 18, 2023
4fd54ba
TOBACCO-1168: Add Perfectshift to tetsim model
vchihai Mar 13, 2023
296e47d
Merge pull request #63 from devgateway/task/TOBACCO-1168/tetsim-perfe…
vchihai Mar 13, 2023
1aa9a4a
fixing wpm programmatic config
sdimunzio Apr 4, 2023
89e7793
DVIZ-12 upgraded persistence
dynamodenis Oct 18, 2024
0aed9ef
DVIZ-12 upgrade tcdi-admin
dynamodenis Oct 22, 2024
7e7ab37
DVIZ-12 upgraded persistent and forms
dynamodenis Oct 29, 2024
7f23b8e
DVIZ-12 fix eureka client issue
dynamodenis Nov 1, 2024
4993616
DVIZ-12 replace addPostProcessingDecorator
dynamodenis Nov 5, 2024
fb8f855
DVIZ-12 updared FormWebApplication
dynamodenis Nov 5, 2024
fcb06e2
DVIZ-12 updare forms web application
dynamodenis Nov 5, 2024
3d6e522
DVIZ-12 upgraded to wicket 10.2.0
dynamodenis Nov 8, 2024
352a5f5
DVIZ-12 made login page load and login work
mpostelnicu Nov 8, 2024
912f00c
DVIZ-12 added custom css
dynamodenis Nov 12, 2024
2f0e0aa
DVIZ-12 upgraded css
dynamodenis Nov 13, 2024
29f3048
DVIZ-12 update header css
dynamodenis Nov 14, 2024
c7ab9ea
DVIZ-12 code clean up
dynamodenis Nov 18, 2024
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
  •  
  •  
  •  
68 changes: 68 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#!/usr/bin/env groovy
pipeline {
agent { label 'docker' }

environment {
MAVEN_IMAGE = 'maven:3.8-openjdk-17-slim'
DOCKER_BUILDKIT = '1'
PROJECT_TITLE = 'TCDI Admin'
REPO = 'registry.developmentgateway.org/'
}

stages {

stage('Compile') {
steps {
script {
def args = "-e JAVA_TOOL_OPTIONS=-Duser.home=$WORKSPACE_TMP"
withDockerContainer(image: env.MAVEN_IMAGE, args: args) {
// TODO: checkstyle
sh 'mvn -B clean package -DskipTests -Dcheckstyle.skip && mkdir forms/target/deps'
dir('forms/target/deps') {
sh 'jar -xf ../*.jar'
}
}
}
}
} // Compile

stage('Package & Publish') {
steps {
script {
def tag = ['main', 'master'].contains(env.BRANCH_NAME) ?
'latest' :
env.BRANCH_NAME.replaceAll('[^\\p{Alnum}-_]', '_').toLowerCase()
withEnv(["TAG=$tag"]) {
def dc = 'docker-compose'
sh "$dc build admin && $dc push admin"
}
}
}
} // Package & Publish

stage('Deploy') {
when { branch 'develop' }
agent { label 'ansible' }
steps {
script {
def tag = ['main', 'master'].contains(env.BRANCH_NAME) ?
'latest' :
env.BRANCH_NAME.replaceAll('[^\\p{Alnum}-_]', '_').toLowerCase()
ansiblePlaybook(
credentialsId: 'Deploy',
become: true,
playbook: 'deploy.yml',
skippedTags: 'provision',
extraVars: [
project_title: env.PROJECT_TITLE,
repo: env.REPO,
tag: tag,
pull: "true"
]
)
} // script
} // steps
}

} // stages
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# dg-toolkit
# tcdi-admin based on dg-toolkit

[![Build Status](https://travis-ci.org/devgateway/dg-toolkit.svg?branch=master)](https://travis-ci.org/devgateway/dg-toolkit)

Expand Down Expand Up @@ -113,7 +113,7 @@ frolvlad/alpine-oraclejdk8 slim 00d8610f052e 2 weeks ago
The image can be started with

```
$docker run -p 8090:8090 -t devgateway/toolkit/forms
$docker run -p 8080:8080 -t devgateway/toolkit/forms
```

That's it, congrats!
Expand Down
2 changes: 2 additions & 0 deletions checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

<suppress checks="HideUtilityClassConstructor|FinalClass"
files="PersistenceApplication\.java|MongoPersistenceApplication\.java|UIWebApplication\.java|WebApplication\.java|ReportingApplication\.java" />
<suppress checks="LineLength" files=".properties" />

<suppress checks="[a-zA-Z0-9]*" files="[\\/]ui[\\/]" />
<suppress checks="[a-zA-Z0-9]*" files="[\\/]metamodel[\\/]" />
</suppressions>
16 changes: 7 additions & 9 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
-->
<module name="Checker">
<property name="severity" value="warning"/>
<module name="LineLength">
<property name="max" value="120"/>
</module>
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<module name="org.devgateway.toolkit.checks.CachableQueryAnnotationCheck" />
<module name="JavadocMethod">
<property name="severity" value="ignore"/>
<property name="suppressLoadErrors" value="true"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="JavadocType">
Expand Down Expand Up @@ -43,10 +44,7 @@
<module name="TypeName"/>
<module name="AvoidStarImport"/>
<module name="IllegalImport"/>
<module name="RedundantImport"/>
<module name="LineLength">
<property name="max" value="120"/>
</module>
<module name="RedundantImport"/>
<module name="MethodLength"/>
<module name="ParameterNumber"/>
<module name="EmptyForIteratorPad"/>
Expand All @@ -58,6 +56,7 @@
<module name="NoWhitespaceBefore"/>
<module name="OperatorWrap"/>
<module name="ParenPad"/>
<module name="SingleSpaceSeparator"/>
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround">
Expand Down Expand Up @@ -97,12 +96,12 @@
<property name="protectedAllowed" value="true"/>
</module>
<module name="ArrayTypeStyle"/>
<!-- <module name="FinalParameters"/> -->
<module name="TodoComment">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="UpperEll"/>
<module name="UnusedImports"/>
</module>
<module name="JavadocPackage">
<property name="severity" value="ignore"/>
Expand All @@ -112,12 +111,11 @@
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="Translation"/>
<module name="Translation"/>
<module name="FileTabCharacter">
<property name="fileExtensions" value="java,xml,html,md"/>
</module>
<module name="RegexpSingleline">
<property name="severity" value="ignore"/>
<property name="format" value="\s+$"/>
<property name="message" value="Line has trailing spaces."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
Expand Down
1 change: 0 additions & 1 deletion checkstyle/.gitignore

This file was deleted.

26 changes: 0 additions & 26 deletions checkstyle/pom.xml

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions checkstyle/src/main/resources/packagenames.xml

This file was deleted.

84 changes: 84 additions & 0 deletions deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
- name: Deploy
hosts:
- "{{ project_title | regex_replace('[^\\w_]', '_') | lower }}_{{ tag }}"
vars:
product: "{{ project_title | regex_replace('[^\\w_]', '_') | lower }}"
systemd_service:
Unit.Description: "{{ project_title }}"
Unit.After: docker.socket docker.service
Unit.BindsTo: docker.socket docker.service
Install.WantedBy: multi-user.target
Service.Type: exec
Service.ExecStart: /usr/bin/docker-compose --no-ansi up
Service.WorkingDirectory: "/opt/devgateway/{{ product }}"
Service.Environment: "TAG={{ tag }} REPO={{ repo }}"

tasks:

- name: Install packages
ansible.builtin.package:
name:
- firewalld
- docker-compose
tags:
- provision

- name: Open firewall ports
ansible.posix.firewalld:
service: http
state: enabled
permanent: true
immediate: true
zone: public
tags:
- provision

- name: Configure Systemd unit
community.general.ini_file:
path: /etc/systemd/system/{{ product }}.service
create: true
no_extra_spaces: true
section: "{{ item.key.split('.')[0] }}"
option: "{{ item.key.split('.')[1] }}"
value: "{{ item.value }}"
loop: "{{ systemd_service | dict2items }}"
loop_control:
label: "{{ item.key }}"
notify:
- Reload Systemd

- name: Install Compose file
ansible.builtin.copy:
src: docker-compose.yml
dest: "{{ systemd_service['Service.WorkingDirectory'] }}/"
notify:
- Restart stack

- name: Update images
ansible.builtin.command:
chdir: "{{ systemd_service['Service.WorkingDirectory'] }}"
cmd: /usr/bin/docker-compose pull --quiet
environment:
TAG: "{{ tag }}"
REPO: "{{ repo }}"
notify:
- Restart stack
when: pull | default(false)

- name: Enable Compose service
ansible.builtin.service:
name: "{{ product }}"
enabled: true
state: started

handlers:

- name: Reload Systemd
ansible.builtin.systemd:
daemon_reload: true

- name: Restart stack
ansible.builtin.service:
name: "{{ product }}"
state: restarted
3 changes: 3 additions & 0 deletions dev_services.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set TAG=staging

docker-compose up postgres admin
2 changes: 2 additions & 0 deletions dev_services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set TAG=staging
docker-compose up postgres admin
35 changes: 35 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/sh


PROP_FILE="tcdi-admin.properties"
echo "Writing to $PROP_FILE:"

PROPERTIES="$(cat <<-EOF
server.port
spring.application.name
spring.liquibase.enabled
spring.datasource.jdbc-url
spring.datasource.url
spring.mail.host
spring.jpa.hibernate.ddl-auto
EOF
)"

env

echo "$PROPERTIES" | while IFS=read PROPERTY; do
VAR_NAME="$(echo "$PROPERTY" | tr '[:lower:].-' '[:upper:]__')"
eval VALUE="\$$VAR_NAME"
if [ -n "$VALUE" ]; then
echo "$PROPERTY=$VALUE"
fi
done | tee -a "$PROP_FILE"

JAR="tcdi-admin-forms-0.0.1-SNAPSHOT.jar"
JAVA_OPTS="-Dspring.config.location=file://$PROP_FILE"
#exec /bin/sh -c "java -jar '$JAR' $JAVA_OPTS $@" nobody
exec /bin/bash
;;
*)
exec $@
;;
10 changes: 10 additions & 0 deletions forms/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM openjdk:17-jdk-slim
WORKDIR /opt/devgateway/tcdi/admin
COPY target/deps/BOOT-INF/lib lib
COPY target/deps/META-INF META-INF
COPY entrypoint.sh ./
COPY target/deps/BOOT-INF/classes .
#USER nobody
EXPOSE 8080
ENTRYPOINT ["/opt/devgateway/tcdi/admin/entrypoint.sh"]
CMD ["admin"]
Loading