Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
f388367
resolving bug report on flag name
DevopsGoth May 12, 2022
a7850a8
chainweb-node version 2.19
May 17, 2023
b419af5
chainweb-node version 2.19.1
larskuhtz May 21, 2023
e20e851
2.19.2 release
DevopsGoth Jul 21, 2023
e5fa1d1
Merge branch 'master' of https://github.com/kadena-io/chainweb-node-d…
DevopsGoth Jul 21, 2023
c71fbce
chainweb-node version 2.19.2
DevopsGoth Jul 21, 2023
378232c
bump ghc to 9.6.2
DevopsGoth Aug 30, 2023
9b1fa03
chainweb-node version 2.20
KadenaDevOps Aug 30, 2023
6523c11
chainweb-node version 2.20
KadenaDevOps Oct 11, 2023
24d8bb7
Create dockerhub_release.yml
DevopsGoth Oct 11, 2023
719e48b
Update dockerhub_release.yml
DevopsGoth Oct 11, 2023
0abe0c9
disable pushron publish-on-github.yaml
DevopsGoth Oct 11, 2023
55d667a
Update dockerhub_release.yml
DevopsGoth Oct 11, 2023
f11608e
Update dockerhub_release.yml
DevopsGoth Oct 11, 2023
6049431
Update dockerhub_release.yml
DevopsGoth Dec 5, 2023
a5ab7ce
Update Dockerfile
DevopsGoth Dec 5, 2023
44476a9
Allow for ghc version updates
DevopsGoth Dec 5, 2023
20b8ecb
Add output of dockerhub sha
DevopsGoth Dec 5, 2023
4d8863e
dependency on gh_deploykey_chainwebdocker
DevopsGoth Dec 5, 2023
031cfe4
Update dockerhub_release.yml
DevopsGoth Dec 5, 2023
9d25644
output value
DevopsGoth Dec 5, 2023
a2c6430
dockerhub sha not updating
DevopsGoth Dec 5, 2023
816edf9
Update dockerhub_release.yml
DevopsGoth Dec 5, 2023
79eab13
Update dockerhub_release.yml
DevopsGoth Dec 5, 2023
080b965
chainweb-node version bump 2.22
KadenaDevOps Dec 5, 2023
23d4027
Update dockerhub_release.yml
DevopsGoth Dec 5, 2023
c388cef
chainweb-node version bump 2.22
KadenaDevOps Dec 5, 2023
0e6ca18
of course it's quotes
DevopsGoth Dec 5, 2023
367e755
chainweb-node version bump 2.22
KadenaDevOps Dec 5, 2023
28d0b4a
chainweb-node version bump 2.22
KadenaDevOps Dec 5, 2023
241da95
chainweb-node version 2.23
KadenaDevOps Mar 3, 2024
6750a76
chainweb-node version 2.23.1
KadenaDevOps Mar 8, 2024
65ab52b
chainweb-node version 2.23.2
KadenaDevOps Mar 19, 2024
0bb58a7
chainweb-node version bump 2.24
KadenaDevOps May 23, 2024
98865fd
freeze file use is true now
DevopsGoth Jun 24, 2024
f981615
chainweb-node version bump 2.24.1
KadenaDevOps Jun 24, 2024
d568a6c
chainweb-node version bump 2.24.1
KadenaDevOps Jun 24, 2024
8ba8d75
force git push to allow re-runs with same tag
DevopsGoth Jun 24, 2024
b46d7f7
chainweb-node version bump 2.24.1
KadenaDevOps Jun 24, 2024
72fa8c1
chainweb-node version bump 2.24.1
KadenaDevOps Jun 24, 2024
bc995d2
chainweb-node version bump 2.24.1
KadenaDevOps Jun 24, 2024
69e637c
chainweb-node version bump 2.25
KadenaDevOps Aug 15, 2024
b55c5b6
chainweb-node version bump 2.25
KadenaDevOps Aug 15, 2024
aea5f46
chainweb-node version bump 2.25
KadenaDevOps Aug 15, 2024
a1db09e
chainweb-node version bump 2.25
KadenaDevOps Aug 15, 2024
98f68d5
chainweb-node version bump 2.25
KadenaDevOps Aug 15, 2024
5287158
chainweb-node version bump 2.25
KadenaDevOps Aug 15, 2024
44c3fca
chainweb-node version bump 2.25.1
KadenaDevOps Aug 25, 2024
beeb80e
Update Dockerfile ubuntuver
DevopsGoth Nov 5, 2024
87c1d5f
chainweb-node version bump 2.26
KadenaDevOps Nov 5, 2024
d8c7b5e
chainweb-node version bump 2.26
KadenaDevOps Nov 5, 2024
f0c3fa4
chainweb-node version bump 2.26.1
KadenaDevOps Dec 3, 2024
e742a8d
add libmpfr6 runtime dependency
larskuhtz Dec 12, 2024
eb61954
chainweb-node version bump 2.27
KadenaDevOps Jan 30, 2025
e01210c
delete rosetta from docker image
chessai Jan 31, 2025
bb385ae
Merge pull request #9 from kadena-io/delete-rosetta
chessai Jan 31, 2025
5b37167
chainweb-node version bump 2.27
KadenaDevOps Feb 5, 2025
a0ffce6
chainweb-node version bump 2.28
KadenaDevOps Mar 3, 2025
a24d1b9
chainweb-node version bump 2.29
KadenaDevOps Apr 19, 2025
428dad5
chainweb-node version bump 2.29.1
KadenaDevOps Jun 18, 2025
60ea159
chainweb-node version bump 2.30
KadenaDevOps Jul 9, 2025
dc97615
chainweb-node version bump 2.31
KadenaDevOps Oct 7, 2025
35f68c3
chainweb-node version bump 2.31.1
KadenaDevOps Oct 10, 2025
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
113 changes: 113 additions & 0 deletions .github/workflows/dockerhub_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Release - Bump and Publish Version

## Release automation for chainweb-node
# Designed to run systems in chainweb/binary-release

## Currently has manual version setting and creates draft releases;
# when we are confident in this process, it can auto-increment and publish non-drafts
# tbd: connect k8s firing mechanism, create and connect chainweb-node-docker update workflow

run-name: "Release chainweb-node ${{ inputs.release_sha }} from ${{ github.sha}}"
on:
workflow_dispatch:
inputs:
SHORT_SHA:
description: "hash of chainweb-node release, default to branch running this job"
type: string
required: true
VERSION_NEW:
description: "The X.Y.Z tag for the new version"
type: string
required: true
GHC_VERSION:
description: "Input an updated ghc version"
type: string
required: false
workflow_call:
inputs:
SHORT_SHA:
description: "hash of chainweb-node release, default to branch running this job"
type: string
required: true
VERSION_NEW:
description: "The X.Y.Z tag for the new version"
type: string
required: true
GHC_VERSION:
description: "Input an updated ghc version"
type: string
required: false
outputs:
DOCKERHUB_SHA:
description: "The sha of the final dockerhub image"
value: ${{ jobs.Build-Push.outputs.DOCKERHUB_SHA }}

jobs:
Build-Push:
runs-on: ubuntu-latest
outputs:
DOCKERHUB_SHA: ${{ steps.validate-sha.outputs.DOCKERHUB_SHA }}
steps:
- uses: actions/checkout@v4
with:
repository: kadena-io/chainweb-node-docker
ssh-key: ${{ secrets.GH_DEPLOYKEY_CHAINWEBDOCKER }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PAT }}

- name: Update Dockerfile reference sha
run: |
echo "DOCKERHUB_SHA=not yet updated" >> $GITHUB_ENV
sed -i -e "s/ARG REVISION=.*/ARG REVISION=${{ inputs.SHORT_SHA }}/" Dockerfile

- name: Update GHC version if needed
run: |
if [[ ! -z ${{ inputs.GHC_VERSION }} ]]; then
sed -i -e "s/ARG GHCVER=.*/ARG GHCVER=${{ inputs.GHC_VERSION }}/" Dockerfile
fi
cat Dockerfile
- name: Build and push ubuntu image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: kadena/chainweb-node:${{ inputs.VERSION_NEW }},kadena/chainweb-node:latest

- name: Test run docker image
run: |
docker run --rm kadena/chainweb-node:${{ inputs.VERSION_NEW }} ./chainweb-node --version

- name: Update master branch with dockerfile version
run: |
git config --local user.name "Kadena DevOps"
git config --local user.email "devops@kadena.io"
git add Dockerfile
git commit --allow-empty -m "chainweb-node version bump ${{ inputs.VERSION_NEW }}"
# allow empty in case this is a re-run
git status
git tag chainweb-${{ inputs.VERSION_NEW }}
git push
git push --force origin --tags

- name: Validate SHAs
id: validate-sha
run: |
## spit these to output
docker pull kadena/chainweb-node:${{ inputs.VERSION_NEW }}
docker pull kadena/chainweb-node:latest
digest1=$(docker inspect kadena/chainweb-node:${{ inputs.VERSION_NEW }} --format '{{ .RepoDigests }}')
digest2=$(docker inspect kadena/chainweb-node:latest --format '{{ .RepoDigests }}')
echo "$digest1 and $digest2"
if [[ "$digest1" != "$digest2" ]]; then
echo "DOCKERHUB_SHA=sha mismatches in dockerhub image" >> $GITHUB_OUTPUT
echo "sha mismatch between pushed images"
exit 1
fi
echo "Digest compare succeeded, new tags match"
echo "DOCKERHUB_SHA=$digest1" >> $GITHUB_OUTPUT
echo "Pushed to github output"
4 changes: 0 additions & 4 deletions .github/workflows/publish-on-github.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Publish Docker image
on:
release:
types: [published]
push:
branchs: [master]
workflow_dispatch:
inputs:
ubuntu_version:
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
# --ulimit nofile=64000:64000

# BUILD PARAMTERS
ARG UBUNTUVER=20.04
ARG UBUNTUVER=22.04

FROM ubuntu:${UBUNTUVER}

ARG REVISION=09b4dc6
ARG GHCVER=8.10.7
ARG REVISION=d7aee70
ARG GHCVER=9.8.2
ARG UBUNTUVER
ARG STRIP=1

Expand All @@ -20,7 +20,7 @@ LABEL ubuntu="$UBUNTUVER"

# install prerequisites
RUN apt-get update \
&& apt-get install -y curl xxd openssl binutils libtbb2 libgflags2.2 libsnappy1v5 locales \
&& apt-get install -y curl xxd openssl binutils libtbb2 libgflags2.2 libsnappy1v5 locales libmpfr6 \
&& rm -rf /var/lib/apt/lists/* \
&& locale-gen en_US.UTF-8 \
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
Expand All @@ -29,7 +29,7 @@ ENV LANG=en_US.UTF-8

# Install chainweb applications
WORKDIR /chainweb
RUN curl -Ls "https://kadena-cabal-cache.s3.amazonaws.com/chainweb-node/chainweb.${GHCVER}.ubuntu-${UBUNTUVER}.${REVISION}.tar.gz" \
RUN curl -Ls "https://kadena-cabal-cache.s3.amazonaws.com/chainweb-node/chainweb.true.${GHCVER}.ubuntu-${UBUNTUVER}.${REVISION}.tar.gz" \
| tar -xzC "/" \
chainweb/chainweb-node \
chainweb/LICENSE \
Expand Down
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,22 +231,6 @@ powerful enough to competitively mine on the Kadena Mainnet. Links to alternate
mining software can be found
[here](https://kadena-io.github.io/kadena-docs/Public-Chain-Docs/#start-mining).

# Enable [Rosetta API](https://www.rosetta-api.org/)

The chainweb node has optional support for the rosetta API, which can be enabled
by setting the `ROSETTA` environment variable to any non-empty value.

```sh
docker run \
--detach \
--publish 1848:1848 \
--publish 1789:1789 \
--env "ROSETTA=1" \
--name chainweb-node \
--mount type=volume,source=chainweb-data,target=/data \
kadena/chainweb-node
```

# API Overview

TODO
Expand Down
11 changes: 0 additions & 11 deletions run-chainweb-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export CHAINWEB_SERVICE_PORT=${CHAINWEB_SERVICE_PORT:-1848}
export LOGLEVEL=${LOGLEVEL:-warn}
export MINER_KEY=${MINER_KEY:-}
export MINER_ACCOUNT=${MINER_ACCOUNT:-$MINER_KEY}
export ENABLE_ROSETTA=${ENABLE_ROSETTA:-}
export SKIP_REACHABILITY_CHECK=${SKIP_REACHABILITY_CHECK:-0}

if [[ -z "$CHAINWEB_P2P_HOST" ]] ; then
Expand Down Expand Up @@ -59,15 +58,6 @@ chainweb:
"
fi

# ############################################################################ #
# Flags

if [[ -n "$ROSETTA" ]] ; then
ROSETTA_FLAG="--rosetta"
else
ROSETTA_FLAG="--no-rosetta"
fi

# ############################################################################ #
# Run node

Expand All @@ -77,7 +67,6 @@ exec ./chainweb-node \
--p2p-hostname="$CHAINWEB_P2P_HOST" \
--p2p-port="$CHAINWEB_P2P_PORT" \
--service-port="$CHAINWEB_SERVICE_PORT" \
"$ROSETTA_FLAG" \
--log-level="$LOGLEVEL" \
+RTS -N -t -A64M -H500M -RTS \
"$@"
Expand Down