-
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 #566 from tira-io/development
Development
- Loading branch information
Showing
26 changed files
with
757 additions
and
480 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Documentation | ||
on: | ||
push: | ||
branches: | ||
- development | ||
|
||
jobs: | ||
build-doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get install -y python3-pip | ||
pip install sphinx furo | ||
cd python-client/sphinx | ||
sphinx-apidoc -o . ../tira | ||
make html | ||
touch _build/html/.nojekyll | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: python-client/sphinx/_build/html | ||
target-folder: nightly |
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,27 @@ | ||
name: Documentation | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get install -y python3-pip | ||
pip install sphinx furo | ||
cd python-client/sphinx | ||
sphinx-apidoc -o . ../tira | ||
make html | ||
touch _build/html/.nojekyll | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: python-client/sphinx/_build/html | ||
target-folder: ./ | ||
clean-exclude: | ||
- nightly |
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 |
---|---|---|
|
@@ -12,34 +12,22 @@ Components: | |
|
||
## Setup Your Local Development Environment | ||
|
||
We use [dev containers](https://code.visualstudio.com/docs/devcontainers/containers) to simplify development. Please install Docker and an IDE with support for dev containers on your machine (we usually use VS Code). | ||
|
||
First, please clone the repository: | ||
``` | ||
git clone [email protected]:tira-io/tira.git | ||
``` | ||
|
||
Please change your directory to `application`: | ||
``` | ||
cd application | ||
``` | ||
|
||
Install your virtual environment via: | ||
``` | ||
make setup | ||
``` | ||
Please open the directory `application` in VS Code, and confirm to use the provided dev container. | ||
|
||
If you want to work on production data, please ensure that you can login to ssh.webis.de, and then do the following: | ||
|
||
``` | ||
make import-data-from-dump | ||
``` | ||
|
||
Then, to start TIRA locally, please start: | ||
|
||
``` | ||
make webpack-watch | ||
``` | ||
|
||
and | ||
To start TIRA locally, please run: | ||
|
||
``` | ||
make run-develop | ||
|
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,8 @@ | ||
{ | ||
"image": "webis/tira-application:basis-0.0.93", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "ms-toolsai.jupyter"] | ||
} | ||
} | ||
} |
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,14 +1,53 @@ | ||
# docker build -t webis/tira-application:basis-0.0.76 -f f.Dockerfile . | ||
FROM webis/tira-application:basis-0.0.75 | ||
|
||
ENV PATH="${PATH}:/root/.cargo/bin" | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > foo.sh && \ | ||
sh ./foo.sh -y && \ | ||
rm foo.sh && \ | ||
pip3 install coverage coverage-badge && \ | ||
apk add libffi-dev && \ | ||
pip3 uninstall -y discourse-client-in-disraptor && \ | ||
pip3 uninstall -y PyGithub && \ | ||
pip3 install discourse-client-in-disraptor PyGithub==1.59.1 | ||
# docker build -t webis/tira-application:basis-0.0.93 -f Dockerfile.application-dev . | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y python3 python3-pip python-is-python3 mysql-client nginx sudo podman git \ | ||
&& apt-get install -y gcc default-libmysqlclient-dev pkg-config \ | ||
&& rm -Rf /var/cache/apt \ | ||
&& rm -Rf /root/.cache/pip \ | ||
&& echo '%podman ALL=(ALL) ALL' > /etc/sudoers.d/podman | ||
|
||
ADD requirements.txt /requirements.txt | ||
|
||
RUN pip3 install -r /requirements.txt \ | ||
&& rm -Rf /var/cache/apt \ | ||
&& rm -Rf /root/.cache/pip | ||
|
||
RUN pip3 uninstall -y diffir \ | ||
&& pip3 install git+https://github.com/mam10eks/diffir && \ | ||
addgroup --gid 1010 tira && \ | ||
adduser --disabled-password --uid 1010 --ingroup tira tira && \ | ||
adduser tira root && \ | ||
mkdir /tira-tmp-debug && \ | ||
mkdir -p /tira/application/src/tira && \ | ||
mkdir -p /etc/nginx/logs && \ | ||
mkdir -p /mnt/ceph/tira && \ | ||
mkdir -p /root/.ir_datasets \ | ||
&& rm -Rf /var/cache/apt \ | ||
&& rm -Rf /root/.cache/pip \ | ||
&& apt-get install -y fuse-overlayfs | ||
|
||
COPY src/tira_nginx.conf /etc/nginx/nginx.conf | ||
|
||
RUN chown -R tira:tira /usr/local && \ | ||
chmod 777 /var/run/ && \ | ||
echo "tira ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers &&\ | ||
touch /var/log/tira_debug.txt &&\ | ||
touch /tira/application/src/debug.log &&\ | ||
chown tira:tira /var/log/tira_debug.txt &&\ | ||
chown tira:tira /tira/application/src/debug.log &&\ | ||
chown -R tira:tira /root/.ir_datasets &&\ | ||
chmod 777 /root/.ir_datasets &&\ | ||
chmod 777 /root &&\ | ||
mkdir -p /home/tira/.tira &&\ | ||
mkdir -p /mnt/ceph/tira/log/tira-application &&\ | ||
mkdir /home/tira/.ssh &&\ | ||
mkdir /mnt/ceph/tira/state &&\ | ||
mkdir -p /usr/share/nginx/logs/ && \ | ||
chmod 777 /usr/share/nginx/logs/ && \ | ||
touch /mnt/ceph/tira/state/tira_vm_states.sqlite3 &&\ | ||
chown tira:tira -R /home/tira &&\ | ||
chown tira:tira -R /tira | ||
|
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
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
Oops, something went wrong.