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
#!/bin/bash | |
set -e | |
export TMPDIR=/tmp | |
# Download the package to stage | |
echo "Downloading to /app" | |
curl $STAGER_URL/data > $TMPDIR/raw.tar.gz 2>/dev/null | |
cd /app |
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
$ apc app create rubytest --staging=ruby | |
... | |
Packaging... done | |
Uploading package... done | |
[STAGING] Subscribing to the staging process... | |
[STAGING] Beginning staging with 'ruby' pipeline, 2 stager(s) defined. | |
[STAGING] Launching instance of stager 'ruby'... | |
[STAGING] Downloading package for processing... | |
[STAGING] Found Rack application | |
[STAGING] Stager needs relaunching |
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
name: "java-1.8" | |
version: "1.8.77" | |
provides [ | |
{ runtime: "java" }, | |
{ runtime: "java-1" }, | |
{ runtime: "java-1.8" }, | |
{ runtime: "java-1.8.0" }, | |
{ runtime: "java-1.8.0_77" } ] |
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
apc package build --name java-1.8 java-package.conf |
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
name: "spark" | |
version: "1.6.1" | |
sources [ | |
{url: "http://apache.mirror.anlx.net/spark/spark-1.6.1/spark-1.6.1-bin-hadoop2.6.tgz"}, | |
] | |
build_depends [ | |
{ package: "build-essential" } | |
] |
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
apc package build --name spark-1.6 spark-package.conf |
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
name: "spark-apcera" | |
version: "1.6.1" | |
build_depends [ | |
{package: "build-essential"} | |
] | |
depends [ | |
{runtime: "spark-1.6.0"} | |
] |
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
apc package build --name spark-apcera-1.6 spark-apcera-package.conf |
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
#!/bin/bash | |
set -e | |
export SPARK_LOG_DIR=/app/logs | |
export VIRTUAL_NETWORK_IP=`ifconfig | grep "inet addr" | cut -d: -f2 | grep -v "169." | grep -v "127.0.0.1" | cut -d ' ' -f1` | |
$SPARK_HOME/sbin/start-master.sh -h $VIRTUAL_NETWORK_IP | |
tail -f /app/logs/* |
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
export SPARK_WORKER_DIR=/app/work | |
export SPARK_LOG_DIR=/app/logs | |
export VIRTUAL_NETWORK_IP=`ifconfig | grep "inet addr" | cut -d: -f2 | grep -v "169." | grep -v "127.0.0.1" | cut -d ' ' -f1` | |
$SPARK_HOME/sbin/start-slave.sh -h $VIRTUAL_NETWORK_IP $SPARK_MASTER | |
tail -f /app/logs/* |
OlderNewer