Skip to content

Instantly share code, notes, and snippets.

# Set the base image
FROM ubuntu
# Set config variables.
ENV NVM_DIR /root/.nvm
ENV NODE_VERSION 6.1.0
# Replace shell with bash so we can source files.
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
defaults: &defaults
docker:
- image: chrisroane/frontline-docker-image:0.0.4
working_directory: ~/medstat
environment:
TZ: "/usr/share/zoneinfo/America/New_York"
version: 2
jobs:
@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
# 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
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 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
#!/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