This commit is contained in:
		
							parent
							
								
									40cfc09d3c
								
							
						
					
					
						commit
						ad9530adfb
					
				|  | @ -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 1000 -ms /bin/bash tt && \ | ||||||
|     useradd -u 1001 -ms /bin/bash student && \ |     useradd -u 1001 -ms /bin/bash student && \ | ||||||
|     usermod -aG student tt && \ |     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 | # install joint-teapot && joj3-forge | ||||||
| # TODO: change it to FOCS gitea mirror for deployment | # 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/BoYanZh/Joint-Teapot \ | ||||||
|     git+https://ghfast.top/https://github.com/joint-online-judge/JOJ3-config-generator |     git+https://ghfast.top/https://github.com/joint-online-judge/JOJ3-config-generator | ||||||
| 
 | 
 | ||||||
| # install joj3 & repo-health-checker | # install joj3 & repo-health-checker & joj3-forge-convert | ||||||
| COPY bin/joj3 bin/repo-health-checker /usr/local/bin/ | COPY bin/joj3 bin/repo-health-checker bin/joj3-forge-convert /usr/local/bin/ | ||||||
| 
 | 
 | ||||||
| USER student | USER student | ||||||
| WORKDIR /home/student | WORKDIR /home/student | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							|  | @ -9,7 +9,7 @@ prepare: | ||||||
| 	$(MAKE) -C JOJ3 | 	$(MAKE) -C JOJ3 | ||||||
| 	cp JOJ3/build/joj3 JOJ3/build/repo-health-checker bin/ | 	cp JOJ3/build/joj3 JOJ3/build/repo-health-checker bin/ | ||||||
| 	ls -lha bin | 	ls -lha bin | ||||||
| 	upx --best bin/* | 	upx --best bin/joj3 bin/repo-health-checker | ||||||
| 	ls -lha bin | 	ls -lha bin | ||||||
| 
 | 
 | ||||||
| force-build: prepare | force-build: prepare | ||||||
|  |  | ||||||
							
								
								
									
										3
									
								
								bin/joj3-forge-convert
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								bin/joj3-forge-convert
									
									
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,3 @@ | ||||||
|  | #!/usr/bin/bash | ||||||
|  | set -e | ||||||
|  | joj3-forge convert /home/tt/.config/joj | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user