From acd52ae34f8b90da11e4f87b6bbfe092a12dd84d Mon Sep 17 00:00:00 2001 From: zramsay Date: Tue, 17 Oct 2023 16:37:52 -0400 Subject: [PATCH 1/3] website stack --- app/data/compose/docker-compose-laconic-dot-com.yml | 8 ++++++++ app/data/container-build/cerc-laconic-dot-com/build.sh | 4 ++++ app/data/stacks/laconic-dot-com/README.md | 7 +++++++ app/data/stacks/laconic-dot-com/stack.yml | 8 ++++++++ 4 files changed, 27 insertions(+) create mode 100644 app/data/compose/docker-compose-laconic-dot-com.yml create mode 100755 app/data/container-build/cerc-laconic-dot-com/build.sh create mode 100644 app/data/stacks/laconic-dot-com/README.md create mode 100644 app/data/stacks/laconic-dot-com/stack.yml diff --git a/app/data/compose/docker-compose-laconic-dot-com.yml b/app/data/compose/docker-compose-laconic-dot-com.yml new file mode 100644 index 00000000..1d75a1ea --- /dev/null +++ b/app/data/compose/docker-compose-laconic-dot-com.yml @@ -0,0 +1,8 @@ +version: "3.2" + +services: + lasso: + image: cerc/laconic-dot-com:local + restart: always + ports: + - "0.0.0.0:3000:3000" diff --git a/app/data/container-build/cerc-laconic-dot-com/build.sh b/app/data/container-build/cerc-laconic-dot-com/build.sh new file mode 100755 index 00000000..9ddcd090 --- /dev/null +++ b/app/data/container-build/cerc-laconic-dot-com/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# Build the laconic.com image +source ${CERC_CONTAINER_BASE_DIR}/build-base.sh +docker build -t cerc/laconic-dot-com:local -f ${CERC_REPO_BASE_DIR}/laconic.com/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/laconic.com diff --git a/app/data/stacks/laconic-dot-com/README.md b/app/data/stacks/laconic-dot-com/README.md new file mode 100644 index 00000000..622d8d42 --- /dev/null +++ b/app/data/stacks/laconic-dot-com/README.md @@ -0,0 +1,7 @@ +# laconic-dot-com + +``` +laconic-so --stack laconic-dot-com setup-repositories +laconic-so --stack laconic-dot-com build-containers +laconic-so --stack laconic-dot-com deploy up +``` diff --git a/app/data/stacks/laconic-dot-com/stack.yml b/app/data/stacks/laconic-dot-com/stack.yml new file mode 100644 index 00000000..8215f695 --- /dev/null +++ b/app/data/stacks/laconic-dot-com/stack.yml @@ -0,0 +1,8 @@ +version: "0.1" +name: laconic-dot-com +repos: + - github.com/LaconicNetwork/laconic.com@dockerfile +containers: + - cerc/laconic-dot-com +pods: + - laconic-dot-com -- 2.45.2 From ead15cd4ac5ca8f9b3539bf9bd3d43d4829208ea Mon Sep 17 00:00:00 2001 From: zramsay Date: Wed, 18 Oct 2023 11:33:52 -0400 Subject: [PATCH 2/3] use a release, update ports --- app/data/compose/docker-compose-laconic-dot-com.yml | 2 +- app/data/stacks/laconic-dot-com/stack.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/data/compose/docker-compose-laconic-dot-com.yml b/app/data/compose/docker-compose-laconic-dot-com.yml index 1d75a1ea..65afbf54 100644 --- a/app/data/compose/docker-compose-laconic-dot-com.yml +++ b/app/data/compose/docker-compose-laconic-dot-com.yml @@ -5,4 +5,4 @@ services: image: cerc/laconic-dot-com:local restart: always ports: - - "0.0.0.0:3000:3000" + - "3000:3000" diff --git a/app/data/stacks/laconic-dot-com/stack.yml b/app/data/stacks/laconic-dot-com/stack.yml index 8215f695..2bc98952 100644 --- a/app/data/stacks/laconic-dot-com/stack.yml +++ b/app/data/stacks/laconic-dot-com/stack.yml @@ -1,7 +1,7 @@ version: "0.1" name: laconic-dot-com repos: - - github.com/LaconicNetwork/laconic.com@dockerfile + - github.com/LaconicNetwork/laconic.com@v0.0.1 containers: - cerc/laconic-dot-com pods: -- 2.45.2 From 185243ac62b82c05a2c0b7514fe510088ccbc8c0 Mon Sep 17 00:00:00 2001 From: zramsay Date: Sat, 21 Oct 2023 17:29:16 +0000 Subject: [PATCH 3/3] use deployments feature for website --- app/data/compose/docker-compose-laconic-dot-com.yml | 4 ++-- app/data/stacks/laconic-dot-com/README.md | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/data/compose/docker-compose-laconic-dot-com.yml b/app/data/compose/docker-compose-laconic-dot-com.yml index 65afbf54..7ee35e2b 100644 --- a/app/data/compose/docker-compose-laconic-dot-com.yml +++ b/app/data/compose/docker-compose-laconic-dot-com.yml @@ -1,8 +1,8 @@ version: "3.2" services: - lasso: + laconic-dot-com: image: cerc/laconic-dot-com:local restart: always ports: - - "3000:3000" + - "3000" diff --git a/app/data/stacks/laconic-dot-com/README.md b/app/data/stacks/laconic-dot-com/README.md index 622d8d42..51ae08a7 100644 --- a/app/data/stacks/laconic-dot-com/README.md +++ b/app/data/stacks/laconic-dot-com/README.md @@ -3,5 +3,7 @@ ``` laconic-so --stack laconic-dot-com setup-repositories laconic-so --stack laconic-dot-com build-containers -laconic-so --stack laconic-dot-com deploy up +laconic-so --stack laconic-dot-com deploy init --output laconic-website-spec.yml --map-ports-to-host any-same +laconic-so --stack laconic-dot-com deploy create --spec-file laconic-website-spec.yml --deployment-dir lx-website +laconic-so deployment --dir lx-website start ``` -- 2.45.2