Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docker): rename development to unitnet #2065

Merged
merged 2 commits into from Feb 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Expand Up @@ -61,8 +61,7 @@ packages/**/dist/
*.sqlite

# Random
peers_backup.json
docker
docker/development

#Webstorm/Intellij
.idea
8 changes: 4 additions & 4 deletions install.sh
Expand Up @@ -325,12 +325,12 @@ fi

cd "$HOME"

if [ -d "core" ]; then
if [ -d "ark-core" ]; then
heading "Removing existing folder..."
rm -rf core
rm -rf ark-core
fi

git clone https://github.com/ArkEcosystem/core.git -b develop
cd core
git clone https://github.com/ArkEcosystem/core.git ~/ark-core -b develop
cd ark-core
yarn setup

6 changes: 0 additions & 6 deletions scripts/docker/templates/development/purge.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/docker/templates/mainnet/docker-compose.yml
@@ -1,6 +1,3 @@
#
# For running some services on development without tainting your system
#
version: '2'
services:

Expand Down
@@ -1,19 +1,16 @@
#
# For running some services on development without tainting your system
#
version: '2'
services:

postgres:
image: "postgres:alpine"
container_name: {token}-development-postgres
container_name: {token}-unitnet-postgres
ports:
- '127.0.0.1:5432:5432'
volumes:
- 'postgres:/var/lib/postgresql/data'
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: {token}_development
POSTGRES_DB: {token}_unitnet
POSTGRES_USER: {token}

volumes:
Expand Down
6 changes: 6 additions & 0 deletions scripts/docker/templates/unitnet/purge.sh
@@ -0,0 +1,6 @@
#!/usr/bin/env sh

docker stop {token}-unitnet-postgres
docker rm -v {token}-unitnet-postgres
docker volume rm unitnet_postgres
docker network rm unitnet_default