Girish M b77a9c060d removing dependencies of test and configure.sh | 4 years ago | |
---|---|---|
.github | 4 years ago | |
.vscode | 4 years ago | |
resource | 4 years ago | |
.dockerignore | 4 years ago | |
.gitignore | 4 years ago | |
Dockerfile | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
configure.sh | 4 years ago | |
docker-compose.yml | 4 years ago | |
index.js | 4 years ago | |
package-lock.json | 4 years ago | |
package.json | 4 years ago |
OpenProject and Mattermost integration to log time for a work package. This integration is built along the lines of op-slack-connector
docker run -it -p 8080:80 -e SECRET_KEY_BASE=secret openproject/community:latest
orsudo mkdir -p /var/lib/openproject/{pgdata, static}
docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \
-v /var/lib/openproject/pgdata:/var/openproject/pgdata \
-v /var/lib/openproject/static:/var/openproject/assets \
openproject/community:latest
docker stop openproject
docker start openproject
docker run --name mattermost-preview -d --publish 8065:8065 --add-host dockerhost:127.0.0.1 mattermost/mattermost-preview
./ngrok http 3000
npm install
to install npm dependencies.env
file. Run sh configure.sh
to create .env
using command line. The entries in .env
would contain following:OP_URL=http://<your host or ip address>:8080/api/v3/ #needed for pointing to OpenProject installation
INT_URL=<ngrok url>/ #needed for exposing the integration running on port 3000
MM_URL=http://<your host or ip address>:8065/api/v4/ #needed for pointing to Mattermost installation
MATTERMOST_ACCESS_TOKEN=<personal access token> # https://docs.mattermost.com/developer/personal-access-tokens.html
MATTERMOST_SLASH_TOKEN=<use the mattermost slash command token> #needed for slash command validation
OP_ACCESS_TOKEN=<openproject access token obtained from profile page>