Skip to content

Commit 98be0b4

Browse files
committed
Merge remote-tracking branch 'origin/master' into refactor/node-mode-config
2 parents 6a0c78e + caa01b6 commit 98be0b4

106 files changed

Lines changed: 3585 additions & 282 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/beekeeper-autotls.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ on:
3131
- .github/workflows/beekeeper-autotls.yml
3232

3333
env:
34-
K3S_VERSION: "v1.31.10+k3s1"
34+
K3S_VERSION: "v1.35.6+k3s1"
35+
K3D_VERSION: "v5.9.0"
3536
REPLICA: 3
3637
SETUP_CONTRACT_IMAGE: "ethersphere/bee-localchain"
3738
SETUP_CONTRACT_IMAGE_TAG: "0.9.4"

.github/workflows/beekeeper.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313
- "**"
1414

1515
env:
16-
K3S_VERSION: "v1.31.10+k3s1"
16+
K3S_VERSION: "v1.35.6+k3s1"
17+
K3D_VERSION: "v5.9.0"
1718
REPLICA: 3
1819
RUN_TYPE: "PR RUN"
1920
SETUP_CONTRACT_IMAGE: "ethersphere/bee-localchain"

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
- name: Test with code coverage
103103
run: make cover=1 test-ci
104104
- name: Upload coverage to Codecov
105-
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
105+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
106106
with:
107107
token: ${{ secrets.CODECOV_TOKEN }}
108108
fail_ci_if_error: true
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Bump Bee version in Swarm CLI
2+
3+
# On a stable Bee release, trigger swarm-cli's update-bee-version workflow
4+
# (ethersphere/swarm-cli, added in #760), which bumps the Bee version in
5+
# quickstart.ts and opens a PR there. Cross-repo dispatch needs more than the
6+
# default GITHUB_TOKEN, so it uses the BEE_RUNNER GitHub App (the same App
7+
# swarm-cli's own workflow uses) scoped to swarm-cli.
8+
9+
on:
10+
release:
11+
types: [released] # stable releases only (skips drafts and pre-releases/RCs)
12+
workflow_dispatch: # manual trigger for testing / re-runs
13+
inputs:
14+
version:
15+
description: 'Bee version tag to send (e.g. v2.9.0)'
16+
required: true
17+
18+
permissions: {}
19+
20+
jobs:
21+
dispatch-swarm-cli:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Generate token for swarm-cli
25+
id: app-token
26+
uses: actions/create-github-app-token@v1
27+
with:
28+
app-id: ${{ secrets.BEE_RUNNER_APP_ID }}
29+
private-key: ${{ secrets.BEE_RUNNER_KEY }}
30+
owner: ethersphere
31+
repositories: swarm-cli
32+
33+
- name: Dispatch swarm-cli update-bee-version
34+
env:
35+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
36+
VERSION: ${{ github.event.release.tag_name || inputs.version }}
37+
run: |
38+
echo "Dispatching swarm-cli update-bee-version for ${VERSION}"
39+
gh workflow run update-bee-version.yaml \
40+
--repo ethersphere/swarm-cli \
41+
-f version="${VERSION}"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2020
useradd -r -g bee --uid 999 --no-log-init -m bee;
2121

2222
# make sure mounted volumes have correct permissions
23-
RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee
23+
RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee && chmod 700 /home/bee/.bee
2424

2525
COPY --from=build /src/dist/bee /usr/local/bin/bee
2626

Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ USER root
44

55
RUN addgroup --system bee --gid 998; \
66
adduser -S -G bee -u 998 -D -h /home/bee bee; \
7-
mkdir -p /home/bee/.bee && chown 998:998 /home/bee/.bee
7+
mkdir -p /home/bee/.bee && chown 998:998 /home/bee/.bee && chmod 700 /home/bee/.bee
88

99
COPY bee /bee
1010

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3131
groupadd -r bee --gid 999; \
3232
useradd -r -g bee --uid 999 --no-log-init -m bee;
3333

34-
RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee
34+
RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee && chmod 700 /home/bee/.bee
3535

3636
COPY --from=build /src/dist/bee /usr/local/bin/bee
3737

Dockerfile.goreleaser

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010
useradd -r -g bee --uid 999 --no-log-init -m bee;
1111

1212
# make sure mounted volumes have correct permissions
13-
RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee
13+
RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee && chmod 700 /home/bee/.bee
1414

1515
COPY bee /usr/local/bin/bee
1616

Dockerfile.scratch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
88
useradd -r -g bee --uid 999 --no-log-init -m bee;
99

1010
# make sure mounted volumes have correct permissions
11-
RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee
11+
RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee && chmod 700 /home/bee/.bee
1212

1313
FROM scratch
1414

cmd/bee/cmd/cmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const (
6161
optionNameChequebookVerification = "chequebook-verification"
6262
optionNameChequebookMinBalance = "chequebook-min-balance"
6363
optionNameFullNode = "full-node" // Deprecated: use node-mode instead.
64+
optionNameLightNodeLimit = "light-node-limit"
6465
optionNamePostageContractAddress = "postage-stamp-address"
6566
optionNamePostageContractStartBlock = "postage-stamp-start-block"
6667
optionNamePriceOracleAddress = "price-oracle-address"
@@ -366,6 +367,7 @@ func (c *command) setAllFlags(cmd *cobra.Command) {
366367
if err := cmd.Flags().MarkDeprecated(optionNameFullNode, "use --node-mode=full instead"); err != nil {
367368
panic(err)
368369
}
370+
cmd.Flags().Int(optionNameLightNodeLimit, 100, "light node limit")
369371
cmd.Flags().String(optionNamePostageContractAddress, "", "postage stamp contract address")
370372
cmd.Flags().Uint64(optionNamePostageContractStartBlock, 0, "postage stamp contract start block number")
371373
cmd.Flags().String(optionNamePriceOracleAddress, "", "price oracle contract address")

0 commit comments

Comments
 (0)