mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
add optaweb-employee-rostering
This commit is contained in:
parent
5195b160d1
commit
1dc1559fac
32
optaweb-employee-rostering/Dockerfile
Normal file
32
optaweb-employee-rostering/Dockerfile
Normal file
@ -0,0 +1,32 @@
|
||||
FROM maven:3-jdk-8-slim AS builder
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV APP_VERSION=7.30.0.Final
|
||||
ENV APP_URL=https://github.com/kiegroup/optaweb-employee-rostering/archive/${APP_VERSION}.tar.gz
|
||||
|
||||
WORKDIR /opt/app
|
||||
|
||||
RUN set -xe \
|
||||
&& curl -sSL ${APP_URL} | tar xz --strip 1 \
|
||||
&& mvn clean install -DskipTests -DskipITs
|
||||
|
||||
#
|
||||
# Dockerfile for optaweb-employee-rostering
|
||||
#
|
||||
|
||||
FROM openjdk:8-alpine
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV APP_VERSION=7.30.0.Final
|
||||
|
||||
WORKDIR /opt/app
|
||||
|
||||
COPY --from=builder /opt/app/employee-rostering-distribution/target/employee-rostering-distribution-${APP_VERSION}.jar .
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD java -jar employee-rostering-distribution-${APP_VERSION}.jar \
|
||||
--spring.datasource.url=jdbc:postgresql://${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-optaweb} \
|
||||
--spring.datasource.username=${POSTGRES_USER:-optaweb} \
|
||||
--spring.datasource.password=${POSTGRES_PASSWORD:-optaweb} \
|
||||
--server.port=8080
|
4
optaweb-employee-rostering/README.md
Normal file
4
optaweb-employee-rostering/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
optaweb-employee-rostering
|
||||
==========================
|
||||
|
||||
Web application for solving Employee Rostering using OptaPlanner https://www.optaplanner.org/
|
25
optaweb-employee-rostering/docker-compose.yml
Normal file
25
optaweb-employee-rostering/docker-compose.yml
Normal file
@ -0,0 +1,25 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
|
||||
optaweb:
|
||||
image: vimagick/optaweb-employee-rostering
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- POSTGRES_DB=optaweb
|
||||
- POSTGRES_USER=optaweb
|
||||
- POSTGRES_PASSWORD=optaweb
|
||||
depends_on:
|
||||
- postgres
|
||||
restart: unless-stopped
|
||||
|
||||
postgres:
|
||||
image: postgres:12-alpine
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_DB=optaweb
|
||||
- POSTGRES_USER=optaweb
|
||||
- POSTGRES_PASSWORD=optaweb
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user