forked from danlynn/ember-rails-docker-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·32 lines (25 loc) · 933 Bytes
/
setup.sh
File metadata and controls
executable file
·32 lines (25 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
# Note that this will automagically be ran if you have rvm installed.
# This shell file sets up the following aliases whenever you cd into
# the current directory tree.
#
# If rvm is not installed then you can simply run:
# . setup.sh
#
# ember
alias npm='fig -f fig-dev.yml run --rm npm'
alias bower='fig -f fig-dev.yml run --rm bower'
alias ember='fig -f fig-dev.yml run --rm ember'
# rails
alias bundle='fig run railssvr bundle'
alias rails='fig run railssvr rails'
alias rake='fig run railssvr rake'
# TODO: Add bash {service} <- opens container in bash
# $ docker run --interactive --tty --entrypoint=/bin/bash 766162a99b23 --login
# TODO: Add ssh {service} <- ssh into sshd running in rails container
echo 'Configured aliases for current project:'
echo ' npm, bower, ember, bundle, rails, rake'
# Creates project directories if they don't exist
mkdir -p cordova
mkdir -p ember
mkdir -p rails