Skip to content

Commit

Permalink
Creation of skywire-runner image
Browse files Browse the repository at this point in the history
1. Added skywire-runner.Dockerfile to create slim (74.3MB) image for
running skywire

2. Added `make docker-image` for creating this image

3. `make docker-image` is a subgoal for make node. skywire-runner - is
default docker image
  • Loading branch information
ayuryshev committed Mar 14, 2019
1 parent 4d2e0ad commit 7121cc6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OPTS?=GO111MODULE=on
DOCKER_IMAGE?=buildpack-deps:stretch-scm # docker image to use for running skywire-node. `golang` is OK too
DOCKER_IMAGE?=skywire-runner # buildpack-deps:stretch-scm # docker image to use for running skywire-node. `golang` is OK too
DOCKER_NETWORK?=SKYNET
DOCKER_NODE?=SKY01

Expand Down Expand Up @@ -79,6 +79,9 @@ therealssh-cli:

# Node

docker-image:
docker image build --tag=skywire-runner --rm - < skywire-runner.Dockerfile

docker-clean:
-docker network rm ${DOCKER_NETWORK}
-docker container rm --force ${DOCKER_NODE}
Expand All @@ -93,7 +96,7 @@ docker-volume: build
./skywire-cli config ./node/skywire.json
cat ./node/skywire.json|grep static_public_key |cut -d ':' -f2 |tr -d '"'','' ' > ./node/PK

node: docker-clean docker-network docker-volume
node: docker-clean docker-image docker-network docker-volume
docker run -d -v $(shell pwd)/node:/sky --network=${DOCKER_NETWORK} --name=${DOCKER_NODE} ${DOCKER_IMAGE} bash -c "cd /sky && ./skywire-node"

run:
Expand Down
7 changes: 7 additions & 0 deletions skywire-runner.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM debian:stretch-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
wget \
&& rm -rf /var/lib/apt/lists/*

0 comments on commit 7121cc6

Please sign in to comment.