-
Notifications
You must be signed in to change notification settings - Fork 17
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
New module for backup_restore_api #238
Changes from 56 commits
713e526
dbaf42e
211bdd8
f66d8d3
7a54341
67a33f9
f3fef6c
7b89180
b9ee397
b0f8ac3
83d4394
7215c76
221ea38
3a90c42
d907b07
907cb69
eb565bf
177c03d
0d64bfd
cfcc40f
1295e17
c1cfba9
2db6844
0416652
fc2e185
50d046e
b443b43
039d700
1ae62b6
0a2f7f0
c8d7bdd
c88aa67
8bec83a
1e3ab2d
e2f56b9
b8f2d7b
c6b9421
af6c8ba
530a092
dfce8d4
c79b45c
4152ec7
1f75059
ca2148c
592f755
2c04a86
935cb03
25caaf0
75595fb
d0cbcc5
f47c02b
3037ce9
c739e0a
4a8090d
fcbbb89
6e34d74
ccb4714
462833f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
### Java template | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
### Maven template | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
.mvn/timing.properties | ||
# https://github.com/takari/maven-wrapper#usage-without-binary-jar | ||
.mvn/wrapper/maven-wrapper.jar | ||
|
||
### JetBrains template | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff | ||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/**/usage.statistics.xml | ||
.idea/**/dictionaries | ||
.idea/**/shelf | ||
|
||
# Generated files | ||
.idea/**/contentModel.xml | ||
|
||
# Sensitive or high-churn files | ||
.idea/**/dataSources/ | ||
.idea/**/dataSources.ids | ||
.idea/**/dataSources.local.xml | ||
.idea/**/sqlDataSources.xml | ||
.idea/**/dynamic.xml | ||
.idea/**/uiDesigner.xml | ||
.idea/**/dbnavigator.xml | ||
|
||
# Gradle | ||
.idea/**/gradle.xml | ||
.idea/**/libraries | ||
|
||
# SonarLint | ||
.idea/sonarlint | ||
|
||
# Gradle and Maven with auto-import | ||
# When using Gradle or Maven with auto-import, you should exclude module files, | ||
# since they will be recreated, and may cause churn. Uncomment if using | ||
# auto-import. | ||
# .idea/artifacts | ||
# .idea/compiler.xml | ||
# .idea/jarRepositories.xml | ||
# .idea/modules.xml | ||
# .idea/*.iml | ||
# .idea/modules | ||
# *.iml | ||
# *.ipr | ||
|
||
# CMake | ||
cmake-build-*/ | ||
|
||
# Mongo Explorer plugin | ||
.idea/**/mongoSettings.xml | ||
|
||
# File-based project format | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
# Editor-based Rest Client | ||
.idea/httpRequests | ||
|
||
# Android studio 3.1+ serialized cache file | ||
.idea/caches/build_file_checksums.ser | ||
|
||
# Ignore config-api.json, should be copied from JeMPI_Apps/JeMPI_Configuration on build | ||
config-api.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
|
||
source $PROJECT_DEVOPS_DIR/conf/images/conf-app-images.sh | ||
source ../build-check-jdk.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tip Codebase Verification Ensure the relative path to
Analysis chainEnsure the relative path to Scripts ExecutedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Verify that build-check-jdk.sh can be sourced correctly
if [ ! -f "../build-check-jdk.sh" ]; then
echo "build-check-jdk.sh does not exist in the expected directory."
else
echo "build-check-jdk.sh exists and can be sourced."
fi
Length of output: 169 Script: #!/bin/bash
# Search for build-check-jdk.sh in the repository
fd build-check-jdk.sh
Length of output: 53 |
||
|
||
JAR_FILE=${BACKUP_RESTORE_API_JAR} | ||
APP_IMAGE=${BACKUP_RESTORE_API_IMAGE} | ||
APP=backup-restore-api | ||
source ../build-app-image.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!DOCTYPE suppressions PUBLIC | ||
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | ||
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
|
||
<suppressions> | ||
|
||
<suppress | ||
checks="(JavadocMethod|JavadocVariable|JavadocStyle|JavadocPackage|JavadocType)" | ||
files="().java" | ||
/> | ||
|
||
<suppress | ||
checks="(LineLength|AvoidStarImport|MagicNumber)" | ||
files="().java" | ||
/> | ||
|
||
<suppress | ||
checks="(VisibilityModifier|HiddenField)" | ||
files="().java" | ||
/> | ||
|
||
<suppress | ||
checks="(DesignForExtension)" | ||
files="User.java" | ||
/> | ||
|
||
<suppress | ||
checks="(ParameterNumber)" | ||
files="(PsqlQueries|BackEnd|Routes).java" | ||
/> | ||
|
||
</suppressions> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!.gitignore | ||
!Dockerfile |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG JAVA_VERSION | ||
|
||
FROM eclipse-temurin:${JAVA_VERSION}-jre | ||
|
||
ADD JeMPI_BackupRestoreAPI-1.0-SNAPSHOT-spring-boot.jar /app/app.jar | ||
|
||
RUN printf "#!/bin/bash\n\ | ||
cd /app\n\ | ||
java -server -XX:MaxRAMPercentage=80 -jar /app/app.jar\n" > /entrypoint.sh | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
The
PROJECT_DEVOPS_DIR
environment variable is not set correctly. Please ensure that this variable is set and points to a valid directory before running the script. Additionally, consider quoting the variable to prevent globbing and word splitting.PROJECT_DEVOPS_DIR
is set in your environment.source "$PROJECT_DEVOPS_DIR/conf/images/conf-app-images.sh"
Analysis chain
Ensure the path variable
$PROJECT_DEVOPS_DIR
is correctly set and consider quoting it to prevent globbing and word splitting.Scripts Executed
The following scripts were executed for the analysis:
Script:
Length of output: 106