colouring-cities / colouring-core

The Core Platform for the Colouring Cities Research Programme (CCRP)
https://colouringcities.org
GNU General Public License v3.0
48 stars 43 forks source link

Automate CL deployment with Terraform #1296

Open edwardchalstrey1 opened 2 years ago

edwardchalstrey1 commented 2 years ago

This could be very valuable to collaborators in other countries who want to set up there own instance of colouring-london with their own data on a server.

The idea would be to have deployment scripts that can do the following, using tools such as Terraform (and possibly Ansible) to have a deployable version of CL that can, with minimal configuration:

polly64 commented 9 months ago

@matkoniecz can we close?

matkoniecz commented 9 months ago

depends on whether we want to spend time on this...

maybe one of international partners created something like this and would want to share their work?

grubl2f commented 4 months ago

I've sketched out a podman(docker)-compose (rootless) deployment for the core services (nginx with https, app:prod, postgres/postgis, few db-migrations adjustments) grubl2f/colouring-dresden (ops branch)

# environment info:

cat /etc/fedora-release 
# Fedora release 39 (Thirty Nine) # also 38

# podman v4, but v5 should work as well (no specific feature requirements)
podman-compose --version
# podman-compose version 1.0.7 # also 1.0.4
# podman version 4.8.3 # also 4.9.3

# docker substitute
cat /usr/bin/docker
# #!/usr/bin/sh
# [ -e /etc/containers/nodocker ] || \
# echo "Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg." >&2
# exec /usr/bin/podman "$@"

Tests in a clean environment (VM), for a regular docker (rootless) are on a todo-list, Also, a k8s deployment could be derived then via podman kube generate

grubl2f commented 4 months ago

updated (manually tested) in a VM for:

(all rootless, linux)

README in (https://github.com/grubl2f/colouring-dresden/tree/ops/ops)

traveller195 commented 2 months ago

@grubl2f thanks for your work, so far.

I cloned your repo, switched to "ops" branch und could run everything just by running "docker-compose up" , so I just used Docker-Compose instead of Podman.

now, on localhost:8843 I can see the Platform. nice.

grafik