Skip to content

Instantly share code, notes, and snippets.

View jasonwjones's full-sized avatar

Jason Jones jasonwjones

View GitHub Profile
# Simple composed Docker Essbase server from image that has been pushed to a registry. Assumes that there is a .env
# file in the same folder that defines SQL_PW (the password for the SQL database), EPM_PW (the password to use
# for the Essbase server and WebLogic contianer (can't be 'password' but can be 'password1', for example), and
# that REGISTRY is set, e.g. your organization name in Docker Hub.
#
# Once this file and the .env file are in place, you can start Essbase by running docker-compose up --detached
# You can then follow the logs by running docker-compose logs --follow essbase
#
# If you follow the output and everything goes right, then you should see various MaxL commands running that
# load up the sample cubes. You can go to launch EAS via its Java web launch link by navigating to
@jasonwjones
jasonwjones / CubeOpWrapper.java
Last active October 14, 2019 11:06
Forcing Essbase to run an app-level calc script with the Java API
package com.appliedolap.test.calclist;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.essbase.api.base.EssException;
import com.essbase.api.datasource.IEssCube;
import com.essbase.api.datasource.IEssOlapServer;
import com.essbase.api.session.IEssbase;
import com.saxifrages.essbase.primitives.CubeTarget;
@jasonwjones
jasonwjones / NSArray+Random.h
Created July 10, 2012 23:52
NSArray category for getting a random index or object
//
// NSArray+Random.h
//
// Just some nice little addons for NSArray that I'm surprised don't actually exist already. Grab
// a random object or an index for a random object. Bam. Presto.
//
// Created by Jason Jones on 5/18/12.
// Copyright (c) 2012 Saxifrage Systems LLC. All rights reserved.
//