Skip to content

Commit

Permalink
Remove selenium and easy_install
Browse files Browse the repository at this point in the history
Also update tox.ini
  • Loading branch information
otargowski authored and DietPawel committed Aug 31, 2023
1 parent 7f6d2b4 commit 8f59544
Show file tree
Hide file tree
Showing 26 changed files with 19 additions and 1,286 deletions.
32 changes: 3 additions & 29 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,20 @@ main component — the web interface.
Installation
------------

Easy Installer
~~~~~~~~~~~~~~~~~~~~~~~~~

You can easily install and run oioioi out of the box with oioioi_easy_installer.
Just download the oioioi_easy_installer archive, unpack it and run::

./oioioi.sh install

to install oioioi. Then you can run::

./oioioi.sh start
./oioioi.sh stop

to start and stop oioioi.

Make sure to change default superuser password. To do that:
1. Login to the superuser with default credentials (username:admin, password:admin).
2. Click username ("admin") in upper-right corner of the webpage.
3. Click "Change password".
4. Fill and submit password change form.

You can also update your oioioi instance by typing::

./oioioi.sh update

Docker (for deployment)
~~~~~~~~~~~~~~~~~~~~~~~

The easy installer method above uses Docker under the hood. Additionally, you can manually use docker files to create images containing our services.
You can manually use docker files to create images containing our services.

To run the infrastructure simply::

"OIOIOI_CONFIGDIR=<config directory>" "OIOIOI_VERSION=<oioioi_version>" docker-compose up
"OIOIOI_VERSION=<oioioi_version>" docker-compose up

Make sure to change default superuser password, same as in the automatic method.

To start additional number of workers::

"OIOIOI_CONFIGDIR=<config directory>" "OIOIOI_VERSION=<oioioi_version>" docker-compose up --scale worker=<number>
"OIOIOI_VERSION=<oioioi_version>" docker-compose up --scale worker=<number>

as described `in Docker docs`_.

Expand Down Expand Up @@ -177,7 +152,6 @@ Testing
OIOIOI has a big suite of unit tests. You can run them in following way:

* ``test.sh`` - a simple test runner, use from virtualenv
* ``test_selenium.sh`` - long selenium tests, use from virtualenv
* ``tox [path/to/module[::TestClass[::test_method]]] [-- arg1 arg2 ...]`` - runs pytest in isolated environemnt

Supported args:
Expand Down
11 changes: 0 additions & 11 deletions db_init.sh

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
stop_grace_period: 1m
web:
image: sio2project/oioioi-dev
command: ["/sio2/oioioi/selenium_init.sh"]
command: ["/sio2/oioioi/oioioi_init.sh", "--dev"]
build:
context: .
dockerfile: Dockerfile
Expand Down
55 changes: 0 additions & 55 deletions docker-compose-selenium.yml

This file was deleted.

File renamed without changes.
254 changes: 0 additions & 254 deletions extra/easy-install/helpers/create_settings.py

This file was deleted.

Loading

0 comments on commit 8f59544

Please sign in to comment.