Skip to content

Instantly share code, notes, and snippets.

View makslevental's full-sized avatar
💩

Maksim Levental makslevental

💩
View GitHub Profile
citi
bankoftheozarks
1stsource
accessnationalcorporation
acnbcorporation
alliedfirstbancorp
allyfinancial
ambfinancialcorpcommonstock
americanbankinccommonstock
americannationalbankshares
# Example settings for databrary.conf
# This file will be looked for in the current directory whenever databrary is run, or where specied by the -c flag.
## Secret key used to sign tokens, cookies, etc. Should be long random string in production environment.
secret = "bob"
## Port to listen on (as http or https, as per ssl settings)
port = 8642
ssl {
## SSL certificate and private key for https. If these are not specified, http will be used.
#cert = ["certificate.pem", "chain1.pem", ...]
dist/setup/setup configure --with-compiler /home/databrary/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc --package-db /home/databrary/.stack/snapshots/x86_64-linux/lts-6.30/7.10.3/pkgdb --package-db /home/databrary/src/.stack-work/install/x86_64-linux/lts-6.30/7.10.3/pkgdb
sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list
echo 'deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse' >> /etc/apt/sources.list
echo 'deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse' >> /etc/apt/sources.list
apt-get install -y libgmp-dev git yasm nginx npm librack2-dev gcc g++ autoconf automake zlib1g-dev \
x264 ffmpeg fdkaac ibavformat-dev libswscale-dev libavcodec-dev libavutil-dev
FROM ubuntu:16.04
MAINTAINER "Maksim Levental" <[email protected]>
ENV container docker
RUN sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list
RUN echo 'deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse' >> /etc/apt/sources.list
RUN echo 'deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse' >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y libgmp-dev git yasm npm libcrack2-dev gcc g++ autoconf automake zlib1g-dev \
x264 ffmpeg fdkaac libavformat-dev libswscale-dev libavcodec-dev libavutil-dev curl \
@makslevental
makslevental / databrary
Created February 18, 2017 17:54
how to get databrary working
apt-get install -y libgmp-dev git yasm nginx npm librack2-dev gcc g++ autoconf automake zlib1g-dev \
x264 ffmpeg fdkaac ibavformat-dev libswscale-dev libavcodec-dev libavutil-dev pkg-config
install stack using website instructions
stack setup
make sure you have postres running and databrary.conf with the right config for postgres
stack build --ghc-options "-L/usr/lib/x86_64-linux-gnu/ -lavformat -lavcodec -lavutil -lavdevice -lavfilter -lswscale -lcrack"
version: '3'
services:
databrary:
build:
context: ./databrary/
dockerfile: Dockerfile_final
image: databrary_databrary:final
depends_on:
- databrary_postgres
- databrary_solr
Database.PostgreSQL.Typed.Types.pgDecodeValue,
called from Database.PostgreSQL.Typed.Types.pgDecodeColumnNotNull,
called from Databrary.Model.Tag.lookupSlotTagCoverage.\.\,
called from Databrary.Model.Tag.lookupSlotTagCoverage.\,
called from Database.PostgreSQL.Typed.Query.fmap.\,
called from Database.PostgreSQL.Typed.Query.fmap,
called from Database.PostgreSQL.Typed.Query.pgRunQuery,
called from Database.PostgreSQL.Typed.Query.pgQuery,
called from Databrary.Service.DB.dbQuery.\,
called from Databrary.Service.DB.dbQuery,
import Button from "react-md/lib/Buttons/Button";
import UserButton from "./UserButton";
import Register from "./Register";
import React, {Component} from "react";
import {CloseButton, NavigationDrawer} from "react-md/lib/NavigationDrawers";
import NavLink from "./NavLink";
import Profile from "./Profile"
import {connect} from "react-redux";
import { Link as RouterLink, Route, Switch } from 'react-router-dom';
import Home from "./Home";
import { Provider } from "react-redux";
import store from "./redux/store";
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from "react-router-dom";
import App from "./components/App";
import "./scss/index.css";
import MuiThemeProvider from "material-ui/styles/MuiThemeProvider";
import WebFontLoader from "webfontloader";
import getMuiTheme from "material-ui/styles/getMuiTheme";
import Button from "react-md/lib/Buttons/Button";
import UserButton from "./UserButton";
import Register from "./Register";
import React, {Component} from "react";
import {NavigationDrawer} from "react-md/lib/NavigationDrawers";
import NavLink from "./NavLink";
import Profile from "./Profile";
import {connect} from "react-redux";
import {Link as RouterLink, Route, Switch} from "react-router-dom";
import {withRouter} from 'react-router';