-
Notifications
You must be signed in to change notification settings - Fork 40
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 #256 from buddycloud/docker
Build a docker image
- Loading branch information
Showing
14 changed files
with
416 additions
and
194 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 |
---|---|---|
|
@@ -13,3 +13,4 @@ logs | |
*.BASE.* | ||
*.LOCAL.* | ||
*.REMOTE.* | ||
!src/main/resources/log4j.properties |
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,19 @@ | ||
################################################################################ | ||
# Build a dockerfile for buddycloud-server-java | ||
# Based on ubuntu | ||
################################################################################ | ||
|
||
FROM dockerfile/java:openjdk-7-jdk | ||
|
||
MAINTAINER Lloyd Watkin <[email protected]> | ||
|
||
RUN apt-get update | ||
RUN apt-get upgrade -y | ||
RUN apt-get install -y maven | ||
|
||
RUN git clone https://github.com/buddycloud/buddycloud-server-java.git | ||
RUN cd buddycloud-server-java && mvn package | ||
ADD src/main/resources/log4j.properties /data/buddycloud-server-java/ | ||
ADD contrib/docker/start.sh /data/ | ||
RUN chmod +x start.sh | ||
CMD ./start.sh |
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
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,10 @@ | ||
#!/bin/bash | ||
|
||
OPTS="" | ||
|
||
if [ "$DATABASE" != "" ]; then | ||
OPTS=" $OPTS -DDATABASE=\"$DATABASE\"" | ||
fi | ||
|
||
cd buddycloud-server-java | ||
java $OPTS -jar target/channelserver-jar-with-dependencies.jar |
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,10 @@ | ||
BEGIN TRANSACTION; | ||
|
||
CREATE TABLE "configuration" ("key" TEXT NOT NULL, | ||
"value" TEXT NOT NULL, | ||
"updated" TIMESTAMP); | ||
|
||
INSERT INTO schema_version (version, "when", description) | ||
VALUES (8, 'now', 'Added configuration table'); | ||
|
||
COMMIT; |
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
Oops, something went wrong.