Skip to content

Commit

Permalink
Docker update v4.0.0 and workflow fix (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankarWarang authored Sep 27, 2022
1 parent 3985f0a commit dfc39b2
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
cargo +$WASM_BUILD_TOOLCHAIN --version
rustc +$WASM_BUILD_TOOLCHAIN --version
env:
WASM_BUILD_TOOLCHAIN: nightly-2021-03-15
WASM_BUILD_TOOLCHAIN: nightly-2022-06-02
- name: Cache Cargo
uses: actions/cache@v2
with:
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#FROM paritytech/ci-linux:production as builder
#FROM decentration/edgeware:v3.3.3 as builder
FROM depthhoar/edgeware-node:v3.3.3 as builder
#FROM depthhoar/edgeware-node:v3.3.3 as builder
FROM eteissonniere/edgeware:latest as builder

LABEL description="This is the build stage for edgeware. Here we create the binary."

Expand All @@ -10,9 +11,9 @@ WORKDIR /edgeware
COPY . /edgeware/
#RUN fallocate -l 1G /swapfile
RUN rustup uninstall nightly
RUN rustup install nightly-2021-05-31
RUN rustup install nightly-2022-06-02
RUN rustup update nightly
RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2021-05-31
RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2022-06-02


RUN cargo build --$PROFILE -j 1
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Images that have failed to build typically are hard to remove. The best way to r
If the above image failed to compile `edgeware-cli`, then it's because your machine doesnt have enough memory; or your docker doesn't have enough memory available. Try and increase Docker's available memory by a few notches, by going to Docker Desktop settings.

#### Pull image and run (no compile)
If you want to use our previously-built image `depthhoar/edgeware-node:v3.3.3`, you can use docker-compose:
If you want to use our previously-built image `eteissonniere/edgeware:latest`, you can use docker-compose:

```
cd docker; docker-compose up
Expand All @@ -97,7 +97,7 @@ You will have exposed ports 9933, 9944 and 30333.
Then run:

```
docker run --rm -it depthhoar/edgeware-node:v3.3.3 edgeware --chain=edgeware --name <INSERT NAME> --wasm-execution Compiled
docker run --rm -it eteissonniere/edgeware:latest edgeware --chain=edgeware --name <INSERT NAME> --wasm-execution Compiled
```

### Benchmarking
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ WORKDIR /edgeware
COPY . /edgeware/
#RUN fallocate -l 1G /swapfile
RUN rustup uninstall nightly
RUN rustup install nightly-2021-05-31
RUN rustup install nightly-2022-06-02
RUN rustup update nightly
RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2021-05-31
RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2022-06-02


RUN cargo build --$PROFILE -j 1
Expand Down
16 changes: 16 additions & 0 deletions docker/docker-compose-3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.3'
services:
edgeware:
build:
context: .
ports:
- "0.0.0.0:9933:9933/tcp"
- "0.0.0.0:9944:9944/tcp"
- "0.0.0.0:30333:30333/tcp"
image: depthhoar/edgeware-node:v3.3.3
command: bash -c "edgeware --chain=edgeware --name <INSERT NAME> --wasm-execution Compiled"
volumes:
- "edgeware-data:/data"

volumes:
edgeware-data:
6 changes: 3 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.3'
version: '4.0.0'
services:
edgeware:
build:
Expand All @@ -7,10 +7,10 @@ services:
- "0.0.0.0:9933:9933/tcp"
- "0.0.0.0:9944:9944/tcp"
- "0.0.0.0:30333:30333/tcp"
image: depthhoar/edgeware-node:v3.3.3
image: eteissonniere/edgeware:latest
command: bash -c "edgeware --chain=edgeware --name <INSERT NAME> --wasm-execution Compiled"
volumes:
- "edgeware-data:/data"

volumes:
edgeware-data:
edgeware-data:
4 changes: 2 additions & 2 deletions docker/mainnet.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.3'
version: '4.0.0'
services:
edgeware:
image: hicommonwealth/edgeware:v3.3.3
image: eteissonniere/edgeware:latest
logging:
driver: "json-file"
options:
Expand Down
4 changes: 2 additions & 2 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ fi
if [[ $(cargo --version) ]]; then
echo "Found cargo"
else
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2021-03-15
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2022-06-02
source $HOME/.cargo/env
export PATH=$HOME/.cargo/bin:$PATH
fi

rustup update stable
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-03-15
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-06-02

0 comments on commit dfc39b2

Please sign in to comment.