forked from amp-buildpacks/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildpack.toml
92 lines (76 loc) · 3.15 KB
/
buildpack.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright (c) The Amphitheatre Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
api = "0.8"
[buildpack]
name = "AMP Buildpack for solana"
id = "amp-buildpacks/solana"
version = "0.1.0"
description = "A Cloud Native Buildpack that provides the Solana Tool Suite"
homepage = "https://github.com/amp-buildpacks/solana"
keywords = ["solana", "buildpack"]
sbom-formats = ["application/vnd.cyclonedx+json", "application/vnd.syft+json"]
[[buildpack.licenses]]
type = "Apache-2.0"
uri = "https://github.com/amp-buildpacks/solana/blob/main/LICENSE"
[metadata]
include-files = ["LICENSE", "README.md", "bin/build", "bin/detect", "bin/main", "buildpack.toml"]
pre-package = "scripts/build.sh"
[[metadata.configurations]] # Whether to deploy the configuration of the contract
build = true
default = "true"
description = "enable the deploy solana contract process"
name = "BP_ENABLE_DEPLOY_SOLANA_CONTRACT"
[[metadata.configurations]] # solana netwwork config
build = true
default = "devnet" # can use devnet testnet mainnet https://solana.com/zh/docs/core/clusters
description = "Configure the network for Solana deploy"
name = "BP_SOLANA_DEPLOY_NETWORK"
[[metadata.configurations]] # Devnet endpoint
build = true
default = "https://api.devnet.solana.com" # can use devnet testnet mainnet
description = "Devnet endpoint"
name = "BP_DEVNET_ENDPOINT"
[[metadata.configurations]] # Testnet endpoint
build = true
default = "https://api.testnet.solana.com"
description = "Testnet endpoint"
name = "BP_TESTNET_ENDPOINT"
[[metadata.configurations]] # Mainnet endpoint
build = true
default = "https://api.mainnet-beta.solana.com"
description = "Mainnet endpoint"
name = "BP_MAINNET_ENDPOINT"
[[metadata.configurations]]
build = true
default = "" # wallet keypair value
description = "wallet keypair"
name = "BP_WALLET_KEYPAIR"
[[metadata.configurations]] # solana-cli versionw
build = true
default = "1.17.17"
description = "The Solana Cli version"
name = "BP_SOLANA_ClI_VERSION"
# if use Anchor , nedd to install rust toolchain https://www.anchor-lang.com/docs/installation TODO
[[metadata.dependencies]]
id = "solana-cli"
name = "Solana Cli"
purl = "pkg:generic/solana@1.17.17?download_url=https://github.com/solana-labs/solana/releases/download/v1.17.17/solana-release-x86_64-unknown-linux-gnu.tar.bz2"
sha256 = "1290babaf9a45034a78f04acf8f960d39c58fdf91b0eaa9d5a4ec138850d98ea"
uri = "https://github.com/solana-labs/solana/releases/download/v1.17.17/solana-release-x86_64-unknown-linux-gnu.tar.bz2"
strip-components = 1
stacks = ["io.buildpacks.stacks.jammy"]
version = "1.17.17"
licenses = ["Apache-2.0"]
[[stacks]]
id = "*"