Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
www
 
 
 
 
 
 
 
 

wcmf-workspace

A development environment for wCMF projects consisting of:

Installation

  • Clone this respository into <base_dir>

    cd <base_dir>
    git clone https://github.com/iherwig/wcmf-workspace.git
    

    This will create the following directories and files:

    <base_dir>
    - wcmf-workspace
      - docker
        - docker
          - mysql
            - conf
              - my.cnf
          - webserver
            - config
              - php.ini
            - Dockerfile
        - .env
        - docker-compose.yml
      - eclipse
        - wcmf-eclipse.setup
      - www
        - .devcontainer
          - devcontainer.json
        - .vscode
          - launch.json
        - index.php
    
  • Eclipse installation

    • Download and install the Eclipse Installer
    • Launch the installer and switch to Advanced Mode using the button in the top right corner
    • Press the + sign to open the Add user products dialog
    • Browse File System... to <base_dir>/wcmf-workspace/eclipse/wcmf-eclipse.setup and press OK
    • Switch to Simple Mode using the tools button in the lower left corner
    • Choose the product Eclipse IDE for wCMF Developers and press Install
    • Press Launch and select a workspace directory
    • Close Eclipse once before using it to make sure that all preferences are updated
    • For more information about using Eclipse with PHP visit the PDT website and to learn more about the modeling tools visit the Eclipse Papyrus website
  • Docker setup

    • Download and install Docker

    • Adjust paths, ports and additional configuration in <base_dir>/wcmf-workspace/docker/.env according to your environment (see default values)

    • Start the docker containers

      cd <base_dir>/wcmf-workspace/docker
      docker-compose up -d
      
    • Test the installation by opening the URL

      http://localhost/index.php
      

      or

      http://localhost:<http_port>/index.php
      

      if you changed the value of the http_port variable

Notes

  • When connecting to the MySQL server from inside the webserver's docker container (e.g. from a PHP script) you have to use the host name mysql

  • Use the following command to open a shell in the webserver's docker container:

    docker exec -it docker_webserver_1 bash
    

About

A development environment for wCMF projects

Resources

License

Releases

No releases published

Packages

No packages published