fixed getLanguages method

This commit is contained in:
yannick.blanken@csc-online.eu 2022-07-01 14:55:31 +02:00
parent ea6963ef65
commit ff402bdb26
5 changed files with 95 additions and 1 deletions

62
server/docker-compose.yml Normal file
View File

@ -0,0 +1,62 @@
version: '3.3'
services:
#service 1: definition of mysql database
db:
image: mysql:latest
container_name: mysql-db
environment:
- MYSQL_ROOT_PASSWORD=0cscadmin1
ports:
- "3333:3306"
networks:
- spring-cloud-network
restart: always
#service 2: definition of phpMyAdmin
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: my-php-myadmin
ports:
- "8082:80"
restart: always
networks:
- spring-cloud-network
depends_on:
- db
environment:
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: 0cscadmin1
#service 3: definition of your spring-boot app
cfgserver: #it is just a name, which will be used only in this file.
image: appserver-service #name of the image after dockerfile executes
container_name: appserver-service-app #name of the container created from docker image
build:
context: ./restserver #docker file path (. means root directory)
dockerfile: Dockerfile #docker file name
ports:
- "8088:8081" #docker container port with your os port
restart: "no"
networks:
- spring-cloud-network
depends_on: #define dependencies of this app
- db #dependency name (which is defined with this name 'db' in this file earlier)
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql-db:3306/property?createDatabaseIfNotExist=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: 0cscadmin1
SPRING_JPA_HIBERNATE_DDL_AUTO: update
networks:
spring-cloud-network:
driver: bridge

View File

@ -6,6 +6,7 @@ spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/appvehownserver
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.jdbc.batch_size=100

View File

@ -0,0 +1,12 @@
FROM openjdk:8-jdk-alpine
ARG JAR_FILE=target/*.jar
ARG JAR_DEPENDENDIES=target/alternateLocation
ARG DEPENDENCY=target/dependency
COPY ${JAR_FILE} app.jar
#EXPOSE 3999:3999
COPY ${JAR_DEPENDENDIES} ./
#RUN ls -al
ENTRYPOINT ["java","-jar","/app.jar"]

View File

@ -90,6 +90,26 @@
<useDefaultDelimiters>false</useDefaultDelimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/alternateLocation</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<excludeTransitive>true</excludeTransitive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<testResources>
<testResource>

View File

@ -1,7 +1,6 @@
package eu.csc.ODPAppVehOwnServer.services;
import asn.GTMaintenance.Lease;
import eu.csc.odpconfigserver.persistence.leases.ASNLeaseEntity;
import org.springframework.stereotype.Service;
@Service