-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from TheConnMan/enhancement/docker-compose
Docker Compose
- Loading branch information
Showing
6 changed files
with
41 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM java:8-jdk | ||
|
||
WORKDIR /usr/lib/java | ||
|
||
ENV GRAILS_VERSION 2.4.4 | ||
|
||
RUN wget https://github.com/grails/grails-core/releases/download/v${GRAILS_VERSION}/grails-${GRAILS_VERSION}.zip | ||
RUN unzip grails-${GRAILS_VERSION}.zip | ||
RUN rm -rf grails-${GRAILS_VERSION}.zip | ||
RUN ln -s grails-${GRAILS_VERSION} grails | ||
|
||
ENV GRAILS_HOME /usr/lib/java/grails | ||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | ||
ENV PATH $GRAILS_HOME/bin:$PATH | ||
|
||
RUN mkdir /app | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
RUN grails compile | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["grails"] | ||
|
||
CMD ["-Dgrails.env=docker", "run-app"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
db: | ||
image: mysql:latest | ||
environment: | ||
- MYSQL_DATABASE=streama | ||
- MYSQL_USER=streama | ||
- MYSQL_PASSWORD=streama | ||
- MYSQL_RANDOM_ROOT_PASSWORD=yes | ||
|
||
streama: | ||
build: . | ||
links: | ||
- db:db | ||
ports: | ||
- 8080:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters