Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6014e3c
Update podman containers
cjh1 Aug 1, 2024
08b1d8e
upload task interface added and placeholder api and functions created
ihsaan-ullah Oct 23, 2024
061d8a0
upload function completed on client side, client.js upload_task api f…
ihsaan-ullah Oct 24, 2024
1105efe
task upload backend api completed, upload task tests created, dataset…
ihsaan-ullah Oct 31, 2024
2f820dc
comments added
ihsaan-ullah Oct 31, 2024
41c2a6b
link to documentation added in the upload task interface
ihsaan-ullah Nov 1, 2024
6e3b7d2
remove d-r-c and upgrade channels-redis
bbearce Dec 2, 2024
7bf0d47
Patch submission_participant_counts.py script
Didayolo Dec 3, 2024
6cbb09f
Merge branch 'develop' of https://github.com/codalab/codabench into d…
Didayolo Dec 3, 2024
1daa2f1
removed release version body from the workflow and version.json to fi…
ihsaan-ullah Dec 3, 2024
258c3ec
Merge branch 'develop' into issue_1446
ihsaan-ullah Dec 3, 2024
08fccf0
poetry.lock regenerate
bbearce Dec 3, 2024
63a70b1
Merge pull request #1688 from codalab/issue_1446
Didayolo Dec 5, 2024
95888cd
Merge pull request #1690 from codalab/release_version_updates
Didayolo Dec 5, 2024
cf90bc6
Merge pull request #1638 from codalab/upload_task
Didayolo Dec 10, 2024
cf0b69e
Merge pull request #1556 from cjh1/podman-containers
ihsaan-ullah Dec 12, 2024
8087831
Merge pull request #1702 from codalab/podman_containers
Didayolo Dec 12, 2024
18cc11c
Optimization `PR#3` - Home page counters (#1699)
ihsaan-ullah Dec 12, 2024
a86526d
Caddy image update
Dec 17, 2024
d1d26c5
Merge pull request #1706 from codalab/caddyUpdate
Didayolo Dec 17, 2024
1cd4389
Added search bar in Django Admin Users page for emails and username (…
ObadaS Dec 17, 2024
0fa1da6
Some more interesting fields for the Users page on the Django Admin I…
ObadaS Dec 19, 2024
65861d0
Search field + more information displayed on the Competition page of …
ObadaS Dec 19, 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
4 changes: 1 addition & 3 deletions .github/workflows/release-version-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ jobs:
id: get_release
run: |
response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/releases/latest)
echo "$response" | jq '.tag_name, .name, .published_at, .body, .html_url' | tee /tmp/release_info
echo "$response" | jq '.tag_name, .name, .published_at, .html_url' | tee /tmp/release_info
echo "tag_name=$(echo "$response" | jq -r .tag_name)" >> $GITHUB_ENV
echo "name=$(echo "$response" | jq -r .name)" >> $GITHUB_ENV
echo "published_at=$(echo "$response" | jq -r .published_at)" >> $GITHUB_ENV
echo "body=$(echo "$response" | jq -r .body)" >> $GITHUB_ENV
echo "html_url=$(echo "$response" | jq -r .html_url)" >> $GITHUB_ENV

# Step 3: Update version.json file with latest information
Expand All @@ -34,7 +33,6 @@ jobs:
"tag_name": "${{ env.tag_name }}",
"release_name": "${{ env.name }}",
"published_at": "${{ env.published_at }}",
"body": "${{ env.body }}",
"html_url": "${{ env.html_url }}"
}' > version.json

Expand Down
19 changes: 13 additions & 6 deletions Containerfile.compute_worker_podman
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ FROM fedora:37
RUN dnf -y update && \
# https://bugzilla.redhat.com/show_bug.cgi?id=1995337#c3
rpm --setcaps shadow-utils 2>/dev/null && \
dnf -y install podman fuse-overlayfs python3.8 python3-pip \
dnf -y install podman fuse-overlayfs python3.9 \
--exclude container-selinux && \
dnf clean all && \
rm -rf /var/cache /var/log/dnf* /var/log/yum.*

# Setup user
# Setup user
RUN useradd worker; \
echo -e "worker:1:999\nworker:1001:64535" > /etc/subuid; \
echo -e "worker:1:999\nworker:1001:64535" > /etc/subgid;
Expand Down Expand Up @@ -47,16 +47,23 @@ RUN echo -e "[registries.search]\nregistries = ['docker.io']\n" > /etc/container
ENV PYTHONUNBUFFERED 1
ENV CONTAINER_ENGINE_EXECUTABLE podman

# Get pip for 3.8
RUN python3.8 -m ensurepip --upgrade

WORKDIR /home/worker/compute_worker

ADD compute_worker/ /home/worker/compute_worker

RUN chown worker:worker -R /home/worker/compute_worker

RUN pip3.8 install -r /home/worker/compute_worker/compute_worker_requirements.txt
RUN curl -sSL https://install.python-poetry.org | python3.9 -
# 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
# So we get 3.9
RUN poetry config virtualenvs.prefer-active-python true
COPY ./compute_worker/pyproject.toml ./
COPY ./compute_worker/poetry.lock ./
RUN poetry install

CMD celery -A compute_worker worker \
-l info \
Expand Down
21 changes: 15 additions & 6 deletions Containerfile.compute_worker_podman_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ RUN curl -s -L https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x8
rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm && \
dnf -y update && \
dnf module install -y nvidia-driver:latest-dkms && \
dnf -y install podman fuse-overlayfs python3.8 python3-pip nvidia-container-runtime nvidia-container-toolkit \
dnf -y install podman fuse-overlayfs python3.9 nvidia-container-runtime nvidia-container-toolkit \
cuda --exclude container-selinux && \
dnf clean all && \
rm -rf /var/cache /var/log/dnf* /var/log/yum.*

# Setup user
# Setup user
RUN useradd worker; \
echo -e "worker:1:999\nworker:1001:64535" > /etc/subuid; \
echo -e "worker:1:999\nworker:1001:64535" > /etc/subgid;
Expand Down Expand Up @@ -49,15 +49,24 @@ RUN mkdir /codabench && \
chown worker:worker /codabench && \
# Set up podman registry for dockerhub
echo -e "[registries.search]\nregistries = ['docker.io']\n" > /etc/containers/registries.conf && \
# Get pip for 3.8
python3.8 -m ensurepip --upgrade

WORKDIR /home/worker/compute_worker

ADD compute_worker/ /home/worker/compute_worker

RUN chown worker:worker -R /home/worker/compute_worker && \
pip3.8 install -r /home/worker/compute_worker/compute_worker_requirements.txt
RUN curl -sSL https://install.python-poetry.org | python3.9 -
# 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
# So we get 3.9
RUN poetry config virtualenvs.prefer-active-python true
COPY ./compute_worker/pyproject.toml ./
COPY ./compute_worker/poetry.lock ./
RUN poetry install

RUN chown worker:worker -R /home/worker/compute_worker

CMD nvidia-smi && celery -A compute_worker worker \
-l info \
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
# Web Services
#-----------------------------------------------
caddy:
image: caddy:2.7.6
image: caddy:2.8.4
env_file: .env
environment:
- ACME_AGREE=true
Expand Down
6 changes: 6 additions & 0 deletions home_page_counters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"public_competitions": 0,
"users": 0,
"submissions": 0,
"last_updated": "2000-01-01T00:00:00.000000+00:00"
}
Loading