All checks were successful
		
		
	
	push / build (push) Successful in 52s
				
			Reviewed-on: FOCS-dev/runner-images#3 Co-authored-by: Boming Zhang <bomingzh@sjtu.edu.cn> Co-committed-by: Boming Zhang <bomingzh@sjtu.edu.cn>
		
			
				
	
	
		
			22 lines
		
	
	
		
			828 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			828 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest-slim
 | |
| 
 | |
| RUN apt-get update && \
 | |
|     apt-get install -y --no-install-recommends sudo python3-minimal python3-pip git openssh-client && \
 | |
|     apt-get clean && \
 | |
|     rm -rf /var/lib/apt/lists/* && \
 | |
|     userdel -r node && \
 | |
|     useradd -u 1000 -ms /bin/bash tt && \
 | |
|     useradd -u 1001 -ms /bin/bash student && \
 | |
|     usermod -aG student tt && \
 | |
|     echo "student ALL=(tt) NOPASSWD:/usr/local/bin/joj3\nstudent ALL=(tt) NOPASSWD:/usr/local/bin/joj3-teapot" > /etc/sudoers.d/joj
 | |
| 
 | |
| # install joint-teapot
 | |
| # TODO: change it to FOCS gitea mirror for deployment
 | |
| RUN pip install git+https://ghp.ci/https://github.com/BoYanZh/Joint-Teapot --break-system-packages
 | |
| 
 | |
| # install joj3 & teapot wrapper
 | |
| COPY bin/joj3 bin/joj3-teapot /usr/local/bin/
 | |
| 
 | |
| USER student
 | |
| WORKDIR /home/student
 |