Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
32dad0e
autorun collectstatic when django container starts, added caddy_data …
ihsaan-ullah Jul 11, 2024
7fb6998
programs and datasets bug fixed
ihsaan-ullah Jul 13, 2024
71e7eb3
if condition format fixed
ihsaan-ullah Jul 13, 2024
b398385
Downloading submissions witha stream v1
nicomy Jul 17, 2024
4378b90
updated toml file with python version and bpython version, deleted lo…
ihsaan-ullah Jul 18, 2024
4a6a1a5
Change base image for Dockerfile.flower (#1520)
Didayolo Jul 23, 2024
548f001
Resources bundles dumps (#1505)
ihsaan-ullah Jul 23, 2024
ecd8ed8
Merge pull request #1541 from nicomy/submissions_bulk
Didayolo Jul 23, 2024
cbf0ff2
Improve formatting
Didayolo Jul 23, 2024
f1bc022
leaderboard api 500 error resolved (#1527)
ihsaan-ullah Jul 24, 2024
0f8b802
Merge pull request #1550 from codalab/develop
Didayolo Jul 24, 2024
c112a3a
Merge pull request #1543 from codalab/shell_plus
Didayolo Jul 24, 2024
55ecb2b
Merge pull request #1548 from codalab/submission_bulk
Didayolo Jul 24, 2024
92f94d6
Merge pull request #1552 from codalab/develop
Didayolo Jul 25, 2024
baa423a
Merge pull request #1528 from codalab/programs_and_datasets
Didayolo Jul 25, 2024
6c81635
Merge pull request #1522 from codalab/collect_static
Didayolo Jul 26, 2024
7d01068
Changed submission name to add ID when downloading many submissions (…
Didayolo Aug 21, 2024
a37139a
Server Status: submissions limit removed (#1562)
ihsaan-ullah Aug 21, 2024
cf33e33
Email template fixes (#1567)
ihsaan-ullah Aug 22, 2024
79e2850
task dataset/program removal fixed
ihsaan-ullah Aug 22, 2024
37d97c1
Updated docker-compose to docker compose
Aug 29, 2024
cf76c0c
Merge pull request #1571 from codalab/readmeChanges
Didayolo Aug 29, 2024
56bdd5e
Merge pull request #1569 from codalab/tasks_remove_dataset
Didayolo Aug 29, 2024
62c1700
whiltelist emails leaking fixed (#1560)
ihsaan-ullah Aug 29, 2024
d24f565
Updates to server_status and monitor_queues (#1568)
ihsaan-ullah Sep 2, 2024
fba9140
[Feature] Delete orphan files (#1575)
Didayolo Sep 3, 2024
959d776
Fix string concat in case of no email in analytics api
OhMaley Sep 16, 2024
0b4f0a2
Poetry error tentative fix (#1588)
ObadaS Oct 1, 2024
747acb2
`Release PR#1` - Display release version in Codabench footer (#1583)
ihsaan-ullah Oct 1, 2024
7ced144
`Release PR#2` Release version will load dynamically from version.jso…
ihsaan-ullah Oct 1, 2024
de55ef3
`Release PR#3` created workflow for new releases (#1584)
ihsaan-ullah Oct 3, 2024
137251f
Updates Sept 15-22 2024 (#1593)
bbearce Oct 11, 2024
5fc4c2e
Merge pull request #1585 from OhMaley/fix/storage/analytics-api-handl…
Didayolo Oct 11, 2024
b5f8a7e
Merge pull request #1626 from codalab/fix/storage/analytics-api-handl…
Didayolo Oct 11, 2024
3c41aa7
organizers can now delete forum posts (#1613)
ihsaan-ullah Oct 11, 2024
79ef40b
bundles renamed to competition bundles, swapped postions of bundles a…
ihsaan-ullah Oct 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/release-version-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Update version.json and create PR

on:
release:
types: [published]

jobs:
update-version:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get release information
id: get_release
uses: dawidd6/action-get-latest-release@v3
with:
release: true

- name: Update version.json
run: |
echo '{
"tag_name": "${{ steps.get_release.outputs.tag_name }}",
"release_name": "${{ steps.get_release.outputs.name }}",
"published_at": "${{ steps.get_release.outputs.published_at }}",
"body": "${{ steps.get_release.outputs.body }}"
"release_url": "${{ steps.get_release.outputs.html_url }}"
}' > version.json

- name: Create new branch
run: |
git checkout -b update-version-${{ steps.get_release.outputs.tag_name }}
git add version.json
git commit -m "Update version.json for release ${{ steps.get_release.outputs.tag_name }}"

- name: Push branch
run: |
git push origin update-version-${{ steps.get_release.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-version-${{ steps.get_release.outputs.tag_name }}
title: "Update version.json for release ${{ steps.get_release.outputs.tag_name }}"
body: "This PR updates version.json with the latest release information."
base: develop # Target branch for the pull request
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ server_config.yaml

.DS_Store
.DS_Store?

caddy_config/
caddy_data/
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
FROM python:3.9
FROM python:3.9.20

RUN apt-get update && apt-get install -y gcc build-essential && rm -rf /var/lib/apt/lists/*

ENV PYTHONUNBUFFERED 1


RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
# Poetry location so future commands (below) work

ENV PATH $PATH:/root/.local/bin
# Want poetry to use system python of docker container
RUN poetry config virtualenvs.create false
RUN poetry config virtualenvs.in-project false

COPY pyproject.toml ./
COPY poetry.lock ./
COPY pyproject.toml poetry.lock ./

# Install dependencies
RUN poetry install

RUN poetry install

WORKDIR /app
2 changes: 1 addition & 1 deletion Dockerfile.compute_worker
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV PYTHONUNBUFFERED 1
RUN apt-get update && curl -fsSL https://get.docker.com | sh


RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
# Poetry location so future commands (below) work
ENV PATH $PATH:/root/.local/bin
# Want poetry to use system python of docker container
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.compute_worker_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apt-get install -y nvidia-container-toolkit
# BB - not convinced we need this
ENV USE_GPU 1

RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
# Poetry location so future commands (below) work
ENV PATH $PATH:/root/.local/bin
# Want poetry to use system python of docker container
Expand Down
19 changes: 8 additions & 11 deletions Dockerfile.flower
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
FROM python:3.9-alpine
FROM python:3.9

# PYTHONUNBUFFERED: Force stdin, stdout and stderr to be totally unbuffered. (equivalent to `python -u`)
# PYTHONHASHSEED: Enable hash randomization (equivalent to `python -R`)
# PYTHONDONTWRITEBYTECODE: Do not write byte files to disk, since we maintain it as readonly. (equivalent to `python -B`)
ENV PYTHONUNBUFFERED=1 PYTHONHASHSEED=random PYTHONDONTWRITEBYTECODE=1

# Get latest root certificates
RUN apk add --no-cache ca-certificates && update-ca-certificates curl
RUN apk add curl
RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates

# # Install the required packages
RUN curl -sSL https://install.python-poetry.org | python3 -
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
# Poetry location so future commands (below) work
ENV PATH $PATH:/root/.local/bin
# Want poetry to use system python of docker container
Expand All @@ -18,13 +22,6 @@ RUN poetry add redis=3.0.1
RUN poetry add flower=0.9.3
RUN poetry add celery="<5.0.0"

# PYTHONUNBUFFERED: Force stdin, stdout and stderr to be totally unbuffered. (equivalent to `python -u`)
# PYTHONHASHSEED: Enable hash randomization (equivalent to `python -R`)
# PYTHONDONTWRITEBYTECODE: Do not write byte files to disk, since we maintain it as readonly. (equivalent to `python -B`)


ENV PYTHONUNBUFFERED=1 PYTHONHASHSEED=random PYTHONDONTWRITEBYTECODE=1

# Default port
EXPOSE 5555

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rabbitmq
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM rabbitmq:management
FROM rabbitmq:3.13.7-management
ARG WORKER_CONNECTION_TIMEOUT
RUN echo "consumer_timeout = $WORKER_CONNECTION_TIMEOUT" >> /etc/rabbitmq/conf.d/10-defaults.conf
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ If you wish to configure your own instance of Codabench platform, here are the i

```
$ cp .env_sample .env
$ docker-compose up -d
$ docker-compose exec django ./manage.py migrate
$ docker-compose exec django ./manage.py generate_data
$ docker-compose exec django ./manage.py collectstatic --noinput
$ docker compose up -d
$ docker compose exec django ./manage.py migrate
$ docker compose exec django ./manage.py generate_data
$ docker compose exec django ./manage.py collectstatic --noinput
```

You can now login as username "admin" with password "admin" at http://localhost/
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
django:
build: .
# NOTE: We use watchmedo to reload gunicorn nicely, Uvicorn + Gunicorn reloads don't work well
command: bash -c "cd /app/src && watchmedo auto-restart -p '*.py' --recursive -- gunicorn asgi:application -w 2 -k uvicorn.workers.UvicornWorker -b :8000 -b :80 --capture-output --log-level debug"
command: bash -c "python manage.py collectstatic --noinput && cd /app/src && watchmedo auto-restart -p '*.py' --recursive -- gunicorn asgi:application -w 2 -k uvicorn.workers.UvicornWorker -b :8000 -b :80 --capture-output --log-level debug"
environment:
- DATABASE_URL=postgres://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
env_file: .env
Expand Down
Loading