-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 965 Bytes
/
Dockerfile
File metadata and controls
36 lines (25 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM tomcat:7-jre7-alpine
ARG OPENBOXES_VERSION="v0.8.23-hotfix1"
ARG DB_HOST=db
ARG DB_USER=openboxes
ARG DB_PASS=openboxes
ARG DB_NAME=openboxes
ARG APP_URL=http://localhost:8080
RUN apk add --no-cache curl
RUN curl -Lv https://github.com/openboxes/openboxes/releases/download/${OPENBOXES_VERSION}/openboxes.war -o /usr/local/tomcat/webapps/openboxes.war
COPY <<EOF /root/.grails/openboxes-config.properties
# Database connection settings
dataSource.url=jdbc:mysql://${DB_HOST}:3306/${DB_NAME}?autoReconnect=true&zeroDateTimeBehavior=convertToNull&verifyServerCertificate=false
dataSource.username=${DB_USER}
dataSource.password=${DB_PASS}
# OpenBoxes mail settings - disabled by default
grails.mail.enabled=false
# if test fail this must be enabled
openboxes.fixtures.enabled=false
# enable custom locale
openboxes.locale.custom.enabled = true
# in beta
# openboxes.scannerDetection.enabled = true
# Default server URL
grails.serverURL=${APP_URL}
EOF