Skip to content

Commit

Permalink
Merge #30
Browse files Browse the repository at this point in the history
30: Adding node_util.py script into builds and pre-1.5 changes r=sacherjj a=sacherjj

Adds a BIN_MODE to config to control pull location.
Adds PLATFORM file on install for deb/rpm detections.
Adds node_util.py for most functions needing performed by the node.

Co-authored-by: Joe Sacher <[email protected]>
  • Loading branch information
casperlabs-bors-ng[bot] and sacherjj authored Oct 25, 2021
2 parents 6debc2a + 693e2a6 commit 22e0cc7
Show file tree
Hide file tree
Showing 9 changed files with 597 additions and 364 deletions.
46 changes: 1 addition & 45 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
- name: cargo-audit
image: casperlabs/casper-node-launcher-build
commands:
- cargo audit --deny warnings
- cargo audit --deny warnings --ignore RUSTSEC-2021-0119 --ignore RUSTSEC-2020-0159

- name: test
image: casperlabs/casper-node-launcher-build
Expand All @@ -30,25 +30,11 @@ steps:
commands:
- cargo deb

- name: build-docker
image: docker:stable
commands:
- apk add git bash
- ./ci/build_docker.sh
volumes:
- name: docker_sock
path: /var/run/docker.sock

- name: build-rpm
image: casperlabs/rpm-package
commands:
- cargo rpm build -v

volumes:
- name: docker_sock
host:
path: /var/run/docker.sock

trigger:
branch:
- main
Expand Down Expand Up @@ -128,29 +114,6 @@ steps:
deb_path: './target/debian'
deb_name: '*.deb'

- name: build-docker
image: docker:stable
commands:
- apk add git bash
- ./ci/build_docker.sh
volumes:
- name: docker_sock
path: /var/run/docker.sock

- name: push-docker
image: docker:stable
commands:
- apk add git bash
- ./ci/push_docker.sh
volumes:
- name: docker_sock
path: /var/run/docker.sock
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password

- name: build-rpm
image: casperlabs/rpm-package
commands:
Expand All @@ -174,13 +137,6 @@ steps:
ref:
- refs/tags/v*

# Need to attach rpm to github artifacts.

volumes:
- name: docker_sock
host:
path: /var/run/docker.sock

trigger:
ref:
- refs/tags/v*
Expand Down
1 change: 1 addition & 0 deletions .rpm/casper-node-launcher.spec
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ rm -rf %{buildroot}
/etc/casper/network_configs/casper-test.conf
/etc/casper/delete_local_db.sh
/etc/casper/config_from_example.sh
/etc/casper/node_util.py
/etc/casper/README.md
/etc/casper/validator_keys/README.md
/etc/systemd/system/casper-node-launcher.service
Loading

0 comments on commit 22e0cc7

Please sign in to comment.