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

CSUB-591: Updates for docker-compose.yml #1145

Merged
merged 5 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ jobs:
# this will also kill the parent container
sudo killall -9 creditcoin-node
- name: Start docker-compose
run: |
docker-compose up -d
- name: Sanity check for persistently mounted directory
run: |
sleep 60
docker exec creditcoin-validator ls -ld /creditcoin-node/data
docker exec creditcoin-validator ls -la /creditcoin-node/data
jonZlotnik marked this conversation as resolved.
Show resolved Hide resolved
- name: Kill the container
run: |
# this will also kill the parent container
sudo killall -9 creditcoin-node
sanity-tests:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ COPY --from=rust-builder --chown=creditcoin:creditcoin /creditcoin-node/chainspe
USER 0
RUN npm install -g /creditcoin-node/scripts/cc-cli/creditcoin-cli-v*.tgz
USER creditcoin
RUN mkdir /creditcoin-node/data
37 changes: 22 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
---
version: "3.2"
version: "3.7"

volumes:
state:

services:
dev:
container_name: creditcoin-node
image: paritytech/ci-linux:c4f0daf3-20220113
working_dir: /var/www/creditcoin-node
ports:
- "9944:9944"
environment:
- CARGO_HOME=/var/www/creditcoin-node/.cargo
creditcoin:
container_name: creditcoin-validator
volumes:
- .:/var/www/creditcoin-node
- type: bind
source: ./.local
target: /root/.local
command: bash -c "cargo build --release && ./target/release/creditcoin-node --dev --ws-external"
- state:/creditcoin-node/data
image: gluwa/creditcoin
command:
- --name
- validator
- --validator
- --chain
- test
- --telemetry-url
- "wss://telemetry.creditcoin.network/submit 0"
- --base-path
- /creditcoin-node/data
expose:
- 30333
ports:
- 30333:30333
Loading