Skip to content

Commit

Permalink
#338 - bring back drush helper aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
twardnw committed Jul 24, 2018
1 parent b8b1de6 commit 6967b7e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions images/php/cli/55-cli-helpers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

dsql () {
drush sql-sync $1 default -d -v
}

dfiles () {
drush rsync $1:%files default:%files -d -v
}
4 changes: 4 additions & 0 deletions images/php/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ RUN echo "source /lagoon/entrypoints/80-shell-timeout.sh" >> /home/.bashrc
COPY 61-php-xdebug-cli-env.sh /lagoon/entrypoints/
RUN echo "source /lagoon/entrypoints/61-php-xdebug-cli-env.sh" >> /home/.bashrc

# helper functions
COPY 55-cli-helpers.sh /lagoon/entrypoints/
RUN echo "source /lagoon/entrypoints/55-cli-helpers.sh" >> /home/.bashrc

# SSH Key and Agent Setup
COPY 10-ssh-agent.sh /lagoon/entrypoints/
COPY ssh_config /etc/ssh/ssh_config
Expand Down

0 comments on commit 6967b7e

Please sign in to comment.