Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P plugin_dbui
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

  • w2pext
  • plugin_dbui
  • Wiki
  • DevEnvironment

Last edited by LE GAC Renaud Jun 14, 2016
Page history

DevEnvironment

Running the development environment

The development environment runs on the local host. It allows to run/test/debug web2py applications.

Install

  • Install the common tools for example in ~/mywap/w2pext

      > cd ~/mywap/w2pext
      > git clone https://gitlab.in2p3.fr/w2pext/utilities
  • Create the script dev for example in ~/bin

      #!/usr/bin/bash
      ~/mywap/w2pext/utilities/dev.py $* 
  • Make the script dev executable:

      > cd ~/bin
      > chmod +x dev
  • Build the docker images w2pext-degs:x.y.z with web2py and third party libraries. The docker daemon has to run and you need privileges to run docker commands).

      > cd ~/mywap/w2pext
      > git clone https://gitlab.in2p3.fr/w2pext/docker
      > cd docker
      > ./build.py

Run

  • The code of your application is in ~/mywap/myapp

  • Create the configuration file ~/mywap/docker/dev.json for the dev container:

      {
          "/home/me/mywap/myapp": [
              "/opt/web2py/applications/myapp"
          ]
      }
  • Run the dev container

      > dev
  • The URL to access to your application is http://localhost:8000/myapp

  • Try, for more information:

      > dev -h
Clone repository
  • BranchingModel
  • CustomizingLiClipse
  • DevEnvironment
  • DocumentingJavascriptCode
  • DocumentingPythonCode
  • ExtJS6
  • GitRepositoryThirdParty
  • SenchaCmd
  • Home