feat: joj3-forge-convert
All checks were successful
push / build (push) Successful in 5m0s

This commit is contained in:
张泊明518370910136 2025-06-01 08:35:35 -04:00
parent 40cfc09d3c
commit ad9530adfb
GPG Key ID: CA088E6D9284F870
4 changed files with 7 additions and 4 deletions

View File

@ -11,7 +11,7 @@ RUN sed -i s@/deb.debian.org/@/mirrors.tuna.tsinghua.edu.cn/@g /etc/apt/sources.
useradd -u 1000 -ms /bin/bash tt && \
useradd -u 1001 -ms /bin/bash student && \
usermod -aG student tt && \
echo "student ALL=(tt) NOPASSWD:SETENV:/usr/local/bin/joj3\ntt ALL=(student) NOPASSWD:SETENV:ALL" > /etc/sudoers.d/joj
echo "student ALL=(tt) NOPASSWD:SETENV:/usr/local/bin/joj3,/usr/local/bin/joj3-forge-convert\ntt ALL=(student) NOPASSWD:SETENV:ALL" > /etc/sudoers.d/joj
# install joint-teapot && joj3-forge
# TODO: change it to FOCS gitea mirror for deployment
@ -19,8 +19,8 @@ RUN pip install --no-cache-dir --break-system-packages \
git+https://ghfast.top/https://github.com/BoYanZh/Joint-Teapot \
git+https://ghfast.top/https://github.com/joint-online-judge/JOJ3-config-generator
# install joj3 & repo-health-checker
COPY bin/joj3 bin/repo-health-checker /usr/local/bin/
# install joj3 & repo-health-checker & joj3-forge-convert
COPY bin/joj3 bin/repo-health-checker bin/joj3-forge-convert /usr/local/bin/
USER student
WORKDIR /home/student

View File

@ -9,7 +9,7 @@ prepare:
$(MAKE) -C JOJ3
cp JOJ3/build/joj3 JOJ3/build/repo-health-checker bin/
ls -lha bin
upx --best bin/*
upx --best bin/joj3 bin/repo-health-checker
ls -lha bin
force-build: prepare

View File

3
bin/joj3-forge-convert Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/bash
set -e
joj3-forge convert /home/tt/.config/joj