From c06be6da81815a6ffdca9d70922c7c4775b2d1f7 Mon Sep 17 00:00:00 2001 From: Zach Date: Sat, 21 Oct 2023 13:31:47 -0400 Subject: [PATCH] stack for the laconic.com website (#590) * website stack * use a release, update ports * use deployments feature for website --- 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 | 9 +++++++++ app/data/stacks/laconic-dot-com/stack.yml | 8 ++++++++ 4 files changed, 29 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..7ee35e2b --- /dev/null +++ b/app/data/compose/docker-compose-laconic-dot-com.yml @@ -0,0 +1,8 @@ +version: "3.2" + +services: + laconic-dot-com: + image: cerc/laconic-dot-com:local + restart: always + ports: + - "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..51ae08a7 --- /dev/null +++ b/app/data/stacks/laconic-dot-com/README.md @@ -0,0 +1,9 @@ +# 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 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 +``` 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..2bc98952 --- /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@v0.0.1 +containers: + - cerc/laconic-dot-com +pods: + - laconic-dot-com