Skip to content

Instantly share code, notes, and snippets.

Array
(
[Users] => Array
(
[PartnerId] => 100
[Demo] => Array
(
[2] => gbelsky@gmail.com
[3] => 123%@%321
[11] => gbelsky@gmail.com
[Questions] => Array
(
[0] => stdClass Object
(
[Id] => 1
[Text] =>
[Type] => 0
[Alias] =>
)
<?php
/**
* @file
* Provides code to handle failures in circleci.
*/
use Behat\Behat\Hook\Scope\AfterStepScope;
use Behat\Mink\Driver\Selenium2Driver;
use Behat\MinkExtension\Context\RawMinkContext;
#!/bin/bash
# Start mysql and create database.
sudo service mysql start
mysql -uroot -e "CREATE DATABASE circle_test"
set -ex
# Install the required node modules.
npm install
# Set defaults to use for each job.
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
# To update the docker image, change the docker file in this repo: https://github.com/chrisroane/frontlinedocker
# Here is the docker hub repo: https://hub.docker.com/r/chrisroane/frontlinedocker/
defaults: &defaults
docker:
- image: chrisroane/frontlinedocker:latest
working_directory: ~/medstat
environment:
TZ: "/usr/share/zoneinfo/America/New_York"
#!/bin/bash
# Start mysql and create database.
sudo service mysql start
mysql -uroot -e "CREATE DATABASE circle_test"
set -ex
# Install the required node modules.
npm install
# Set defaults to use for each job.
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
defaults: &defaults
docker:
- image: chrisroane/frontline-docker-image:0.0.31
working_directory: ~/medstat
environment:
TZ: "/usr/share/zoneinfo/America/New_York"
version: 2
ServerName localhost
Listen 8080
<VirtualHost *:8080>
DocumentRoot /root/medstat/build
ServerName medstat.local
DirectoryIndex index.php index.html
<Directory /root/medstat/build>
Options FollowSymLinks
# Set the base image
FROM ubuntu:16.04
MAINTAINER Chris Roane <chris.roane@fourkitchens.com>
# This was started from the docker file here:
# https://hub.docker.com/r/fauria/lamp/~/dockerfile/
RUN DEBIAN_FRONTEND=noninteractive
# Replace shell with bash so we can source files.
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
@chrisroane
chrisroane / gist:1d7a21d5373273f8238c03cb63db909f
Created September 6, 2017 18:02
Frontline Portal Dockerfile
# Set the base image
FROM ubuntu:16.04
MAINTAINER Chris Roane <chris.roane@fourkitchens.com>
# This was started from the docker file here:
# https://hub.docker.com/r/fauria/lamp/~/dockerfile/
RUN DEBIAN_FRONTEND=noninteractive
# Replace shell with bash so we can source files.
RUN rm /bin/sh && ln -s /bin/bash /bin/sh