Code Monkey home page Code Monkey logo

Comments (4)

tomsik68 avatar tomsik68 commented on August 10, 2024 1

My school for example uses xampp to teach working with SQL databases and programming with php.

That's an excellent use case for this image, thanks for telling me all this! Your text inspired me to add some points in my to-do list above 👍

So thanks for saving me (and potentially my classmates) some time!

If you or your classmates have any questions about the setup, feel free to create an issue in this repo, I'll try to help if I can.

from docker-xampp.

stacmv avatar stacmv commented on August 10, 2024 1

I specified port 80 (this is JSON array of one element), but it seams not working (if even should, I don't know).

Oh, I was wrong. There are no problems with ports.

Since VS Code creates dev container based on image, it does not exec last CMD from Dockerfile, so in my case servers were not started.

I added startup.sh command into devcontainer.json:

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sh /startup.sh",

All settled!

from docker-xampp.

jotoho avatar jotoho commented on August 10, 2024

My school for example uses xampp to teach working with SQL databases and programming with php.

Anyone who doesn't want or cannot work on those school computers needs some method to use the software on their own hardware and it is much easier to just pull and use one already configured image that's pretty much plug-and-play instead of messing around with three or more containers and getting them to behave, especially for people with less experience using docker or setting up servers.

This has become even more important with school in my country having gone into homeschooling-mode due to the pandemic.

Besides that your image is one of the more often updated ones out there, which makes it seem likely for your version to be the most up-to-date one.

So thanks for saving me (and potentially my classmates) some time!

from docker-xampp.

stacmv avatar stacmv commented on August 10, 2024

BTW, how to use xampp docker image with VS Code Remote Containers feature? More specific - how to bind ports.

In VS Code's devcontainer.json there is a directive:

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [80],

I specified port 80 (this is JSON array of one element), but it seams not working (if even should, I don't know).

from docker-xampp.

Related Issues (20)

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.