Giter Club home page Giter Club logo

v-je / docker Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 12.0 10 KB

Easy to use docker environment for PHP development. With zero configuration supports hosting multiple websites, valid SSL certificates (for HTTPS and HTTP 2 development), HTTP2 support. See https://r.je/vje-docker-virtual-server

Home Page: https://r.je/vje-docker-virtual-server

Dockerfile 100.00%
docker lamp xampp xampp-server development-environment mysql mariadb mysql-database symfony yii

docker's People

Contributors

rajeshkumarpadhy avatar trpb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker's Issues

Use v.je without fixed IPs (To do in July)

This is a drop-in replacement for my v.je minimal dev environment ( https://r.je/vje-minimal-virtual-server ) which uses Docker instead of Vagrant.

Currently it works, but requires setting fixed IPs for each container to match the Vagrant configuration where v.je points to 192.168.56.2.

There are two branches of this code at the moment

  • master which uses s.je pointed to 127.0.0.1
  • v.je which uses v.je pointed to 192.168.56.2

I cannot yet point v.je to 127.0.0.1 as my students are actively using the vagrant box until the end of this academic term. To do:

[ ] Get IT to install docker on the lab machines (previously Hyper-V caused it to break)
[ ] Verify the image works (potentially student accounts wont have permission to bind applications to localhost:443/localhost:80)
[ ] Point v.je to 127.0.0.1

Install composer/phpunit inside the php container

Currently docker compose run phpunit executes phpunit from the phpunit/phpunit container. This hasn't been updated in several years and uses a very dated version of PHP. This alone is impractical but phpunit should use the same php version/config as the website.

  1. Install composer directly in the PHP container
  2. Install phpunit through composer
  3. Investigate a way to create a shortcut for docker compose run php vendor/bin/phpunit ideally something like docker compose run phpunit. It would be better to have this as part of the default configuration and not rely on local manually defined aliases.

Installation problem

I ran into this issue while trying to build the image on Ubuntu:
configure: error: rtnetlink.h is required, install the linux-headers package: apk add --update linux-headers
ERROR: `/tmp/pear/temp/xdebug/configure --with-php-config=/usr/local/bin/php-config' failed
The command '/bin/sh -c pecl install xdebug' returned a non-zero code: 1
ERROR: Service 'php' failed to build : Build failed

Installation cammot connect https://v.je/test.html ping v.je works

Novice working through install.
WARN[0000] /home/mj/Documents/WebsiteDocker/docker-compose.yml: version is obsolete
[+] Running 8/8
✔ Network websitedocker_default Created 0.2s
✔ Container websitedocker-updatecerts-1 S... 0.3s
✔ Container websitedocker-mysql-1 Created 0.3s
✔ Container websitedocker-maildev-1 Start... 0.2s
✔ Container websitedocker-landingpage-1 S... 0.2s
✔ Container websitedocker-php-1 Started 0.2s
✔ Container websitedocker-web-1 Created 0.2s
✔ Container websitedocker-databaseimportexport-1 Created 0.2s
Error response from daemon: driver failed programming external connectivity on endpoint websitedocker-mysql-1 (3d03ea340a67e49386cf70b940189d1ba9df380f28b12f175ba47714cd63b6b5): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use

ss -tunap | grep LISTEN
tcp LISTEN 0 70 127.0.0.1:33060 0.0.0.0:* users:(("mysqld",pid=895,fd=21))

/$ find mysql
find: ‘mysql’: No such file or directory

v.je page not loading "Can't reach page"

After downloading configuration files and running "docker compose up -d", v.je does not load within browser. I had it working a few days ago and continued on with Ch. 4 (MySQL), but will not load with existing folders or freshly re-created folders. NGINX can be accessed through in port 80 when running.

Specifically in Docker, landingpage-1 and updatecerts-1 fail to start with landingpage displaying the following error:

fatal: destination path '/websites/default/public' already exists and is not an empty directory.

Operarion CREATE USER failed

Hi, I'm getting this error, already tried from fresh and clean env.

Fedora 37 (Workstation), using official Docker repos.

Logs:
docker-databaseimportexport-1 | ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 's.je'@'%'
docker-databaseimportexport-1 | ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'student'@'%'
docker-databaseimportexport-1 | ERROR 1064 (42000) at line 1332: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

Complete log: https://danieltolentino.paste.lol/docker_php/raw

Also, NGINX returns 403 Forbidden if I trie to access v.je

Thank you.

Errors on MacBook Pro M2 (Apple Silicon)

Hello - I am attempting to run it on a MacBook Pro M2, but the command "docker-compose up" is failing with the following error messages:

 ! landingpage The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ! updatecerts The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ! databaseimportexport The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Thank you!

Jeremy

V.je - expired cert

When using v.je there's error:
SEC_ERROR_EXPIRED_CERTIFICATE

Please help.

Error response from daemon: Ports are not available

website-php-1 | [24-Mar-2023 15:58:10] NOTICE: ready to handle connections
website-updatecerts-1 exited with code 0

Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:3306 -> 0.0.0.0:0: listen tcp 0.0.0.0:3306: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

I need some help here..Stackoverflow solutions dont work. Thanks

Instructions for installing on Windows don't work

When trying to install the PHP development environment into docker from Powershell I get the error:

error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.

On Windows 10 Pro I ran the docker desktop installer as administrator, I ran the Docker Desktop App as administrator and I opened powershell as administrator but when I ran the command:

docker run --rm -v ${PWD}:/install vjedev/installer:latest
I got the above error.

So I logged into Github, downloaded the package, cloned it than ran

docker compose up
got the same error as above

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.