-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 989 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 989 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 java:7
MAINTAINER Ousmane Kebe <kebe.4@osu.edu>
# Set customizable env vars defaults.
# Set Grails version
ENV GRAILS_VERSION 2.2.3
# Install Grails
WORKDIR /usr/lib/jvm
RUN wget https://github.com/grails/grails-core/releases/download/v$GRAILS_VERSION/grails-$GRAILS_VERSION.zip && \
unzip grails-$GRAILS_VERSION.zip && \
rm -rf grails-$GRAILS_VERSION.zip && \
ln -s grails-$GRAILS_VERSION grails
# Setup Grails path.
ENV GRAILS_HOME /usr/lib/jvm/grails
ENV PATH $GRAILS_HOME/bin:$PATH
#Create directories for patron-load file results
RUN mkdir /mnt/common
RUN mkdir /mnt/common/patron-load-archives
RUN mkdir /mnt/common/patron-load-archives/sample
RUN mkdir /mnt/common/patron-load-archives/specific
RUN mkdir /mnt/common/patron-load-archives/day
RUN mkdir /mnt/common/patron-load-archives/week
RUN mkdir /mnt/common/patron-load-archives/exceptions
# Create App Directory
RUN mkdir /app
# Set Workdir
WORKDIR /app
# Set Default Behavior
ENTRYPOINT grails run-app