Sign inSign up

etutorplusplus/task-administration

By etutorplusplus

•Updated 10 days ago

eTutor Task Administration

Image
0

2.1K

etutorplusplus/task-administration repository overview

⁠eTutor Task-Administration

This application provides a REST-interface for the eTutor task administration.

⁠Docker

Start a new instance of the application using Docker:

docker run -p 8080:8080 \ 
  -e SPRING_DATASOURCE_URL="jdbc:postgresql://postgres:5432/etutor" \
  -e SPRING_DATASOURCE_USERNAME=etutor \
  -e SPRING_DATASOURCE_PASSWORD=myPwd \
  -e SPRING_FLYWAY_USER=etutor_admin \
  -e SPRING_FLYWAY_PASSWORD=adPwd \
  -e [email protected] \
  -e SPRING_MAIL_HOST=smtp.uni-linz.ac.at \
  -e SPRING_MAIL_PORT=587 \
  -e SPRING_MAIL_USERNAME=etutor \
  -e SPRING_MAIL_PASSWORD=myPwd \
  -e MOODLE_TOKEN=tbd \
  -e MOODLE_URL=https://moodle.etutor.dke.uni-linz.ac.at/ \
  -e MOODLE_ENABLED=true \
  etutorplusplus/task-administration

or with Docker Compose:

version: '3.8'

services:
    task-administration:
        image: etutorplusplus/task-administration
        restart: unless-stopped
        ports:
            -   target: 8080
                published: 8080
        environment:
            SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/etutor
            SPRING_DATASOURCE_USERNAME: etutor
            SPRING_DATASOURCE_PASSWORD: myPwd
            SPRING_FLYWAY_USER: etutor_admin
            SPRING_FLYWAY_PASSWORD: adPwd
            SPRING_MAIL_SENDER: [email protected]
            SPRING_MAIL_HOST: smtp.uni-linz.ac.at
            SPRING_MAIL_PORT: 587
            SPRING_MAIL_USERNAME: etutor
            SPRING_MAIL_PASSWORD: myPwd
            MOODLE_TOKEN: tbd
            MOODLE_URL: https://moodle.etutor.dke.uni-linz.ac.at/
            MOODLE_ENABLED: true
⁠Environment Variables

In production environment, the application requires two database users:

  • A database administrator user which has the permission to create the tables.
  • A JPA user which has read/write access (SELECT, INSERT, UPDATE, DELETE, TRUNCATE) to the database tables (see ./docker/create_user.sh for example user creation statement).

In development environment, one user will be used for both by default.

The users must be configured via environment variables. The clients have to be configured via environment variables as well (X/Y stands for a 0-based index).

VariableDescription
SERVER_PORTThe server port.
SPRING_DATASOURCE_URLJDBC-URL to the database
SPRING_DATASOURCE_USERNAMEThe username of the JPA user.
SPRING_DATASOURCE_PASSWORDThe password of the JPA user.
SPRING_FLYWAY_USERThe username of the database administrator user.
SPRING_FLYWAY_PASSWORDThe password of the database administrator user.
SPRING_MAIL_SENDERThe email address that should be used as "sender".
SPRING_MAIL_HOSTThe host/ip-address of the SMTP server.
SPRING_MAIL_PORTThe port of the SMTP server.
SPRING_MAIL_USERNAMEThe username of the SMTP server.
SPRING_MAIL_PASSWORDThe password of the SMTP server.
MOODLE_TOKENThe token for the moodle webservice.
MOODLE_URLThe URL to the moodle.
MOODLE_ENABLEDWhether the moodle synchronization is enabled.

Tag summary

Content type

Image

Digest

sha256:9fe5f97e0…

Size

179.2 MB

Last updated

10 days ago

docker pull etutorplusplus/task-administration