mirror of
				https://git.wownero.com/asymptotically/docker-monero.git
				synced 2024-08-15 01:03:28 +00:00 
			
		
		
		
	xmrig-proxy: Init at 5.11.0
This commit is contained in:
		
							parent
							
								
									9eb6af8a86
								
							
						
					
					
						commit
						f5cad6445e
					
				
					 4 changed files with 139 additions and 0 deletions
				
			
		|  | @ -5,3 +5,4 @@ | ||||||
| * [`monero`](monero): Monero P2P daemon and wallet RPC server | * [`monero`](monero): Monero P2P daemon and wallet RPC server | ||||||
| * [`wownero`](wownero): Wownero P2P daemon and wallet RPC server | * [`wownero`](wownero): Wownero P2P daemon and wallet RPC server | ||||||
| * [`xmrig`](xmrig): XMRig miner | * [`xmrig`](xmrig): XMRig miner | ||||||
|  | * [`xmrig-proxy`](xmrig-proxy): High performance Monero mining proxy | ||||||
|  |  | ||||||
							
								
								
									
										78
									
								
								xmrig-proxy/Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										78
									
								
								xmrig-proxy/Dockerfile
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,78 @@ | ||||||
|  | ARG LIBUV_VERSION=1.38.0 | ||||||
|  | ARG OPENSSL_VERSION=1.1.1g | ||||||
|  | ARG XMRIG_PROXY_VERSION=5.11.0 | ||||||
|  |  | ||||||
|  | FROM alpine:3.12 AS builder | ||||||
|  | 
 | ||||||
|  | RUN apk add --no-cache \ | ||||||
|  |         autoconf \ | ||||||
|  |         automake \ | ||||||
|  |         build-base \ | ||||||
|  |         cmake \ | ||||||
|  |         libtool \ | ||||||
|  |         linux-headers \ | ||||||
|  |         m4 | ||||||
|  |  | ||||||
|  | # Build OpenSSL. | ||||||
|  | ARG OPENSSL_VERSION | ||||||
|  | WORKDIR /workdir/openssl | ||||||
|  | ADD https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz \ | ||||||
|  |     openssl-${OPENSSL_VERSION}.tar.gz | ||||||
|  | RUN tar xvf openssl-${OPENSSL_VERSION}.tar.gz | ||||||
|  | 
 | ||||||
|  | WORKDIR openssl-${OPENSSL_VERSION} | ||||||
|  | RUN ./config \ | ||||||
|  |         -no-asm \ | ||||||
|  |         -no-cms \ | ||||||
|  |         -no-comp \ | ||||||
|  |         -no-dgram \ | ||||||
|  |         -no-filenames \ | ||||||
|  |         -no-shared \ | ||||||
|  |         -no-zlib \ | ||||||
|  |     && make -j$(nproc) \ | ||||||
|  |     && make install_sw | ||||||
|  |  | ||||||
|  | # Build libuv | ||||||
|  | ARG LIBUV_VERSION | ||||||
|  | WORKDIR /workdir/libuv | ||||||
|  | ADD https://github.com/libuv/libuv/archive/v${LIBUV_VERSION}.tar.gz \ | ||||||
|  |     libuv-${LIBUV_VERSION}.tar.gz | ||||||
|  | RUN tar xvf libuv-${LIBUV_VERSION}.tar.gz | ||||||
|  | 
 | ||||||
|  | WORKDIR libuv-${LIBUV_VERSION} | ||||||
|  | RUN ./autogen.sh \ | ||||||
|  |     && ./configure \ | ||||||
|  |         --disable-shared \ | ||||||
|  |     && make -j$(nproc) \ | ||||||
|  |     && make install | ||||||
|  |  | ||||||
|  | # Build XMRig Proxy. | ||||||
|  | ARG XMRIG_PROXY_VERSION | ||||||
|  | WORKDIR /workdir/xmrig-proxy | ||||||
|  | ADD https://github.com/xmrig/xmrig-proxy/archive/v${XMRIG_PROXY_VERSION}.tar.gz \ | ||||||
|  |     xmrig-proxy-${XMRIG_PROXY_VERSION}.tar.gz | ||||||
|  | RUN tar xvf xmrig-proxy-${XMRIG_PROXY_VERSION}.tar.gz | ||||||
|  | 
 | ||||||
|  | WORKDIR xmrig-proxy-${XMRIG_PROXY_VERSION} | ||||||
|  | COPY patches/ patches/ | ||||||
|  | RUN cat patches/*.patch | patch -p1 \ | ||||||
|  |     && cmake \ | ||||||
|  |         -Bbuild \ | ||||||
|  |         -DBUILD_STATIC=On \ | ||||||
|  |         -DCMAKE_BUILD_TYPE=Release \ | ||||||
|  |         -DCMAKE_EXE_LINKER_FLAGS='-static -static-libgcc' \ | ||||||
|  |         -DCMAKE_FIND_LIBRARY_SUFFIXES=.a \ | ||||||
|  |         -DOPENSSL_USE_STATIC_LIBS=On \ | ||||||
|  |     && make \ | ||||||
|  |         -Cbuild \ | ||||||
|  |         -j$(nproc) | ||||||
|  |  | ||||||
|  | FROM scratch | ||||||
|  | 
 | ||||||
|  | ARG XMRIG_PROXY_VERSION | ||||||
|  | 
 | ||||||
|  | LABEL maintainer="Matt Smith <matt@offtopica.uk>" | ||||||
|  | 
 | ||||||
|  | COPY --from=builder /workdir/xmrig-proxy/xmrig-proxy-${XMRIG_PROXY_VERSION}/build/xmrig-proxy /xmrig-proxy | ||||||
|  | 
 | ||||||
|  | ENTRYPOINT ["/xmrig-proxy"] | ||||||
							
								
								
									
										35
									
								
								xmrig-proxy/README.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								xmrig-proxy/README.md
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | ||||||
|  | # xmrig-proxy | ||||||
|  | 
 | ||||||
|  | Docker image for the [XMRig mining proxy][xmrig-proxy-gh]. | ||||||
|  | 
 | ||||||
|  | ### Features | ||||||
|  | 
 | ||||||
|  | * TLS with OpenSSL. | ||||||
|  | * Donation level defaults to zero. [Please send Mr XMRig some coins if you can][xmrig-donations]. | ||||||
|  | * Single static binary. No BS. | ||||||
|  | 
 | ||||||
|  | ### Usage Example | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | docker run \ | ||||||
|  |     --rm \ | ||||||
|  |     -d \ | ||||||
|  |     --name xmrig-proxy \ | ||||||
|  |     -p 3333:3333 \ | ||||||
|  |     moneromint/xmrig-proxy \ | ||||||
|  |     --bind=0.0.0.0:3333 \ | ||||||
|  |     --url=xmrpow.de:4242 \ | ||||||
|  |     --user=YOUR_WALLET_ADDRESS | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | ### Links | ||||||
|  | 
 | ||||||
|  | * [Docker Hub][dockerhub] | ||||||
|  | * [git.wownero.com][gitwow] | ||||||
|  | * [GitHub][github] | ||||||
|  | 
 | ||||||
|  | [dockerhub]: https://hub.docker.com/r/moneromint/xmrig 'Docker Hub page' | ||||||
|  | [github]: https://github.com/moneromint/docker-monero 'GitHub repository' | ||||||
|  | [gitwow]: https://git.wownero.com/asymptotically/docker-monero 'Wownero Git repository' | ||||||
|  | [xmrig-proxy-gh]: https://github.com/xmrig/xmrig-proxy 'XMRig Proxy GitHub page' | ||||||
|  | [xmrig-donations]: https://github.com/xmrig/xmrig#donations 'XMRig donation addresses' | ||||||
							
								
								
									
										25
									
								
								xmrig-proxy/patches/0001-remove-date.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								xmrig-proxy/patches/0001-remove-date.patch
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | ||||||
|  | From 688b2a9f0eb7f949e25b0e98ad5f0ab8a198713f Mon Sep 17 00:00:00 2001 | ||||||
|  | From: Matt Smith <matt@offtopica.uk> | ||||||
|  | Date: Mon, 29 Jun 2020 14:23:46 +0100 | ||||||
|  | Subject: [PATCH 1/2] Remove __DATE__ in version message | ||||||
|  | 
 | ||||||
|  | ---
 | ||||||
|  |  src/base/kernel/Entry.cpp | 2 +- | ||||||
|  |  1 file changed, 1 insertion(+), 1 deletion(-) | ||||||
|  | 
 | ||||||
|  | diff --git a/src/base/kernel/Entry.cpp b/src/base/kernel/Entry.cpp
 | ||||||
|  | index ae2ac3ce..24ac5b99 100644
 | ||||||
|  | --- a/src/base/kernel/Entry.cpp
 | ||||||
|  | +++ b/src/base/kernel/Entry.cpp
 | ||||||
|  | @@ -51,7 +51,7 @@ namespace xmrig {
 | ||||||
|  |   | ||||||
|  |  static int showVersion() | ||||||
|  |  { | ||||||
|  | -    printf(APP_NAME " " APP_VERSION "\n built on " __DATE__
 | ||||||
|  | +    printf(APP_NAME " " APP_VERSION
 | ||||||
|  |   | ||||||
|  |  #   if defined(__clang__) | ||||||
|  |      " with clang " __clang_version__); | ||||||
|  | -- 
 | ||||||
|  | 2.27.0 | ||||||
|  | 
 | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue