Skip to content

Commit 65f8079

Browse files
authored
Merge branch 'master' into enhancement/document-sort-order
2 parents 1724d29 + 712c0a3 commit 65f8079

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3515
-2060
lines changed
File renamed without changes.

.github/ISSUE_TEMPLATE/01-question.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: "\U0001F4AC Question"
3+
about: For the question to confirm suspiciously behaviors or feature usage. Please use StackOverflow if your question is general usage or help with your environment
4+
5+
---
6+
7+
How to reproduce the behaviour
8+
---------
9+
<!-- Before submitting an issue, make sure to check the docs and closed issues and FAQ to see if any of the solutions work for you. https://github.com/chakki-works/doccano/wiki/Frequently-Asked-Questions -->
10+
11+
<!--
12+
Include a code example or the steps that led to the problem. Please try to be as specific as possible. -->
13+
14+
Your Environment
15+
---------
16+
<!-- Include details of your environment. -->
17+
18+
* Operating System:
19+
* Python Version Used:
20+
* When you install doccano:
21+
* How did you install doccano (Heroku button etc):

.github/ISSUE_TEMPLATE/02-bug.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: "\U0001F6A8 Bug Report"
3+
about: For the bug report or unexpected behavior differing from the docs
4+
5+
---
6+
7+
How to reproduce the behaviour
8+
---------
9+
<!-- Before submitting an issue, make sure to check the docs and closed issues and FAQ to see if any of the solutions work for you. https://github.com/chakki-works/doccano/wiki/Frequently-Asked-Questions -->
10+
11+
<!-- Include a code example or the steps that led to the problem. Please try to be as specific as possible. -->
12+
13+
Your Environment
14+
---------
15+
<!-- Include details of your environment.-->
16+
* Operating System:
17+
* Python Version Used:
18+
* When you install doccano:
19+
* How did you install doccano (Heroku button etc):

.github/ISSUE_TEMPLATE/03-install.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: "\U000023F3 Installation Problem"
3+
about: For the problem that you faced when installing doccano which none of the suggestions in the docs and other issues helped
4+
5+
---
6+
7+
<!-- Before submitting an issue, make sure to check the docs and closed issues and FAQ to see if any of the solutions work for you. https://github.com/chakki-works/doccano/wiki/Frequently-Asked-Questions -->
8+
9+
How to reproduce the problem
10+
---------
11+
<!-- Include the details of how the problem occurred. Which option did you choose to install doccano? Did you come across an error? What else did you try? -->
12+
13+
```bash
14+
# copy-paste the error message here
15+
```
16+
17+
Your Environment
18+
---------
19+
<!-- Include details of your environment.-->
20+
* Operating System:
21+
* Python Version Used:
22+
* When you install doccano:
23+
* How did you install doccano (Heroku button etc):

.github/ISSUE_TEMPLATE/04-request.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: "\U0001F381 Feature Request"
3+
about: For the proposal to improve or enhance doccano
4+
5+
---
6+
7+
Feature description
8+
---------
9+
<!-- Please describe the feature: Which area of the library is it related to? What specific solution would you like? -->

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,5 @@ pip-selfcheck.json
198198
node_modules/
199199
bundle/
200200
webpack-stats.json
201+
202+
.vscode

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ python:
66
env:
77
- DATABASE=sqlite
88
- DATABASE=postgres
9+
- DATABASE=mssql
910

1011
services:
1112
- docker
@@ -16,6 +17,11 @@ before_install:
1617
if [[ "${DATABASE}" = "postgres" ]]; then
1718
docker run --rm --name=postgres --network=doccano -d -e POSTGRES_USER=user -e POSTGRES_PASSWORD=pass -e POSTGRES_DB=db postgres
1819
export DATABASE_URL="postgres://user:pass@postgres:5432/db?sslmode=disable"
20+
21+
elif [[ "${DATABASE}" = "mssql" ]]; then
22+
docker run --rm --name=mssql --network=doccano -d -e ACCEPT_EULA=y -e SA_PASSWORD=sUp3rS3cr3t mcr.microsoft.com/mssql/server:2017-latest
23+
docker exec -it mssql sh -c "while ! /opt/mssql-tools/bin/sqlcmd -U SA -P sUp3rS3cr3t -Q 'CREATE DATABASE db;'; do sleep 3; done"
24+
export DATABASE_URL="mssql://SA:sUp3rS3cr3t@mssql:1433/db?sslmode=disable"
1925
fi
2026
2127
install:
@@ -25,7 +31,7 @@ script:
2531
- docker build --target=builder --tag=doccano-test .
2632
- >
2733
if [[ "${DATABASE}" != "sqlite" ]]; then
28-
docker run --network doccano -e DATABASE_URL="${DATABASE_URL}" -it doccano-test sh -c 'app/manage.py migrate && app/manage.py test api.tests server.tests'
34+
docker run --network doccano -e DATABASE_URL="${DATABASE_URL}" -it doccano-test sh -c 'app/manage.py wait_for_db && app/manage.py migrate && app/manage.py test api.tests server.tests'
2935
fi
3036
3137
before_deploy:
@@ -35,16 +41,19 @@ deploy:
3541
- provider: script
3642
script: tools/cd.sh travis-${TRAVIS_BUILD_NUMBER}
3743
on:
44+
repo: chakki-works/doccano
3845
branch: master
3946

4047
- provider: script
4148
script: tools/cd.sh ${TRAVIS_TAG}
4249
on:
50+
repo: chakki-works/doccano
4351
tags: true
4452

4553
- provider: pages
4654
skip_cleanup: true
4755
github_token: $GITHUB_TOKEN
4856
local_dir: site
4957
on:
58+
repo: chakki-works/doccano
5059
branch: master

Dockerfile

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ FROM python:${PYTHON_VERSION}-stretch AS builder
44
ARG NODE_VERSION="8.x"
55
RUN curl -sL "https://deb.nodesource.com/setup_${NODE_VERSION}" | bash - \
66
&& apt-get install --no-install-recommends -y \
7-
nodejs=8.16.0-1nodesource1
7+
nodejs
88

9-
RUN apt-get install --no-install-recommends -y \
10-
unixodbc-dev=2.3.4-1
9+
COPY tools/install-mssql.sh /doccano/tools/install-mssql.sh
10+
RUN /doccano/tools/install-mssql.sh --dev
1111

1212
COPY app/server/static/package*.json /doccano/app/server/static/
1313
RUN cd /doccano/app/server/static \
@@ -33,19 +33,8 @@ RUN cd /doccano \
3333

3434
FROM python:${PYTHON_VERSION}-slim-stretch AS runtime
3535

36-
RUN apt-get update \
37-
&& apt-get install --no-install-recommends -y \
38-
curl=7.52.1-5+deb9u9 \
39-
gnupg=2.1.18-8~deb9u4 \
40-
apt-transport-https=1.4.9 \
41-
&& curl -fsS https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
42-
&& curl -fsS https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql.list \
43-
&& apt-get update \
44-
&& ACCEPT_EULA=Y apt-get install --no-install-recommends -y \
45-
msodbcsql17=17.3.1.1-1 \
46-
mssql-tools=17.3.0.1-1 \
47-
&& apt-get remove -y curl gnupg apt-transport-https \
48-
&& rm -rf /var/lib/apt/lists/*
36+
COPY --from=builder /doccano/tools/install-mssql.sh /doccano/tools/install-mssql.sh
37+
RUN /doccano/tools/install-mssql.sh
4938

5039
RUN useradd -ms /bin/sh doccano
5140

Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)