File tree 3 files changed +23
-6
lines changed 3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1
1
ELECTRUM_VERSION = $(strip $(shell cat VERSION) )
2
2
3
+ GIT_COMMIT = $(strip $(shell git rev-parse --short HEAD) )
4
+
3
5
DOCKER_IMAGE ?= osminogin/electrum-daemon
4
6
DOCKER_TAG = $(ELECTRUM_VERSION )
5
7
6
- default : docker_build
8
+ # Build Docker image
9
+ build : docker_build output
10
+
11
+ # Build and push Docker image
12
+ release : docker_build docker_push output
13
+
14
+ default : docker_build output
7
15
8
16
docker_build :
9
17
@docker build \
10
- --build-arg VERSION=$(ELECTRUM_VERSION ) \
11
- --build-arg VCS_REF=` git rev-parse --short HEAD` \
12
18
--build-arg BUILD_DATE=` date -u +" %Y-%m-%dT%H:%M:%SZ" ` \
13
- -t $(DOCKER_IMAGE ) :$(DOCKER_TAG ) .
19
+ --build-arg VERSION=$(ELECTRUM_VERSION ) \
20
+ --build-arg VCS_REF=$(GIT_COMMIT ) \
21
+ -t $(IMAGE_NAME ) .
22
+
23
+ docker_push :
24
+ docker tag $(IMAGE_NAME ) $(DOCKER_IMAGE ) :latest
25
+ docker push $(IMAGE_NAME )
26
+ docker push $(DOCKER_IMAGE ) :latest
27
+
28
+ output :
29
+ @echo Docker Image: $(DOCKER_IMAGE ) :$(DOCKER_TAG )
Original file line number Diff line number Diff line change 1
1
# docker-electrum-daemon
2
2
3
- [ ![ ] ( https://img.shields.io/docker/build/osminogin/electrum-daemon.svg )] ( https://hub.docker.com/r/osminogin/electrum-daemon/builds/ ) [ ![ ] ( https://img.shields.io/docker/stars/osminogin/electrum-daemon.svg )] ( https://hub.docker.com/r/osminogin/electrum-daemon ) [ ![ ] ( https://images.microbadger.com/badges/image/osminogin/electrum-daemon.svg )] ( https://microbadger.com/images/osminogin/electrum-daemon ) [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-lightgrey.svg )] ( https://opensource.org/licenses/MIT )
3
+ [ ![ ] ( https://img.shields.io/docker/build/osminogin/electrum-daemon.svg )] ( https://hub.docker.com/r/osminogin/electrum-daemon/builds/ ) [ ![ ] ( https://images.microbadger.com/badges/version/osminogin/electrum-daemon.svg )] ( https://microbadger.com/images/osminogin/electrum-daemon ) [ ![ ] ( https://images.microbadger.com/badges/commit/osminogin/electrum-daemon.svg )] ( https://microbadger.com/images/osminogin/electrum-daemon ) [ ![ ] ( https://img.shields.io/docker/stars/osminogin/electrum-daemon.svg )] ( https://hub.docker.com/r/osminogin/electrum-daemon ) [ ![ ] ( https://images.microbadger.com/badges/image/osminogin/electrum-daemon.svg )] ( https://microbadger.com/images/osminogin/electrum-daemon ) [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-lightgrey.svg )] ( https://opensource.org/licenses/MIT )
4
+
4
5
5
6
** Electrum client running as a daemon in docker container with JSON-RPC enabled.**
6
7
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- make
3
+ make release
You can’t perform that action at this time.
0 commit comments