Skip to content

Instantly share code, notes, and snippets.

@apcera-code
apcera-code / command-deploy-java-package
Last active September 7, 2016 16:44
Deploying Spark on the Apcera Cloud Platform: This is the command line to deploy the Java 1.8 package with the custom package manifest
apc package build --name java-1.8 java-package.conf
@apcera-code
apcera-code / apache-java.yml
Last active April 19, 2016 18:12
Deploying Spark on the Apcera Cloud Platform: creating a custom java package manifest
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" } ]
$ 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
#!/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