From 7b112dee7c83db990405f5d9a184fcd4fb67ec03 Mon Sep 17 00:00:00 2001 From: Chevdor Date: Mon, 10 Sep 2018 16:01:58 +0200 Subject: [PATCH] Remove docker from Substrate (#699) --- substrate/.dockerignore | 2 -- substrate/docker/build.sh | 26 -------------------------- substrate/docker/docker-compose.yml | 15 --------------- substrate/docker/readme-docker.adoc | 16 ---------------- 4 files changed, 59 deletions(-) delete mode 100644 substrate/.dockerignore delete mode 100755 substrate/docker/build.sh delete mode 100644 substrate/docker/docker-compose.yml delete mode 100644 substrate/docker/readme-docker.adoc diff --git a/substrate/.dockerignore b/substrate/.dockerignore deleted file mode 100644 index 2b0e81eaf0..0000000000 --- a/substrate/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -doc -target diff --git a/substrate/docker/build.sh b/substrate/docker/build.sh deleted file mode 100755 index a4c6831676..0000000000 --- a/substrate/docker/build.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash -set -e - -pushd . - -# The following line ensure we run from the project root -PROJECT_ROOT=`git rev-parse --show-toplevel` -cd $PROJECT_ROOT - -# Find the current version from Cargo.toml -VERSION=`grep "^version" ./Cargo.toml | egrep -o "([0-9\.]+)"` -GITUSER=chevdor -GITREPO=polkadot - -# Build the image -echo "Building ${GITUSER}/${GITREPO}:latest docker image, hang on!" -time docker build -f ./docker/Dockerfile --build-arg PROFILE=release -t ${GITUSER}/${GITREPO}:latest . - -# Show the list of available images for this repo -echo "Image is ready" -docker images | grep ${GITREPO} - -echo -e "\nIf you just built version ${VERSION}, you may want to update your tag:" -echo " $ docker tag ${GITUSER}/${GITREPO}:$VERSION ${GITUSER}/${GITREPO}:${VERSION}" - -popd diff --git a/substrate/docker/docker-compose.yml b/substrate/docker/docker-compose.yml deleted file mode 100644 index b76d41da1d..0000000000 --- a/substrate/docker/docker-compose.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: '3' -services: - polkadot: - build: - context: . - ports: - - "127.0.0.1:30333:30333/tcp" - - "127.0.0.1:9933:9933/tcp" - image: chevdor/polkadot:latest - volumes: - - "polkadot-data:/data" - command: polkadot - -volumes: - polkadot-data: diff --git a/substrate/docker/readme-docker.adoc b/substrate/docker/readme-docker.adoc deleted file mode 100644 index 6e41f792cc..0000000000 --- a/substrate/docker/readme-docker.adoc +++ /dev/null @@ -1,16 +0,0 @@ - -== Polkadot Docker - -=== Start a Polkadot docker container - -Run the following command - - docker run -d -P --name polkadot chevdor/polkadot:latest - -=== Building the image - -To build your own image from the source, you can run the following command: - - ./docker/build.sh - -NOTE: Building the image takes a while. Count at least 30min on a good machine.