Skip to content

Commit

Permalink
Merge pull request #254 from TykTechnologies/docker-compose-version-bump
Browse files Browse the repository at this point in the history
Docker compose version bump
  • Loading branch information
davegarvey authored Apr 15, 2024
2 parents f68b39f + 80c106e commit 517e634
Show file tree
Hide file tree
Showing 27 changed files with 33 additions and 23 deletions.
1 change: 0 additions & 1 deletion deployments/analytics-datadog/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
dd-agent:
image: gcr.io/datadoghq/agent:latest
Expand Down
1 change: 0 additions & 1 deletion deployments/analytics-kibana/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
kibana:
image: docker.elastic.co/kibana/kibana:7.17.1
Expand Down
1 change: 0 additions & 1 deletion deployments/analytics-splunk/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
tyk-splunk:
image: splunk/splunk:latest
Expand Down
25 changes: 25 additions & 0 deletions deployments/backstage/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

source scripts/common.sh
deployment="Backstage"

log_start_deployment
bootstrap_progress

dashboard_base_url="http://tyk-dashboard.localhost:3000"
dashboard_api_key=$(get_context_data "1" "dashboard-user" "1" "api-key")
dashboard_admin_api_credentials=$(cat deployments/tyk/volumes/tyk-dashboard/tyk_analytics.conf | jq -r .admin_secret 2>> logs/bootstrap.log)

# this assumes that the backstage backend is available on the host machine on port 7007, and that it has the tyk entitiy provider installed
log_message "Adding API event webhook to default organisation"
updated_org_data=$(jq '.event_options += { "api_event": { "webhook": "http://host.docker.internal:7007/api/catalog/tyk/development/sync" } }' < deployments/tyk/data/tyk-dashboard/1/organisation.json)
api_response=$(curl $dashboard_base_url/admin/organisations/5e9d9544a1dcd60001d0ed20 --request PUT -s \
-H "admin-auth: $dashboard_admin_api_credentials" \
-d "$updated_org_data" 2>> logs/bootstrap.log)
log_json_result "$api_response"

bootstrap_progress
log_end_deployment

# blank output to overwrite "bootstrapping..." message
echo -e "\033[2K "
2 changes: 2 additions & 0 deletions deployments/backstage/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
name: tyk-demo
1 change: 1 addition & 0 deletions deployments/backstage/todo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- dynamically create image for backstage so it doesn't have to be run separately? (as per approach taken by the `subscriptions` deployment, using a Dockerfile)
1 change: 0 additions & 1 deletion deployments/bench/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
bench:
image: mangomm/go-bench-suite
Expand Down
1 change: 0 additions & 1 deletion deployments/cicd/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
jenkins:
image: jenkins/jenkins:2.319.2-lts-alpine
Expand Down
1 change: 0 additions & 1 deletion deployments/database-postgres/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.9'
services:
tyk-postgres:
image: postgres:13.3-alpine
Expand Down
1 change: 0 additions & 1 deletion deployments/federation/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.9'
services:
users-subgraph:
image: zalbiraw/go-api-test-service:v2.0.0
Expand Down
1 change: 0 additions & 1 deletion deployments/instrumentation/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
graphite:
image: graphiteapp/graphite-statsd:1.1.7-6
Expand Down
2 changes: 1 addition & 1 deletion deployments/k8s-operator/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
version: '3.3'
name: tyk-demo
1 change: 0 additions & 1 deletion deployments/keycloak-dcr/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: "3.3"
services:
keycloak-db:
image: postgres:9.6
Expand Down
1 change: 0 additions & 1 deletion deployments/mailserver/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
mailserver:
image: marcopas/docker-mailslurper
Expand Down
1 change: 0 additions & 1 deletion deployments/mdcb/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
tyk-mdcb:
image: tykio/tyk-mdcb-docker:${MDCB_VERSION:-v2.5.0}
Expand Down
1 change: 0 additions & 1 deletion deployments/mqtt/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: "3.3"
services:
mosquitto:
image: eclipse-mosquitto:1.6.10
Expand Down
1 change: 0 additions & 1 deletion deployments/otel-jaeger/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: "2"
services:
# Jaeger
jaeger-all-in-one:
Expand Down
1 change: 0 additions & 1 deletion deployments/otel-new-relic/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: "2"
services:
# Collector
collector-gateway:
Expand Down
1 change: 0 additions & 1 deletion deployments/portal/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
tyk-portal:
image: tykio/portal:v1.8.3
Expand Down
1 change: 0 additions & 1 deletion deployments/slo-prometheus-grafana/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
tyk-slo-pump:
image: tykio/tyk-pump-docker-pub:${PUMP_VERSION:-v1.9.0}
Expand Down
1 change: 0 additions & 1 deletion deployments/sso/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
tyk-dashboard-sso:
image: tykio/tyk-dashboard:${DASHBOARD_SSO_VERSION:-v5.2.5}
Expand Down
1 change: 0 additions & 1 deletion deployments/subscriptions/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.8'
services:
subscriptions-chatapp:
build: ./deployments/subscriptions
Expand Down
1 change: 0 additions & 1 deletion deployments/tracing/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
zipkin:
image: openzipkin/zipkin-slim:2.21.7
Expand Down
1 change: 0 additions & 1 deletion deployments/tyk/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.8'
services:
tyk-dashboard:
image: tykio/tyk-dashboard:${DASHBOARD_VERSION:-v5.3.0}
Expand Down
1 change: 0 additions & 1 deletion deployments/tyk2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
tyk2-dashboard:
image: tykio/tyk-dashboard:${DASHBOARD_VERSION:-v5.3.0}
Expand Down
1 change: 0 additions & 1 deletion deployments/waf/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '3.3'
services:
waf:
image: owasp/modsecurity-crs:3.3.4-apache-202302060502
Expand Down
4 changes: 4 additions & 0 deletions scripts/add-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ docker run \
-d \
-P \
-v $(pwd)/deployments/tyk/volumes/tyk-gateway/tyk.conf:/opt/tyk-gateway/tyk.conf \
-v $(pwd)/deployments/tyk/volumes/tyk-gateway/certs:/opt/tyk-gateway/certs \
-v $(pwd)/deployments/tyk/volumes/tyk-gateway/middleware:/opt/tyk-gateway/middleware \
-v $(pwd)/deployments/tyk/volumes/tyk-gateway/plugins:/opt/tyk-gateway/plugins \
-v $(pwd)/deployments/tyk/volumes/tyk-gateway/templates/error_401.json:/opt/tyk-gateway/templates/error_401.json \
-v $(pwd)/deployments/tyk/volumes/databases/GeoLite2-Country.mmdb:/opt/tyk-gateway/databases/GeoLite2-Country.mmdb \
--network tyk-demo_tyk \
tykio/tyk-gateway:v5.2.5

0 comments on commit 517e634

Please sign in to comment.