Git Product home page Git Product logo

devenv-docker's Introduction

general

Goal of repository is to provide convenient source for getting config for devenv by author and, maybe, people who find it useful.

usage and, possible, (part of) readme of future project

container building

there's both instructions in bibucket-pipelines.yml and hub.docker.com autobuilds can be used for that
to launch phpunit tests in hub.docker.com autobuilds define env var RUN_TESTS in autobuilds config.
Note that migrations part commented and you may need to uncomment/create own in both solutions

local docker

docker should be installed to run commands below

database

db name: app
test db name: app_test
user: app
password: pass

xdebug

to xdebug expect port 9001

prerequisites

in dev env container nginx and fpm workers works under app:app user that is 1000:1000 corresponding to default ubuntu user UID:GID, so no right issues expected. familiarize with Dockerfile precisely to understand how it work so

to build and launch

docker build -t app .
docker run -d -p80:80 --add-host=host.docker.internal:host-gateway --name app -v ${PWD}:/var/www/html -v ${HOME}/.ssh:/home/app/.ssh app

to launch after built and launched

docker start app

to enter for cli commands

with xdebug

docker exec -u${UID} -it -w /var/www/html app /bin/bash

without xdebug

docker exec -u${UID} -it -w /var/www/html -e XDEBUG_MODE=off app /bin/bash

devenv-docker's People

Contributors

achertovsky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.