-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from curie-data-factory/doccano
Add postgresql as Doccano Backend
- Loading branch information
Showing
7 changed files
with
58 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: v2 | ||
name: doccano | ||
appVersion: 1.6.2 | ||
version: 1.4.2 | ||
version: 2.0.0 | ||
description: A Helm chart for doccano, Open source text annotation tool for machine learning practitioner. | ||
home: https://doccano.herokuapp.com/ | ||
icon: https://raw.githubusercontent.com/doccano/doccano/master/docs/images/logo/doccano.png | ||
|
@@ -11,6 +11,10 @@ maintainers: | |
- name: armandleopold | ||
email: [email protected] | ||
kubeVersion: ">= 1.14.0-0" | ||
dependencies: | ||
- name: postgresql | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 11.1.9 | ||
keywords: | ||
- annotation | ||
- ml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-conf | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
bootstrap.sh: |- | ||
#!/bin/bash | ||
export PATH=$PATH:/home/doccano/.local/bin | ||
# install dependency | ||
python -m pip install doccano | ||
python -m pip install 'doccano[postgresql]' | ||
# Initialize database. | ||
doccano init | ||
# Create a super user. | ||
doccano createuser --username admin --password {{ .Values.ADMIN_PASSWORD }} | ||
# Start Task Thread | ||
doccano task & | ||
# Start web server. | ||
doccano webserver --port 8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters