mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 21:58:06 +00:00
Remove docker from Substrate (#699)
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
doc
|
||||
target
|
||||
@@ -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
|
||||
@@ -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:
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user