force mybatis init
This commit is contained in:
parent
44f71c70c9
commit
c152e0e14d
4 changed files with 18 additions and 19 deletions
|
@ -19,19 +19,19 @@ FROM openjdk:8-jre-alpine
|
||||||
|
|
||||||
ARG SEBSERVER_VERSION
|
ARG SEBSERVER_VERSION
|
||||||
ENV SEBSERVER_VERSION=${SEBSERVER_VERSION}
|
ENV SEBSERVER_VERSION=${SEBSERVER_VERSION}
|
||||||
ENV SERVER_ADDRESS=0.0.0.0
|
ENV SERVER_ADDRESS="0.0.0.0"
|
||||||
ENV SERVER_PORT=8080
|
ENV SERVER_PORT="8080"
|
||||||
ENV DBSERVER_ADDRESS=seb-server-mariadb
|
ENV DBSERVER_ADDRESS="seb-server-mariadb"
|
||||||
ENV DBSERVER_PORT=3306
|
ENV DBSERVER_PORT="3306"
|
||||||
ENV DBSERVER_PWD=
|
ENV DBSERVER_PWD="[TO_SET]"
|
||||||
ENV GUICLIENT_PWD=
|
ENV GUICLIENT_PWD="[TO_SET]"
|
||||||
ENV INTERNAL_PWD=
|
ENV INTERNAL_PWD="[TO_SET]"
|
||||||
|
|
||||||
WORKDIR /demo
|
WORKDIR /demo
|
||||||
COPY --from=1 /demo/target/seb-server-"$SEBSERVER_VERSION".jar /demo
|
COPY --from=1 /demo/target/seb-server-"$SEBSERVER_VERSION".jar /demo
|
||||||
|
|
||||||
ENTRYPOINT ["sh", "-c"]
|
ENTRYPOINT ["sh", "-c"]
|
||||||
|
|
||||||
CMD ["java -jar seb-server-${SEBSERVER_VERSION}.jar --server.address=${SERVER_ADDRESS} --server.port=${SERVER_PORT} --spring.config.location=classpath:/config/,file:/demo/externalResources/ --datastore.mariadb.server.address=${DBSERVER_ADDRESS} --datastore.mariadb.server.port${DBSERVER_PORT} --spring.profiles.active=demo --spring.datasource.password=${DBSERVER_PWD} --sebserver.webservice.api.admin.clientSecret={GUICLIENT_PWD} --sebserver.webservice.internalSecret=${INTERNAL_PWD}"]
|
CMD ["java -jar seb-server-${SEBSERVER_VERSION}.jar --server.address=${SERVER_ADDRESS} --server.port=${SERVER_PORT} --spring.config.location=classpath:/config/ --datastore.mariadb.server.address=${DBSERVER_ADDRESS} --datastore.mariadb.server.port${DBSERVER_PORT} --spring.profiles.active=demo --spring.datasource.password=${DBSERVER_PWD} --sebserver.webservice.api.admin.clientSecret={GUICLIENT_PWD} --sebserver.webservice.internalSecret=${INTERNAL_PWD}"]
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
|
@ -3,10 +3,8 @@ services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: "mariadb/server:10.3"
|
image: "mariadb/server:10.3"
|
||||||
container_name: seb-server-mariadb
|
container_name: seb-server-mariadb
|
||||||
volumes:
|
|
||||||
- seb-server-mariadb-data:/var/lib/mysql
|
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=[TO SET]
|
MYSQL_ROOT_PASSWORD: somePW
|
||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 3306:3306
|
||||||
networks:
|
networks:
|
||||||
|
@ -24,9 +22,9 @@ services:
|
||||||
- SERVER_PORT=8080
|
- SERVER_PORT=8080
|
||||||
- DBSERVER_ADDRESS=seb-server-mariadb
|
- DBSERVER_ADDRESS=seb-server-mariadb
|
||||||
- DBSERVER_PORT=3306
|
- DBSERVER_PORT=3306
|
||||||
- ENV DBSERVER_PWD=[TO SET]
|
- DBSERVER_PWD=somePW
|
||||||
- ENV GUICLIENT_PWD=[TO SET]
|
- GUICLIENT_PWD=somePW
|
||||||
- ENV INTERNAL_PWD=[TO SET]
|
- INTERNAL_PWD=somePW
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
networks:
|
networks:
|
||||||
|
@ -35,7 +33,4 @@ services:
|
||||||
- "mariadb"
|
- "mariadb"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
ralph:
|
ralph:
|
||||||
|
|
||||||
volumes:
|
|
||||||
seb-server-mariadb-data:
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./certs:/certs
|
- ./certs:/certs
|
||||||
environment:
|
environment:
|
||||||
- KEYSTORE_PWD=[TO SET]
|
- KEYSTORE_PWD=somePW
|
||||||
|
|
||||||
mariadb:
|
mariadb:
|
||||||
image: "mariadb/server:10.3"
|
image: "mariadb/server:10.3"
|
||||||
|
|
|
@ -12,6 +12,9 @@ import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
|
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
|
||||||
import org.springframework.cache.annotation.EnableCaching;
|
import org.springframework.cache.annotation.EnableCaching;
|
||||||
|
import org.springframework.context.annotation.Import;
|
||||||
|
|
||||||
|
import ch.ethz.seb.sebserver.webservice.datalayer.batis.BatisConfig;
|
||||||
|
|
||||||
/** SEB-Server (Safe Exam Browser Server) is a server component to maintain and support
|
/** SEB-Server (Safe Exam Browser Server) is a server component to maintain and support
|
||||||
* Exams running with SEB (Safe Exam Browser). TODO add link(s)
|
* Exams running with SEB (Safe Exam Browser). TODO add link(s)
|
||||||
|
@ -32,6 +35,7 @@ import org.springframework.cache.annotation.EnableCaching;
|
||||||
UserDetailsServiceAutoConfiguration.class,
|
UserDetailsServiceAutoConfiguration.class,
|
||||||
})
|
})
|
||||||
@EnableCaching
|
@EnableCaching
|
||||||
|
@Import(BatisConfig.class)
|
||||||
public class SEBServer {
|
public class SEBServer {
|
||||||
|
|
||||||
public static void main(final String[] args) {
|
public static void main(final String[] args) {
|
||||||
|
|
Loading…
Reference in a new issue