Skip to content

Commit

Permalink
Remove ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergesundheit committed Dec 18, 2023
1 parent 3b4ac6a commit ef6683e
Show file tree
Hide file tree
Showing 34 changed files with 7 additions and 635 deletions.
12 changes: 0 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ updates:
- "component/backend"
registries:
- dockerhub
# infrastructure
- package-ecosystem: "docker"
directory: "/infrastructure/https_proxy/files/"
schedule:
interval: "monthly"
reviewers:
- "bCyberBasti"
labels:
- "dependencies"
- "deployment"
registries:
- dockerhub

registries:
dockerhub:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Code for Münster
Copyright (c) 2020 - 2023 Code for Münster

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

## Deployment

We use GitHub Actions and docker-compose to deploy the master branch to a staging environment at <https://staging.muenster-update.de>
We use GitHub Actions to build and push the application container images to Docker Hub ([frontend](https://hub.docker.com/r/codeformuenster/muenster-jetzt-frontend), [backend](https://hub.docker.com/r/codeformuenster/muenster-jetzt-api)). The rest of the deployment is handeled on a kubernetes cluster ([Kustomization files](./deployment/)).

Deployments live at https://staging.muenster-update.de ([Staging API](https://api.staging.muenster-update.de/)) and https://muenster-update.de ([Production API](https://api.muenster-update.de/)).

### Staging deployment

Each run of workflow [workflow 'Build and deploy'] on branch `master` builds and pushes container images [`docker.io/codeformuenster/muenster-jetzt-frontend:master`](https://hub.docker.com/r/codeformuenster/muenster-jetzt-frontend) and [`docker.io/codeformuenster/muenster-jetzt-api:master`](https://hub.docker.com/r/codeformuenster/muenster-jetzt-api). Then it deploys them in on our staging server environment.
Staging follows the `master` branch.

### Production deployment

The production deployment is deployed through CI triggered by pushes to the `production` branch. Check [`.github/workflows/build-and-deploy.yaml`](https://github.com/codeformuenster/muenster-jetzt/blob/master/.github/workflows/build-and-deploy.yaml).

Easiest way to do so is to create a pull request from [master into production](https://github.com/codeformuenster/muenster-jetzt/compare/production...master) branches.
The production should run the lastest git tag.

## Dev Setup with VS Code

Expand Down
16 changes: 1 addition & 15 deletions deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

## Kustomize / Kubernetes

This method requires an external Postgres server.
This method requires an external Postgres server and kubernetes cluster.

The kustomization in `dev` is an example for a deployment. Check out the `backend-secret.example.yaml` for required secrets for the backend.

## Plain docker / docker-compose

This document attempts to describe the deployment of Münster Update to a linux server.

### Requirements

- a linux server (we're using ubuntu 20.04 lts) with ssh access
- ansible on your local computer
- a fork of this repository (a local clone also works)

### Installation

The installation is described in the README file of the [infrastructure](../infrastructure/README.md) directory.
2 changes: 0 additions & 2 deletions infrastructure/.gitignore

This file was deleted.

41 changes: 0 additions & 41 deletions infrastructure/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions infrastructure/ansible.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions infrastructure/auto_updates/files/10periodic

This file was deleted.

11 changes: 0 additions & 11 deletions infrastructure/auto_updates/tasks/main.yml

This file was deleted.

17 changes: 0 additions & 17 deletions infrastructure/common/tasks/main.yml

This file was deleted.

33 changes: 0 additions & 33 deletions infrastructure/docker/tasks/main.yml

This file was deleted.

5 changes: 0 additions & 5 deletions infrastructure/group_vars/all.yml

This file was deleted.

27 changes: 0 additions & 27 deletions infrastructure/host_vars/45.132.245.60/vars.yml

This file was deleted.

39 changes: 0 additions & 39 deletions infrastructure/host_vars/45.132.245.60/vault.yml

This file was deleted.

2 changes: 0 additions & 2 deletions infrastructure/https_proxy/files/Dockerfile

This file was deleted.

48 changes: 0 additions & 48 deletions infrastructure/https_proxy/files/docker-compose.yml

This file was deleted.

18 changes: 0 additions & 18 deletions infrastructure/https_proxy/files/traefik.toml

This file was deleted.

31 changes: 0 additions & 31 deletions infrastructure/https_proxy/tasks/main.yml

This file was deleted.

12 changes: 0 additions & 12 deletions infrastructure/main-server.yml

This file was deleted.

3 changes: 0 additions & 3 deletions infrastructure/netdata/handlers/main.yml

This file was deleted.

Loading

0 comments on commit ef6683e

Please sign in to comment.