Skip to content

Instantly share code, notes, and snippets.

@jamesratcliffe
Last active March 24, 2022 12:48
Show Gist options
  • Select an option

  • Save jamesratcliffe/c65d17f1ebf1bbce793f1bf87d215325 to your computer and use it in GitHub Desktop.

Select an option

Save jamesratcliffe/c65d17f1ebf1bbce793f1bf87d215325 to your computer and use it in GitHub Desktop.

Revisions

  1. jamesratcliffe revised this gist Mar 24, 2022. 1 changed file with 6 additions and 9 deletions.
    15 changes: 6 additions & 9 deletions docker_composer_ssh-agent
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,6 @@
    eval $(ssh-agent); \
    docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v $(pwd):/var/www/html \
    -w /var/www/html \
    --volume $SSH_AUTH_SOCK:/ssh-auth.sock \
    --env SSH_AUTH_SOCK=/ssh-auth.sock \
    laravelsail/php81-composer:latest \
    composer install --ignore-platform-reqs
    docker run --rm --interactive --tty \
    -u "$(id -u):$(id -g)" \
    -v $(pwd):/var/www/html \
    -w /var/www/html \
    laravelsail/php74-composer:latest \
    touch .composer && composer install --ignore-platform-reqs
  2. jamesratcliffe created this gist Mar 24, 2022.
    9 changes: 9 additions & 0 deletions docker_composer_ssh-agent
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    eval $(ssh-agent); \
    docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v $(pwd):/var/www/html \
    -w /var/www/html \
    --volume $SSH_AUTH_SOCK:/ssh-auth.sock \
    --env SSH_AUTH_SOCK=/ssh-auth.sock \
    laravelsail/php81-composer:latest \
    composer install --ignore-platform-reqs