Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Set up your local environment (with docker)

Prerequisites

The following procedure assumes you have docker installed on your machine

Docker environment

Clone project https://bitbucket.org/wediaproduct/docker-compose-template-gul/src/master/

This repository contains a docker compose template for running the whole WEDIA application.
Make sure to read the README.md.

It is recommended to use this repository as a template that you can easily update (git pull).
→ Do not run your project from this cloned repository.

Init a project environment

Follow these steps every time you need to setup a new environment:

  • Copy the docker-compose-template folder to your own projects folder:
    Assuming you cloned the repository in ~/git-repositories/wedia-docker-template and you store your projects in ~/projects, and you want to start project projectWedia

    cd ~
    cp -R ./git-repositories/wedia-docker-template ./my-projects/projectWedia
  • Delete content of folders san, db and admin:

    cd ~/my-projects/projectWedia
    rm -rf ./san/*
    rm -rf ./admin/*
    rm -rf ./db/*
  • Start the whole docker environment (assuming ports 8080, 8000, 8888, are not used)

    docker compose up

    At this point, your server is started, you can start configuring it manually.

  • Init environment using predefined script
    In order to ease the basic configuration of the platform, we provide a JS project: https://bitbucket.org/wediaproduct/wedia_auto_installer/src/master/. Clone this repository, then:
    First time, init the project

    npm i

    Then you can finalize an environment configuration by running:

    npm run config

Start a project environment

Follow these steps every time you need to switch from one environment to another:

  • stop all your containers

    docker kill $(docker ps -q)
  • move to environment folder

    cd ~/my-projects/projectWedia
  • start environment

    docker compose up

Init security settings

Cloud environments

MediaCloud setup

Do not forget to ask for a MediaCloud Wedia ID to ESAAS team. This is a requirements for:

  • Artificial intelligence features

  • Players

  • Video transcriptions

  • Documents transcriptions

Email server setup

Do not forget to ask ESAAS team to configure the smtp server, and to make sure the cloud environment is allowed to connect this server.

  • No labels