Sign inSign up

epflidevelop/os-wp-cronjob

By epflidevelop

•Updated almost 9 years ago

FROM os-wp-httpd image, with USER www-data (to avoid being root)

Image
0

5.6K

epflidevelop/os-wp-cronjob repository overview

⁠ jahia2wp⁠
jahia2wp

⁠ Control your migration from Jahia to WordPress

Changelog ⁠ RDT ⁠ Travis ⁠ Codecov ⁠ License ⁠


⁠Roadmap and Overview

We will first focus on automation and maintenance, with the objective of driving all the creation process from one shared spreadsheet (aka configuration source).

Icons are used to mark the progress as follows: :balloon:, :tada:, :champagne: or :gift_heart: when available, :construction: when work in progress, :tent: when implemented as prototype in jahiap repo⁠

  1. :balloon: installing a functional WordPress to any given URL

     $ python jahia2wp.py generate $WP_ENV http://localhost
     ...
    
     $ python jahia2wp.py check $WP_ENV http://localhost
     WordPress site valid and accessible at http://localhost
    
     $ python jahia2wp.py admins $WP_ENV http://localhost
     admin:[email protected] <administrator>
     user123456:[email protected] <administrator>
    
  2. :tada: extracting configuration for a given plugin

     $ python jahia2wp.py extract-plugin-config $WP_ENV http://localhost output_file
     ...
    
  3. :tada: once plugin structures (specific & generic) has been created, it's possible to check if plugin list is correct

     $ python jahia2wp.py list-plugins $WP_ENV http://localhost
     ...
    

Add --config to also see plugin configuration and --plugin=<name> to see a given plugin.

    $ python jahia2wp.py list-plugins $WP_ENV http://localhost --config --plugin=<name>
    ...

4. :champagne: applying those first two steps to every row of our configuration source

    $ python jahia2wp.py generate-many path/to/source.csv
    ...

    $ python jahia2wp.py backup-many path/to/source.csv
    ...

    $ python jahia2wp.py inventory $WP_ENV /srv/your-env/localhost
    INFO - your-env - inventory - Building inventory...
    path;valid;url;version;db_name;db_user;admins
    ...

5. :construction: maintaining the website and the plugins

    $ python jahia2wp.py version $WP_ENV http://localhost
    4.8

    $ python jahia2wp.py clean $WP_ENV http://localhost
    ...

    $ python jahia2wp.py backup $WP_ENV http://localhost
    ...

We will secondly add support for migration of a simple site:

  1. :gift_heart: Export the content of a Jahia website as a zipped package

     $ python jahia2wp.py download dcsl --username=foo
     Jahia password for user 'foo':
     ...
    
  2. :tent: Parse zipped package (XML and files) as python objects

  3. :tent: Import parsed pages into WordPress (raw content)

  4. :tent: Support translation, hierarchy, menu, sidebar

And lastly we will extend the support to other Jahia boxes, mainly thanks to WordPress shortcodes

  1. Import static Jahia boxes into WordPress (shortcodes)
  2. Import web-services powered Jahia boxes into WordPress (people, faq, actu, memento, infoscience, and so on ...)

Calling jahia2wp.py with -h will give you details on available options

$ python jahia2wp.py -h
...

⁠Changelog

All notable changes to this project are documented in CHANGELOG.md⁠.

⁠Install and Usage

Head to the documentation⁠ for next practical steps

⁠Contribution

Check out CONTRIBUTING.md⁠ for more details

As well as our CODE_OF_CONDUCT.md⁠, where we pledge to making participation in our project and our community a harassment-free experience for everyone

⁠Contributor list

Big up to all the following people, without whom this project will not be

Tag summary

Content type

Image

Digest

Size

205.1 MB

Last updated

almost 9 years ago

docker pull epflidevelop/os-wp-cronjob