Skip to content

Instantly share code, notes, and snippets.

View ulhas's full-sized avatar
🚀
Done is better than perfect.

Ulhas ulhas

🚀
Done is better than perfect.
View GitHub Profile
@ulhas
ulhas / Dockerfile
Created April 9, 2017 20:33
Docker file for SailsJS app
FROM node:latest
RUN npm install -g sails grunt npm-check-updates
COPY ./package.json /package.json
RUN npm install
RUN npm install --save sails-postgresql@beta
COPY ./compose/sails/entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r//' /entrypoint.sh
@ulhas
ulhas / entrypoint.sh
Created April 11, 2017 04:45
Script to run when spinning up SailsJS container
#!/bin/bash
set -e
cmd="$@"
export REDIS_URL=redis://redis:6379
# the official postgres image uses 'postgres' as default user if not set explictly.
if [ -z "$POSTGRES_USER" ]; then
export POSTGRES_USER=postgres
fi