Skip to content

Commit

Permalink
chore: bump to 1.17.26 (#7)
Browse files Browse the repository at this point in the history
* chore: bump to 1.17.26

* fixes

* pre-run the build:docker step

* fix ci.yml
  • Loading branch information
fuxingloh authored Mar 18, 2024
1 parent 4b0c34e commit ffb7c94
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ concurrency:
permissions:
contents: read

env:
BUILDKIT_PROGRESS: plain

jobs:
build:
name: Build
Expand Down Expand Up @@ -44,6 +47,9 @@ jobs:

- run: pnpm install --frozen-lockfile

# Pre-run build steps, required for the test step
- run: pnpm --filter=solana-container run build:docker

- run: pnpm turbo run test

lint_prettier:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
permissions:
contents: read

env:
BUILDKIT_PROGRESS: plain

jobs:
version:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -96,4 +99,4 @@ jobs:

- run: pnpm -r exec npm version ${{ needs.version.outputs.result }} --git-tag-version=false

- run: pnpm turbo run push:docker --filter=${{ matrix.package }}
- run: pnpm --filter=${{ matrix.package }} run push:docker
1 change: 1 addition & 0 deletions .idea/dictionaries/fuxing.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions packages/solana-container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM debian:bullseye as builder
FROM debian:bookworm as builder

# Install os deps
RUN apt update && \
apt-get install -y build-essential clang cmake curl libudev-dev pkg-config && \
apt-get install -y build-essential clang cmake curl libudev-dev pkg-config protobuf-compiler && \
rm -rf /var/lib/apt/lists/*

# Setup rust
Expand All @@ -17,14 +17,19 @@ RUN curl https://codeload.github.com/solana-labs/solana/tar.gz/refs/tags/v$SOLAN
RUN mv solana-$SOLANA_VERSION /workspace/solana

WORKDIR /workspace/solana
RUN cargo fetch

# Do not optimize the build to reduce the build time, since this is testcontainers not to be used in production.
ENV RUSTFLAGS="-C opt-level=0"
RUN cargo build --bin solana-test-validator --release

FROM debian:bullseye as final
FROM debian:bookworm as runner

RUN apt update && \
apt-get install -y bzip2 && \
apt-get install -y bzip2 libssl-dev && \
rm -rf /var/lib/apt/lists/*

COPY --from=builder /workspace/solana/target/release/solana-test-validator /bin/solana-test-validator

EXPOSE 8899 8900
CMD ["solana-test-validator"]
2 changes: 1 addition & 1 deletion packages/solana-container/version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// renovate: datasource=github-releases depName=solana-labs/solana
const SOLANA_VERSION = '1.10.38';
const SOLANA_VERSION = '1.17.26';

module.exports = SOLANA_VERSION;
2 changes: 1 addition & 1 deletion packages/solana-testcontainers/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AbstractStartedContainer, GenericContainer, StartedTestContainer, Wait } from 'testcontainers';

// renovate: datasource=github-releases depName=solana-labs/solana
const SOLANA_VERSION = '1.10.38';
const SOLANA_VERSION = '1.17.26';

export class SolanaContainer extends GenericContainer {
constructor(image: string = `ghcr.io/fuxingloh/solana-container:${SOLANA_VERSION}`) {
Expand Down
2 changes: 1 addition & 1 deletion packages/solana-testcontainers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build": "tsc --project tsconfig.build.json",
"clean": "tsc --build --clean",
"lint": "eslint .",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests --forceExit"
},
"lint-staged": {
"*": [
Expand Down

0 comments on commit ffb7c94

Please sign in to comment.