-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta-sync-node' into merge-beta-sync-node-to-stable
- Loading branch information
Showing
25 changed files
with
474 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
tests | ||
helper-scripts | ||
dist | ||
build | ||
.github | ||
.gitmodules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
[submodule "helper-scripts"] | ||
path = helper-scripts | ||
url = https://github.com/skalenetwork/helper-scripts.git | ||
branch = develop | ||
|
||
[submodule "lvmpy"] | ||
path = lvmpy | ||
url = https://github.com/skalenetwork/docker-lvmpy | ||
branch = develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y software-properties-common | ||
RUN add-apt-repository ppa:deadsnakes/ppa | ||
RUN apt-get install -y \ | ||
git \ | ||
python3.8 \ | ||
libpython3.8-dev \ | ||
python3.8-venv \ | ||
python3.8-distutils \ | ||
python3.8-dev \ | ||
build-essential \ | ||
zlib1g-dev \ | ||
libffi-dev \ | ||
libssl-dev \ | ||
swig \ | ||
iptables | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
ENV PATH=/app/buildvenv/bin:$PATH | ||
RUN python3.8 -m venv /app/buildvenv && \ | ||
pip install --upgrade pip && \ | ||
pip install wheel setuptools==63.2.0 && \ | ||
pip install -e '.[dev]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
__version__ = '2.2.1' | ||
__version__ = '2.3.0' | ||
|
||
|
||
if __name__ == "__main__": | ||
print(__version__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of node-cli | ||
# | ||
# Copyright (C) 2020 SKALE Labs | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
import click | ||
|
||
from node_cli.utils.helper import abort_if_false | ||
from node_cli.utils.texts import Texts | ||
from lvmpy.src.app import run as run_lvmpy | ||
from lvmpy.src.health import heal_service | ||
|
||
G_TEXTS = Texts() | ||
TEXTS = G_TEXTS['lvmpy'] | ||
|
||
|
||
@click.group() | ||
def lvmpy_cli(): | ||
pass | ||
|
||
|
||
@lvmpy_cli.group('lvmpy', help=TEXTS['help']) | ||
def health(): | ||
pass | ||
|
||
|
||
@health.command(help=TEXTS['run']['help']) | ||
@click.option( | ||
'--yes', | ||
is_flag=True, | ||
callback=abort_if_false, | ||
expose_value=False, | ||
prompt=TEXTS['run']['prompt'] | ||
) | ||
def run(): | ||
run_lvmpy() | ||
|
||
|
||
@health.command(help=TEXTS['heal']['help']) | ||
@click.option( | ||
'--yes', | ||
is_flag=True, | ||
callback=abort_if_false, | ||
expose_value=False, | ||
prompt=TEXTS['heal']['prompt'] | ||
) | ||
def heal(): | ||
heal_service() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.