mirror of
				https://github.com/rafacouto/docker-openwrt-builder
				synced 2025-10-27 07:47:12 +00:00 
			
		
		
		
	Get the sources when running the container.
This commit is contained in:
		
							parent
							
								
									603c371dcf
								
							
						
					
					
						commit
						0722046a26
					
				| @ -16,10 +16,7 @@ ENV OPENWRT_RELEASE=v15.05.1 \ | |||||||
| VOLUME ["$WORKDIR/src"] | VOLUME ["$WORKDIR/src"] | ||||||
| 
 | 
 | ||||||
| ADD configs $WORKDIR/configs | ADD configs $WORKDIR/configs | ||||||
| ADD scripts/* $WORKDIR/scripts | ADD scripts $WORKDIR/scripts | ||||||
| 
 |  | ||||||
| RUN git clone --branch $OPENWRT_RELEASE \ |  | ||||||
| 	https://github.com/openwrt/openwrt.git $WORKDIR/src |  | ||||||
| 
 | 
 | ||||||
| WORKDIR $WORKDIR/src | WORKDIR $WORKDIR/src | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -34,7 +34,7 @@ will show the help: | |||||||
| 
 | 
 | ||||||
| ## Thanks | ## Thanks | ||||||
| 
 | 
 | ||||||
| - [Javier Loureiro](https://twitter.com/StaticBoardsES) who has the idea for Raspberry Pi devices and provided config files for those ones. | - [Javier Loureiro](https://twitter.com/StaticBoardsES) who had the idea for Raspberry Pi devices and provided config files for them. | ||||||
| - [OpenWRT community](https://openwrt.org/) for its great product. | - [OpenWRT community](https://openwrt.org/) for its great product. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -6,11 +6,18 @@ | |||||||
| echo 'ToDo: examine targets from env vars...' | echo 'ToDo: examine targets from env vars...' | ||||||
| exit 0 | exit 0 | ||||||
| 
 | 
 | ||||||
| cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \ | # get the sources | ||||||
| 	"$WORKDIR/.config" && exit 1 | git clone https://github.com/openwrt/openwrt.git $WORKDIR/src | ||||||
|  | git checkout $OPENWRT_RELEASE  | ||||||
| 
 | 
 | ||||||
|  | # set the config file | ||||||
|  | cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \ | ||||||
|  | 	"$WORKDIR/src/.config" && exit 1 | ||||||
|  | 
 | ||||||
|  | # update feeds | ||||||
| ./scripts/feeds update -a && exit 1 | ./scripts/feeds update -a && exit 1 | ||||||
| ./scripts/feeds install -a && exit 1  | ./scripts/feeds install -a && exit 1  | ||||||
| 
 | 
 | ||||||
| ionice -c 3 nice -n19 make -j1 V=s | # compile | ||||||
|  | ionice -c 3 nice -n19 make -j3 V=s | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user