Skip to content

Commit

Permalink
SCP-2940: Update for plutus repository split
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Oct 28, 2021
1 parent d8a3ac6 commit 8d82f4d
Show file tree
Hide file tree
Showing 13 changed files with 103 additions and 65 deletions.
2 changes: 1 addition & 1 deletion clusters/plutus/playground/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ in {

staging.description = "Staging";

wyohack.description = "Marlowe - Wyoming Hackathon 2021";
plutus-staging.description = "Plutus Apps Staging";
};

users.extraUsers.root.openssh.authorizedKeys.keys = pkgs.ssh-keys.devOps ++ [
Expand Down
123 changes: 71 additions & 52 deletions deploy.cue
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,23 @@ Namespace: [Name=_]: {
namespace: Name
#domain: string
#fqdn: fqdn
#plutusRev: =~"^\(hex){40}$"
#revs: [string]: =~"^\(hex){40}$"
#variant: string
#flakes: [string]: types.#flake

#flakes: {
webGhcServer: =~flakePath | *"github:input-output-hk/plutus?rev=\(#plutusRev)#web-ghc-server-entrypoint"
"plutus-playground-server": =~flakePath | *"github:input-output-hk/plutus?rev=\(#plutusRev)#plutus-playground-server-entrypoint"
"plutus-playground-client": =~flakePath | *"github:input-output-hk/plutus?rev=\(#plutusRev)#plutus-playground-client-entrypoint"
"marlowe-playground-server": =~flakePath | *"github:input-output-hk/plutus?rev=\(#plutusRev)#marlowe-playground-server-entrypoint"
"marlowe-playground-client": =~flakePath | *"github:input-output-hk/plutus?rev=\(#plutusRev)#marlowe-playground-client-entrypoint"
marloweRun: =~flakePath | *"github:input-output-hk/plutus?rev=\(#plutusRev)#marlowe-run-entrypoint"
marloweWebsite: =~flakePath | *"github:input-output-hk/plutus?rev=\(#plutusRev)#marlowe-website-entrypoint"
if #variant == "plutus" {
webGhcServer: =~flakePath | *"github:input-output-hk/plutus-apps?rev=\(#revs.plutus)#web-ghc-server-entrypoint"
"plutus-playground-server": =~flakePath | *"github:input-output-hk/plutus-apps?rev=\(#revs.plutus)#plutus-playground-server-entrypoint"
"plutus-playground-client": =~flakePath | *"github:input-output-hk/plutus-apps?rev=\(#revs.plutus)#plutus-playground-client-entrypoint"
}
if #variant == "marlowe" {
webGhcServer: =~flakePath | *"github:input-output-hk/marlowe-cardano?rev=\(#revs.marlowe)#web-ghc-server-entrypoint"
"marlowe-playground-server": =~flakePath | *"github:input-output-hk/marlowe-cardano?rev=\(#revs.marlowe)#marlowe-playground-server-entrypoint"
"marlowe-playground-client": =~flakePath | *"github:input-output-hk/marlowe-cardano?rev=\(#revs.marlowe)#marlowe-playground-client-entrypoint"
marloweRun: =~flakePath | *"github:input-output-hk/marlowe-cardano?rev=\(#revs.marlowe)#marlowe-run-entrypoint"
marloweWebsite: =~flakePath | *"github:input-output-hk/marlowe-website?rev=\(#revs.marloweWebsite)#marlowe-website-entrypoint"
}
}

#rateLimit: {
Expand All @@ -45,52 +51,57 @@ Namespace: [Name=_]: {
#jobs: {
#namespace: string
#portBase: uint
#variant: string

"web-ghc-server": jobDef.#WebGhcServerJob & {
#domain: "web-ghc-\(#namespace).\(fqdn)"
#port: #portBase
}
"plutus-playground": jobDef.#PlutusPlaygroundJob & {
if #namespace == "plutus-apps-prod" {
#domain: "playground.plutus.iohkdev.io"
}
if #namespace != "plutus-apps-prod" {
#domain: "plutus-playground-\(#namespace).\(fqdn)"
}
#domainNS: #namespace
#variant: "plutus"
#clientPort: #portBase + 1
#serverPort: #portBase + 2
}
"marlowe-playground": jobDef.#PlutusPlaygroundJob & {
if #namespace == "prod" {
#domain: "play.marlowe-finance.io"
}
if #namespace != "prod" {
#domain: "marlowe-playground-\(#namespace).\(fqdn)"
}
#domainNS: #namespace
#variant: "marlowe"
#clientPort: #portBase + 3
#serverPort: #portBase + 4
}
"marlowe-website": jobDef.#MarloweWebsiteJob & {
if #namespace == "prod" {
#domain: "marlowe-finance.io"
}
if #namespace != "prod" {
#domain: "marlowe-website-\(#namespace).\(fqdn)"
if #variant == "plutus" {
"plutus-playground": jobDef.#PlutusPlaygroundJob & {
if #namespace == "plutus-apps-prod" {
#domain: "playground.plutus.iohkdev.io"
}
if #namespace != "plutus-apps-prod" {
#domain: "plutus-playground-\(#namespace).\(fqdn)"
}
#domainNS: #namespace
#variant: "plutus"
#clientPort: #portBase + 1
#serverPort: #portBase + 2
}
#port: #portBase + 5
}
"marlowe-run": jobDef.#MarloweRunJob & {
if #namespace == "prod" {
#domain: "run.marlowe-finance.io"
if #variant == "marlowe" {
"marlowe-playground": jobDef.#PlutusPlaygroundJob & {
if #namespace == "prod" {
#domain: "play.marlowe-finance.io"
}
if #namespace != "prod" {
#domain: "marlowe-playground-\(#namespace).\(fqdn)"
}
#domainNS: #namespace
#variant: "marlowe"
#clientPort: #portBase + 3
#serverPort: #portBase + 4
}
"marlowe-website": jobDef.#MarloweWebsiteJob & {
if #namespace == "prod" {
#domain: "marlowe-finance.io"
}
if #namespace != "prod" {
#domain: "marlowe-website-\(#namespace).\(fqdn)"
}
#port: #portBase + 5
}
if #namespace != "prod" {
#domain: "marlowe-run-\(#namespace).\(fqdn)"
"marlowe-run": jobDef.#MarloweRunJob & {
if #namespace == "prod" {
#domain: "run.marlowe-finance.io"
}
if #namespace != "prod" {
#domain: "marlowe-run-\(#namespace).\(fqdn)"
}
#portRangeBase: #portBase + 6
}
#portRangeBase: #portBase + 6
}
}

Expand All @@ -99,41 +110,49 @@ Namespace: [Name=_]: {
#namespaces: {
"production": {
vars: {
#plutusRev: revisions["production"]
#revs: revisions["production"]
#variant: "marlowe"
}
jobs: #jobs & {
#namespace: "prod"
#portBase: 1776
#variant: "marlowe"
}

}
"staging": {
vars: {
#plutusRev: revisions["staging"]
#revs: revisions["staging"]
#variant: "marlowe"
}
jobs: #jobs & {
#namespace: "staging"
#portBase: 1787
#variant: "marlowe"
}

}

"plutus-production": {
vars: {
#plutusRev: revisions["plutus-production"]
#revs: revisions["plutusProduction"]
#variant: "plutus"
}
jobs: #jobs & {
#namespace: "plutus-apps-prod"
#portBase: 1798
#variant: "plutus"
}

}
"wyohack": {
"plutus-staging": {
vars: {
#plutusRev: revisions["wyohack"]
#revs: revisions["plutusStaging"]
#variant: "plutus"
}
jobs: #jobs & {
#namespace: "wyohack"
#namespace: "plutus-apps-staging"
#portBase: 1809
#variant: "plutus"
}

}
Expand Down
13 changes: 13 additions & 0 deletions revisions/combined.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package revisions

import (
"github.com/input-output-hk/plutus-ops/pkg/revisions/production:production"
"github.com/input-output-hk/plutus-ops/pkg/revisions/staging:staging"
"github.com/input-output-hk/plutus-ops/pkg/revisions/plutusProduction:plutusProduction"
"github.com/input-output-hk/plutus-ops/pkg/revisions/plutusStaging:plutusStaging"
)

"production": production
"staging": staging
"plutusProduction": plutusProduction
"plutusStaging": plutusStaging
3 changes: 0 additions & 3 deletions revisions/plutus-production.cue

This file was deleted.

3 changes: 3 additions & 0 deletions revisions/plutusProduction/plutus.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package plutusProduction

plutus: "e2cd641501d13715120329092b3a93df35493a44"
3 changes: 3 additions & 0 deletions revisions/plutusStaging/plutus.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package plutusStaging

plutus: "942bd8c6de6a2d5981d91c704b0258bddd9d9d7c"
3 changes: 0 additions & 3 deletions revisions/production.cue

This file was deleted.

3 changes: 3 additions & 0 deletions revisions/production/marlowe.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package production

marlowe: "fbc32408025494f62c9d99ccb3f099cf17efb6e2"
3 changes: 3 additions & 0 deletions revisions/production/marloweWebsite.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package production

marloweWebsite: "fbc32408025494f62c9d99ccb3f099cf17efb6e2"
3 changes: 0 additions & 3 deletions revisions/staging.cue

This file was deleted.

3 changes: 3 additions & 0 deletions revisions/staging/marlowe.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package staging

marlowe: "942bd8c6de6a2d5981d91c704b0258bddd9d9d7c"
3 changes: 3 additions & 0 deletions revisions/staging/marloweWebsite.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package staging

marloweWebsite: "942bd8c6de6a2d5981d91c704b0258bddd9d9d7c"
3 changes: 0 additions & 3 deletions revisions/wyohack.cue

This file was deleted.

0 comments on commit 8d82f4d

Please sign in to comment.