Push to the branch (git push origin my-new-feature)ĭocker-LAMP is licensed under the Apache 2.0 License.I should be able to ping from within a container whatever server the host can ping.Commit your changes (git commit -am 'Add some feature')\.Create your feature branch (git checkout -b my-new-feature).If you wish to submit a bug fix or feature, you can create a pull request and it will be merged pending a code review. I also changed the setup to create ubuntu using arm64v8 so that this project can run very well on Apple Silicon (especially on MAC M1). This image was originally based on mattrayner/lamp, with a few changes to make it compatible with the Laravel, CodeIgniter, WHMCS (with ionCube 10.2), and other CMS/Framework. # Curl out the contents of our new containerĬurl " $(docker-machine ip ):3000/ " Inspiration # Run the image as a containerĭocker run -d -p "3000:80 " gagalkoding/lamp:latest Command Lineįirst, get the ID of your running container with docker ps, then run the below command replacing CONTAINER_ID and DATABASE_NAME with your required values:ĭocker build -t=gagalkoding/lamp:latest -f. We recommend logging in with the admin user mentioned in the introduction to this section. So your application needs a database - you have two options.ĭocker-LAMP comes pre-installed with phpMyAdmin available from NOTE: you cannot use the root user with PHPMyAdmin. If you need this login later, you can run docker logs CONTAINER_ID and you should see it at the top of the log. This user can be used locally and externally, either by connecting to your MySQL port (default 3306) and using a tool like MySQL Workbench or Sequel Pro, or through phpMyAdmin. When you first run the image you'll see a message showing your admin user's password. It is not available from outside your docker image or through phpMyAdmin. This account is only available locally, i.e. Componentīy default, the image comes with a root MySQL account that has no password. The table below shows the PHP, MySQL and Apache versions that come with it. I searched in vein for an image that had everything I wanted, up-to-date packages, a simple interface, good documentation and active support.ĭesigned to be a single interface that just 'gets out of your way', and works on 18.04 with php 5, 7, and 8. With Ubuntu 18.04 images on the latest tags, Docker-LAMP is flexible enough to use with all of your LAMP projects.Īs a developer, part of my day to day role is to build LAMP applications. Mariadb does not start automatically, im working on a fix.ĭocker-LAMP for Apple Silicon MAC M1 is a set of docker images that include the arm64v8/ubuntu:18.04 baseimage, along with a LAMP stack (Apache, MariaDB and multiple PHP) all in one handy package especially for Apple Silicon Mac M1 (ARM architecture).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |