From 89c3b754906e57dc6cdd81d519311ee1d219cf2c Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 11 Dec 2018 18:09:40 +0100 Subject: [PATCH] Add aliases and scripts for ahoy, composer, docker-compose and drush --- Dockerfile | 11 +++++++++-- drush.sh | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 drush.sh diff --git a/Dockerfile b/Dockerfile index 65bad0c..8e4ce55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.7 LABEL com.example.vendor="LakeDrops" \ maintainer="juergen.haas@lakedrops.com" \ - version="1.2.0" \ + version="1.2.1" \ description="An image for GitLab runner to build and test Drupal projects." ARG compose_version=1.21.2 @@ -95,4 +95,11 @@ RUN mkdir -p /root/.ssh && \ cd .. && \ rm -rf git-extras && \ \ - composer global require "hirak/prestissimo:^0.3" + composer global require "hirak/prestissimo:^0.3" && \ + \ + ln -s /usr/local/bin/ahoy /usr/local/bin/a && \ + ln -s /usr/local/bin/composer /usr/local/bin/c && \ + ln -s /usr/local/bin/docker-compose /usr/local/bin/d-c && \ + \ + +COPY drush.sh /usr/local/bin/drush diff --git a/drush.sh b/drush.sh new file mode 100755 index 0000000..33bc00e --- /dev/null +++ b/drush.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +docker-compose exec --user root php drush $@ -- GitLab