Skip to content

Commit

Permalink
Merge pull request #42 from nervosnetwork/v1.1
Browse files Browse the repository at this point in the history
Build v1.1.0
  • Loading branch information
jjyr committed May 9, 2022
2 parents 1394be7 + 32b696d commit 95c0d5a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,9 @@ jobs:
integration-test:
needs: docker-build-push
uses: nervosnetwork/godwoken-tests/.github/workflows/reusable-integration-test-v1.yml@v1
uses: nervosnetwork/godwoken-tests/.github/workflows/reusable-integration-test-v1.yml@develop
with:
gw_prebuild_image_name: ${{ needs.docker-build-push.outputs.image_name }}
gw_prebuild_image_tag: ${{ needs.docker-build-push.outputs.image_tag }}
kicker_ref: compatibility-changes # https://github.com/RetricSu/godwoken-kicker/commits/compatibility-changes
# gw_prebuild_image_digest: ${{ needs.docker-build-push.outputs.image_digest }}
8 changes: 4 additions & 4 deletions Dockerfile.fast
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ RUN apt-get update \

# ckb
RUN cd /ckb \
&& curl -LO https://github.com/nervosnetwork/ckb/releases/download/v0.101.7/ckb_v0.101.7_x86_64-unknown-linux-gnu.tar.gz \
&& tar xzf ckb_v0.101.7_x86_64-unknown-linux-gnu.tar.gz \
&& cp ckb_v0.101.7_x86_64-unknown-linux-gnu/ckb /bin/ckb \
&& cp ckb_v0.101.7_x86_64-unknown-linux-gnu/ckb-cli /bin/ckb-cli \
&& curl -LO https://github.com/nervosnetwork/ckb/releases/download/v0.103.0/ckb_v0.103.0_x86_64-unknown-linux-gnu.tar.gz \
&& tar xzf ckb_v0.103.0_x86_64-unknown-linux-gnu.tar.gz \
&& cp ckb_v0.103.0_x86_64-unknown-linux-gnu/ckb /bin/ckb \
&& cp ckb_v0.103.0_x86_64-unknown-linux-gnu/ckb-cli /bin/ckb-cli \
&& rm -rf /ckb

# ckb-indexer
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ POLYJUICE_REPO := https://github.com/nervosnetwork/godwoken-polyjuice.git
OMNI_LOCK_REPO := https://github.com/nervosnetwork/ckb-production-scripts.git

# components tags
GODWOKEN_REF := v1.0.0-rc1
GODWOKEN_SCRIPTS_REF := v1.0.0-rc1
POLYJUICE_REF := v1.0.0-rc1
GODWOKEN_REF := v1.1.0-beta # https://github.com/nervosnetwork/godwoken/releases/tag/v1.1.0-beta
GODWOKEN_SCRIPTS_REF := v1.1.0-beta # https://github.com/nervosnetwork/godwoken-scripts/releases/tag/v1.1.0-beta
POLYJUICE_REF := v1.1.4-beta # https://github.com/nervosnetwork/godwoken-polyjuice/releases/tag/v1.1.4-beta
OMNI_LOCK_REF := rc_lock

define prepare_repo
Expand Down
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
godwoken-docker-prebuilds
=========================

Docker image containing all binaries used by godwoken, saving you the hassles of building them yourself.
Docker image containing all binaries used by Godwoken, saving you the hassles of building them yourself.

How to build:

```bash
$ make build-components



$ docker build . -t godwoken-prebuilds
```

Expand All @@ -22,9 +19,9 @@ $ # build and push to docker-hub, will ask you to enter image tag
$ make build-push
```

# Usage
## Usage

`godwoken` binary resides in `/bin/godwoken`, this is already in PATH so you can do this:
`Godwoken` binary resides in `/bin/godwoken`, this is already in PATH so you can do this:

```bash
$ docker run --rm godwoken-prebuilds godwoken --version
Expand All @@ -44,7 +41,14 @@ $ docker run --rm godwoken-prebuilds ckb-cli --version
$ docker run --rm godwoken-prebuilds ckb-indexer --version
```

All the scripts used by godwoken can be found at `/scripts` folder:
## Check the reference of every component
```bash
docker inspect godwoken-prebuilds:[TAG] | egrep ref.component
```

## Scripts

All the scripts used by Godwoken can be found at `/scripts` folder:

```bash
$ docker run --rm godwoken-prebuilds find /scripts -type f -exec sha1sum {} \;
Expand Down

0 comments on commit 95c0d5a

Please sign in to comment.