-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(examples): make sure create_deployment.ts example work
Also update types in other examples refs akash-network/akashjs#184
- Loading branch information
1 parent
a4a632f
commit c708994
Showing
15 changed files
with
240 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"], | ||
"rules": { | ||
"scope-enum": [2, "always", ["certificates", "network", "wallet", "api", "stargate", "sdl"]] | ||
"scope-enum": [2, "always", ["certificates", "network", "wallet", "api", "stargate", "sdl", "examples"]] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,58 @@ | ||
version: '2.0' | ||
# Welcome to the Akash Network! 🚀☁ | ||
# This file is called a Stack Definition Laguage (SDL) | ||
# SDL is a human friendly data standard for declaring deployment attributes. | ||
# The SDL file is a "form" to request resources from the Network. | ||
# SDL is compatible with the YAML standard and similar to Docker Compose files. | ||
|
||
--- | ||
# Indicates version of Akash configuration file. Currently only "2.0" is accepted. | ||
version: "2.0" | ||
|
||
# The top-level services entry contains a map of workloads to be ran on the Akash deployment. Each key is a service name; values are a map containing the following keys: | ||
# https://akash.network/docs/getting-started/stack-definition-language/#services | ||
services: | ||
tetris: | ||
image: bsord/tetris | ||
# The name of the service "web" | ||
web: | ||
# The docker container image with version. You must specify a version, the "latest" tag doesn't work. | ||
image: akashlytics/hello-akash-world:0.2.0 | ||
# You can map ports here https://akash.network/docs/getting-started/stack-definition-language/#servicesexpose | ||
expose: | ||
- port: 80 | ||
- port: 3000 | ||
as: 80 | ||
to: | ||
- global: true | ||
|
||
# The profiles section contains named compute and placement profiles to be used in the deployment. | ||
# https://akash.network/docs/getting-started/stack-definition-language/#profiles | ||
profiles: | ||
# profiles.compute is map of named compute profiles. Each profile specifies compute resources to be leased for each service instance uses uses the profile. | ||
# https://akash.network/docs/getting-started/stack-definition-language/#profilescompute | ||
compute: | ||
tetris: | ||
# The name of the service | ||
web: | ||
resources: | ||
cpu: | ||
units: 1 | ||
units: 0.5 | ||
memory: | ||
size: 512Mi | ||
storage: | ||
- size: 512Mi | ||
gpu: | ||
units: 0 | ||
size: 512Mi | ||
|
||
# profiles.placement is map of named datacenter profiles. Each profile specifies required datacenter attributes and pricing configuration for each compute profile that will be used within the datacenter. It also specifies optional list of signatures of which tenants expects audit of datacenter attributes. | ||
# https://akash.network/docs/getting-started/stack-definition-language/#profilesplacement | ||
placement: | ||
akash: | ||
attributes: | ||
host: akash | ||
signedBy: | ||
anyOf: | ||
- akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63 | ||
- akash18qa2a2ltfyvkyj0ggj3hkvuj6twzyumuaru9s4 | ||
dcloud: | ||
pricing: | ||
tetris: | ||
# The name of the service | ||
web: | ||
denom: uakt | ||
amount: 10000 | ||
amount: 1000 | ||
|
||
# The deployment section defines how to deploy the services. It is a mapping of service name to deployment configuration. | ||
# https://akash.network/docs/getting-started/stack-definition-language/#deployment | ||
deployment: | ||
tetris: | ||
akash: | ||
profile: tetris | ||
count: 1 | ||
# The name of the service | ||
web: | ||
dcloud: | ||
profile: web | ||
count: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "../tsconfig.build.json", | ||
"compilerOptions": { | ||
"paths": { | ||
"@akashnetwork/akashjs/build/*": ["../src/*"] | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.