Skip to content

Commit

Permalink
chore(project): rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Jul 12, 2024
1 parent 41d1bcd commit 01b4db1
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 107 deletions.
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ updates:
- 'patch'
exclude-patterns:
- '@solana/web3.js'
- 'chainfile-*'
- '@chainfile/*'
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ build
coverage
.nyc_output
.turbo
.chainfile
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Chainfile Solana
# Solana Test Validator Container

Part of the [Chainfile](https://chainfile.org) ecosystem,
this library provides a Docker image for running `solana-test-validator` in a container for toolchain isolation.
Provides a Docker image for running `solana-test-validator` in a container for toolchain isolation.
This is particularly useful for language-agnostic development and parallelization of systems.

> Initially created for use in [fuxingloh/chainfile](https://github.com/fuxingloh/chainfile).
> The default [solanalabs/solana](https://hub.docker.com/r/solanalabs/solana) is an optimized image,
> when used on a host system that does not support AVX, it will fail with the following error:
> `Incompatible CPU detected: missing AVX support. Please build from source on the target.`
## `solana-testcontainers`

This is a standalone testcontainers-node package for running `solana-test-validator` in a container for testing
purposes. You don't need to use the Chainfile ecosystem to use this package.
purposes.

```shell
npm i -D solana-testcontainers @solana/web3.js
Expand Down
22 changes: 0 additions & 22 deletions packages/chainfile-solana/package.json

This file was deleted.

42 changes: 0 additions & 42 deletions packages/chainfile-solana/test-validator.json

This file was deleted.

27 changes: 0 additions & 27 deletions packages/chainfile-solana/test-validator.test.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ async function run(version, type) {
'.',
'--progress=plain',
'-t',
`ghcr.io/vetumorg/solana-test-validator:${version}`,
`ghcr.io/fuxingloh/solana-test-validator:${version}`,
'--build-arg',
`SOLANA_VERSION=${version}`,
'--cache-from',
'type=registry,ref=ghcr.io/vetumorg/solana-test-validator:build-cache',
'type=registry,ref=ghcr.io/fuxingloh/solana-test-validator:build-cache',
];

if (type === 'push') {
args.push(
'-t',
'ghcr.io/vetumorg/solana-test-validator:latest',
'ghcr.io/fuxingloh/solana-test-validator:latest',
'--output',
'type=registry',
'--platform',
'linux/amd64,linux/arm64',
'--cache-to',
'type=registry,ref=ghcr.io/vetumorg/solana-test-validator:build-cache',
'type=registry,ref=ghcr.io/fuxingloh/solana-test-validator:build-cache',
);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "solana-docker",
"name": "solana-test-validator",
"version": "0.0.0",
"private": true,
"license": "MPL-2.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/solana-testcontainers/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
This project is part of the [Chainfile](https://chainfile.org) ecosystem;
it provides a Docker image for running `solana-test-validator` in a container for toolchain isolation.
Provides a Docker image for running `solana-test-validator` in a container for toolchain isolation.

```shell
npm i -D solana-testcontainers @solana/web3.js
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 @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": false,
"repository": {
"url": "git+https://github.com/vetumorg/chainfile-solana"
"url": "git+https://github.com/fuxingloh/solana-test-validator"
},
"license": "MPL-2.0",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/solana-testcontainers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Connection, ConnectionConfig } from '@solana/web3.js';
import { AbstractStartedContainer, GenericContainer, StartedTestContainer, Wait } from 'testcontainers';

export class SolanaContainer extends GenericContainer {
constructor(image: string = `ghcr.io/vetumorg/solana-test-validator:1.18.15`) {
constructor(image: string = `ghcr.io/fuxingloh/solana-test-validator:1.18.15`) {
super(image);
this.withWaitStrategy(Wait.forLogMessage('Processed Slot:'));
this.withExposedPorts(
Expand Down

0 comments on commit 01b4db1

Please sign in to comment.