Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.07 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.07 KB

Dockerfiles for devs

Examples with docker-compose

To use these images, please refer to example yml files:

Helpers

  1. Clone this project

    git clone https://github.com/DATA-DOG/dockerfiles.git ~/.datadog-dockerfiles

  2. Add to your ~/.bashrc file

    export PATH=$PATH:~/.datadog-dockerfiles/bin
    
    alias run-behat="docker-compose exec --user www php /var/www/vendor/bin/behat"
    alias run-unit="docker-compose exec --user www php /var/www/vendor/bin/phpunit"
    alias dc="docker-compose"
    

Using docker-gen

for Docker-Compose v1

service nginx stop && service apache2 stop
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy

for Docker-Compose v2

Run on computer startup:

cd ~/.datadog-dockerfiles/proxy;
dc up -d;

building php

cd ~/.datadog-dockerfiles/php-base;
./build.sh 70 1.0.0 # to build 7.0 with tag 1.0.0