Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Projectq2061
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
aray
Projectq2061
Commits
b872a36a
Commit
b872a36a
authored
Feb 23, 2023
by
aray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit by admin
parent
82159af4
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
97 additions
and
65 deletions
+97
-65
Dockerfile
Dockerfile
+5
-2
docker-compose.yml
docker-compose.yml
+30
-0
pom.xml
pom.xml
+28
-4
Default.java
src/main/java/com/altimetrik/ee/demo/controller/Default.java
+0
-4
PlaygroundAssessmentDemoApplication.java
...idate/assessment/PlaygroundAssessmentDemoApplication.java
+5
-3
AdminDbConsoleController.java
...idate/assessment/controller/AdminDbConsoleController.java
+5
-0
application.properties
src/main/resources/application.properties
+17
-0
application.yml
src/main/resources/application.yml
+7
-6
db-config-k8s.properties
src/main/resources/db-config-k8s.properties
+0
-0
validator.json
src/main/resources/validator.json
+0
-46
No files found.
Dockerfile
View file @
b872a36a
FROM
openjdk:17-alpine
ADD
/target/demo-0.0.1-SNAPSHOT.jar //
ENTRYPOINT
["java", "-jar", "/demo-0.0.1-SNAPSHOT.jar"]
ADD
/target/playground-assessment-demo-0.0.1-SNAPSHOT.jar //
ENTRYPOINT
["java", "-jar", "/playground-assessment-demo-0.0.1-SNAPSHOT.jar"]
docker-compose.yml
0 → 100644
View file @
b872a36a
version
:
'
3.3'
services
:
db
:
image
:
mysql:8.0.17
container_name
:
pg-mysql-db
environment
:
-
MYSQL_ROOT_PASSWORD=sa
-
MYSQL_USER=admin
-
MYSQL_PASSWORD=sa
-
MYSQL_DATABASE=playground
ports
:
-
"
3306:3306"
restart
:
always
demo
:
image
:
playground-assessment-demo
container_name
:
playground-assessment-demo
build
:
.
ports
:
-
"
1099:1099"
restart
:
always
depends_on
:
-
db
environment
:
SPRING_DATASOURCE_URL
:
jdbc:mysql://pg-mysql-db:3306/playground?createDatabaseIfNotExist=true
SPRING_DATASOURCE_USERNAME
:
admin
SPRING_DATASOURCE_PASSWORD
:
sa
\ No newline at end of file
pom.xml
View file @
b872a36a
...
...
@@ -8,12 +8,13 @@
<version>
3.0.1
</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<groupId>
com.altimetrik
</groupId>
<artifactId>
demo
</artifactId>
<artifactId>
playground-assessment-
demo
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<name>
Playground
Candidate
Demo
</name>
<description>
Playground
Candidate
Demo
</description>
<name>
Playground
Assessment
Demo
</name>
<description>
Playground
Assessment
Demo
</description>
<properties>
...
...
@@ -45,10 +46,33 @@
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
</dependencies>
<dependency>
<groupId>
com.github.ulisesbocchio
</groupId>
<artifactId>
jasypt-spring-boot-starter
</artifactId>
<version>
3.0.3
</version>
</dependency>
<dependency>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
<version>
1.5.20
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
2.8.0
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
2.8.0
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
<build>
...
...
src/main/java/com/altimetrik/ee/demo/controller/Default.java
deleted
100644 → 0
View file @
82159af4
package
com
.
altimetrik
.
ee
.
demo
.
controller
;
public
class
Default
{
}
src/main/java/com/altimetrik/Application.java
→
src/main/java/com/altimetrik/
playground/candidate/assessment/PlaygroundAssessmentDemo
Application.java
View file @
b872a36a
package
com
.
altimetrik
;
package
com
.
altimetrik
.
playground
.
candidate
.
assessment
;
import
com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
@EnableEncryptableProperties
@Slf4j
public
class
Application
{
public
class
PlaygroundAssessmentDemo
Application
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Application
.
class
,
args
);
SpringApplication
.
run
(
PlaygroundAssessmentDemo
Application
.
class
,
args
);
log
.
info
(
"PlaygroundCandidateDemo app has been started successfully ..."
);
}
...
...
src/main/java/com/altimetrik/playground/candidate/assessment/controller/AdminDbConsoleController.java
0 → 100644
View file @
b872a36a
package
com
.
altimetrik
.
playground
.
candidate
.
assessment
.
controller
;
public
class
AdminDbConsoleController
{
}
src/main/resources/application.properties
View file @
b872a36a
spring.datasource.url
=
jdbc:mysql://pg-mysql-db:3306/playground
spring.datasource.username
=
ENC(nh/RvbnkHaekzY1WEDvW6A==)
spring.datasource.password
=
ENC(IQlZwS7vnzosPXzEH4IogQ==)
spring.jpa.hibernate.ddl-auto
=
update
spring.datasource.initialization-mode
=
always
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.jpa.database-platform
=
org.hibernate.dialect.MySQL5Dialect
spring.jpa.generate-ddl
=
true
k8s.db.env
=
db-config-k8s
src/main/resources/application.yml
View file @
b872a36a
# Spring properties
spring
:
application
:
name
:
PlaygroundCandidate
Demo
# Service registers under this name
name
:
PlaygroundAssessment
Demo
# Service registers under this name
freemarker
:
enabled
:
false
# Ignore Eureka dashboard FreeMarker templates
...
...
@@ -11,8 +11,8 @@ spring:
server
:
port
:
1099
# HTTP (Tomcat) port
servlet.contextPath
:
/
undertow
:
accesslog
:
undertow
:
accesslog
:
enabled
:
true
# Logging configurations
...
...
@@ -24,5 +24,7 @@ logging:
org.springframework.security
:
INFO
org.hibernate.SQL
:
WARN
article
:
fileName
:
validator.json
\ No newline at end of file
jasypt
:
encryptor
:
password
:
playground
src/main/resources/db-config-k8s.properties
deleted
100644 → 0
View file @
82159af4
src/main/resources/validator.json
deleted
100644 → 0
View file @
82159af4
[
{
"id"
:
1
,
"title"
:
"SAMPLE APPLICATION"
,
"description"
:
"It is a Sample Demo Application"
,
"tags"
:
[
"JAVA"
,
"SPRING"
],
"vote"
:
1
,
"createdBy"
:
"ssa3410@altimetrik.com"
,
"createdDate"
:
"01-12-2018"
,
"updatedBy"
:
null
,
"updatedDate"
:
null
},
{
"id"
:
2
,
"title"
:
"secod APPLICATION"
,
"description"
:
"It is a Sample Demo Application"
,
"tags"
:
[
"JAVA"
,
"SPRING"
],
"vote"
:
2
,
"createdDate"
:
"01-12-2018"
,
"createdBy"
:
"ssa3410@altimetrik.com"
,
"updatedDate"
:
null
,
"updatedBy"
:
null
},
{
"id"
:
3
,
"title"
:
"secod APPLICATION"
,
"description"
:
"It is a Sample Demo Application"
,
"tags"
:
[
"JAVA"
,
"SPRING"
],
"vote"
:
0
,
"createdDate"
:
"01-12-2018"
,
"createdBy"
:
"ssa3410@altimetrik.com"
,
"updatedDate"
:
null
,
"updatedBy"
:
null
}
]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment