forked from bigbluebutton/bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0aebf3
commit 146d28b
Showing
12 changed files
with
588 additions
and
442 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,94 @@ | ||
//enablePlugins(JavaServerAppPackaging) | ||
enablePlugins(JettyPlugin) | ||
|
||
name := "bbb-screenshare-akka" | ||
|
||
organization := "org.bigbluebutton" | ||
|
||
version := "0.0.1" | ||
|
||
scalaVersion := "2.11.6" | ||
//scalaVersion := "2.11.7" | ||
|
||
scalacOptions ++= Seq( | ||
"-unchecked", | ||
"-deprecation", | ||
"-Xlint", | ||
"-Ywarn-dead-code", | ||
"-language:_", | ||
"-target:jvm-1.8", //TODO this was 1.7 | ||
"-encoding", "UTF-8" | ||
) | ||
|
||
resolvers ++= Seq( | ||
"spray repo" at "http://repo.spray.io/", | ||
"rediscala" at "http://dl.bintray.com/etaty/maven", | ||
"blindside-repos" at "http://blindside.googlecode.com/svn/repository/" | ||
) | ||
|
||
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/dev/repo/maven-repo/releases" )) ) | ||
|
||
// We want to have our jar files in lib_managed dir. | ||
// This way we'll have the right path when we import | ||
// into eclipse. | ||
retrieveManaged := true | ||
|
||
libraryDependencies ++= { | ||
val akkaVersion = "2.3.11" | ||
// val akkaVersion = "2.4.2" | ||
Seq( | ||
"com.typesafe.akka" %% "akka-actor" % akkaVersion, | ||
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test", | ||
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion, | ||
"com.typesafe" % "config" % "1.3.0", //TODO JUST ADDED | ||
"ch.qos.logback" % "logback-classic" % "1.0.13" % "runtime", | ||
// "org.pegdown" % "pegdown" % "1.4.0", | ||
// "junit" % "junit" % "4.11", | ||
// "com.etaty.rediscala" %% "rediscala" % "1.4.0", | ||
"commons-codec" % "commons-codec" % "1.8", | ||
"redis.clients" % "jedis" % "2.7.2", | ||
// "org.apache.commons" % "commons-lang3" % "3.2", | ||
"org.red5" % "red5-server" % "1.0.6-RELEASE", //NOTE this can't be runtime | ||
"com.google.code.gson" % "gson" % "1.7.1", | ||
|
||
"org.springframework" % "spring-web" % "4.1.7.RELEASE", | ||
"org.springframework" % "spring-beans" % "4.1.7.RELEASE", | ||
"org.springframework" % "spring-context" % "4.1.7.RELEASE", | ||
"org.springframework" % "spring-core" % "4.1.7.RELEASE", | ||
"org.springframework" % "spring-webmvc" % "4.1.7.RELEASE", | ||
"org.springframework" % "spring-aop" % "4.1.7.RELEASE", | ||
"javax.servlet" % "servlet-api" % "2.5" | ||
|
||
|
||
)} | ||
|
||
//seq(Revolver.settings: _*) | ||
// | ||
//scalariformSettings | ||
|
||
|
||
//----------- | ||
// Packaging | ||
// | ||
// Reference: | ||
// https://github.com/muuki88/sbt-native-packager-examples/tree/master/akka-server-app | ||
// http://www.scala-sbt.org/sbt-native-packager/index.html | ||
//----------- | ||
//mainClass := Some("org.bigbluebutton.deskshare.Boot") | ||
|
||
maintainer in Linux := "Richard Alam <[email protected]>" | ||
|
||
packageSummary in Linux := "BigBlueButton Apps (Akka)" | ||
|
||
packageDescription := """BigBlueButton Screenshare in Akka.""" | ||
|
||
val user = "bigbluebutton" | ||
|
||
val group = "bigbluebutton" | ||
|
||
// user which will execute the application | ||
daemonUser in Linux := user | ||
|
||
// group which will execute the application | ||
daemonGroup in Linux := group | ||
|
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 |
---|---|---|
@@ -1,4 +1,33 @@ | ||
sudo chmod -R 777 /usr/share/red5/webapps | ||
gradle clean war deploy | ||
sudo chmod -R 777 /usr/share/red5/webapps | ||
##!/usr/bin/env bash | ||
#sudo chmod -R 777 /usr/share/red5/webapps | ||
#gradle clean war deploy | ||
#sudo chmod -R 777 /usr/share/red5/webapps | ||
|
||
#!/bin/bash | ||
# deploying 'screenshare' to /usr/share/red5/webapps | ||
|
||
sbt clean | ||
sbt compile | ||
sbt package | ||
sudo rm -r /usr/share/red5/webapps/screenshare | ||
sudo cp -r target/webapp/ /usr/share/red5/webapps/screenshare | ||
|
||
|
||
sudo rm -rf /usr/share/red5/webapps/screenshare/WEB-INF/lib/* | ||
sudo cp ~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/bbb-screenshare-akka_2.11-0.0.1.jar \ | ||
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/scala-library-* \ | ||
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/akka-* \ | ||
~/dev/bigbluebutton/bbb-screenshare/app/target/webapp/WEB-INF/lib/config-1.3.0.jar \ | ||
/usr/share/red5/webapps/screenshare/WEB-INF/lib/ | ||
|
||
|
||
sudo mkdir /usr/share/red5/webapps/screenshare/WEB-INF/classes | ||
cd /usr/share/red5/webapps/screenshare/WEB-INF/classes/ | ||
sudo jar -xf ../lib/bbb-screenshare-akka_2.11-0.0.1.jar | ||
sudo rm /usr/share/red5/webapps/screenshare/WEB-INF/lib/bbb-screenshare-akka_2.11-0.0.1.jar | ||
|
||
sudo chmod -R 777 /usr/share/red5/webapps/screenshare | ||
sudo chown -R red5:red5 /usr/share/red5/webapps/screenshare | ||
|
||
# TODO change the owner username to 'firstuser' | ||
|
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,12 @@ | ||
addSbtPlugin("io.spray" % "sbt-revolver" % "0.7.2") | ||
|
||
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.3.0") | ||
|
||
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0") | ||
|
||
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.0") | ||
|
||
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "2.1.0") | ||
|
||
//addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.7.9") | ||
|
Oops, something went wrong.