mirror of
https://github.com/outbackdingo/xmidt.git
synced 2026-08-25 14:53:55 +00:00
changed for switching hecate upstream to argus
This commit is contained in:
@@ -20,7 +20,7 @@ popd
|
|||||||
echo "Running services..."
|
echo "Running services..."
|
||||||
CADUCEUS_VERSION=${CADUCEUS_VERSION:-latest} \
|
CADUCEUS_VERSION=${CADUCEUS_VERSION:-latest} \
|
||||||
ARGUS_VERSION=${ARGUS_VERSION:-latest} \
|
ARGUS_VERSION=${ARGUS_VERSION:-latest} \
|
||||||
TR1D1UM_VERSION=${TR1D1UM_VERSION:-0.5.1} \
|
TR1D1UM_VERSION=${TR1D1UM_VERSION:-latest} \
|
||||||
SCYTALE_VERSION=${SCYTALE_VERSION:-latest} \
|
SCYTALE_VERSION=${SCYTALE_VERSION:-latest} \
|
||||||
PETASOS_VERSION=${PETASOS_VERSION:-latest} \
|
PETASOS_VERSION=${PETASOS_VERSION:-latest} \
|
||||||
TALARIA_VERSION=${TALARIA_VERSION:-latest} \
|
TALARIA_VERSION=${TALARIA_VERSION:-latest} \
|
||||||
@@ -57,3 +57,29 @@ if [[ $? -ne 0 ]]; then
|
|||||||
--table-name gifnoc --time-to-live-specification "Enabled=true, AttributeName=expires" \
|
--table-name gifnoc --time-to-live-specification "Enabled=true, AttributeName=expires" \
|
||||||
--output text
|
--output text
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AWS_ACCESS_KEY_ID=accessKey AWS_SECRET_ACCESS_KEY=secretKey aws dynamodb --endpoint-url http://localhost:8100 describe-table --table-name gifnoc --region us-east-2 --output text > /dev/null 2> /dev/null
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
AWS_ACCESS_KEY_ID=accessKey AWS_SECRET_ACCESS_KEY=secretKey aws dynamodb --endpoint-url http://localhost:8100 create-table \
|
||||||
|
--table-name gifnoc \
|
||||||
|
--attribute-definitions \
|
||||||
|
AttributeName=bucket,AttributeType=S \
|
||||||
|
AttributeName=expires,AttributeType=N \
|
||||||
|
AttributeName=id,AttributeType=S \
|
||||||
|
--key-schema \
|
||||||
|
AttributeName=bucket,KeyType=HASH \
|
||||||
|
AttributeName=id,KeyType=RANGE \
|
||||||
|
--global-secondary-indexes \
|
||||||
|
"[{\"IndexName\": \"Expires-index\",\"KeySchema\":[{\"AttributeName\":\"bucket\",\"KeyType\":\"HASH\"}, {\"AttributeName\":\"expires\",\"KeyType\":\"RANGE\"}], \
|
||||||
|
\"ProvisionedThroughput\": {\"ReadCapacityUnits\": 10, \"WriteCapacityUnits\": 5 },\"Projection\":{\"ProjectionType\":\"ALL\"}}]" \
|
||||||
|
--provisioned-throughput \
|
||||||
|
ReadCapacityUnits=10,WriteCapacityUnits=5 \
|
||||||
|
--stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES \
|
||||||
|
--region us-east-2 \
|
||||||
|
--output text
|
||||||
|
|
||||||
|
AWS_ACCESS_KEY_ID=accessKey AWS_SECRET_ACCESS_KEY=secretKey aws dynamodb \
|
||||||
|
--endpoint-url http://localhost:8000 --region us-east-2 update-time-to-live \
|
||||||
|
--table-name gifnoc --time-to-live-specification "Enabled=true, AttributeName=expires" \
|
||||||
|
--output text
|
||||||
|
fi
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
networks:
|
networks:
|
||||||
xmidt: ~
|
xmidt: ~
|
||||||
services:
|
services:
|
||||||
argus:
|
argus0:
|
||||||
container_name: argus
|
container_name: argus0
|
||||||
depends_on:
|
depends_on:
|
||||||
- dynamodb
|
- dynamodb
|
||||||
environment:
|
environment:
|
||||||
- "AWS_ENDPOINT=http://dynamodb:8000"
|
- "AWS_ENDPOINT=http://dynamodb0:8000"
|
||||||
- "TRACING_PROVIDER_NAME=zipkin"
|
- "TRACING_PROVIDER_NAME=zipkin"
|
||||||
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
- "ACCESS_LEVEL_CAPABILITY=x1:issuer:test:.*:all"
|
- "ACCESS_LEVEL_CAPABILITY=x1:issuer:test:.*:all"
|
||||||
@@ -16,13 +16,27 @@ services:
|
|||||||
- xmidt
|
- xmidt
|
||||||
ports:
|
ports:
|
||||||
- "6600-6603:6600-6603"
|
- "6600-6603:6600-6603"
|
||||||
|
argus1:
|
||||||
|
container_name: argus1
|
||||||
|
depends_on:
|
||||||
|
- dynamodb
|
||||||
|
environment:
|
||||||
|
- "AWS_ENDPOINT=http://dynamodb1:8100"
|
||||||
|
- "TRACING_PROVIDER_NAME=zipkin"
|
||||||
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
|
- "ACCESS_LEVEL_CAPABILITY=x1:issuer:test:.*:all"
|
||||||
|
image: "xmidt/argus:${ARGUS_VERSION}"
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "6800-6803:6600-6603"
|
||||||
caduceus:
|
caduceus:
|
||||||
container_name: caduceus
|
container_name: caduceus
|
||||||
depends_on:
|
depends_on:
|
||||||
- argus
|
- argus1
|
||||||
environment:
|
environment:
|
||||||
- "CONSUL_HOST=consul0:8500"
|
- "CONSUL_HOST=consul0:8500"
|
||||||
- "ARGUS_HOST=http://argus:6600"
|
- "ARGUS_HOST=http://argus1:6800"
|
||||||
image: "xmidt/caduceus:${CADUCEUS_VERSION}"
|
image: "xmidt/caduceus:${CADUCEUS_VERSION}"
|
||||||
networks:
|
networks:
|
||||||
- xmidt
|
- xmidt
|
||||||
@@ -58,30 +72,26 @@ services:
|
|||||||
- "8601:8600/udp"
|
- "8601:8600/udp"
|
||||||
volumes:
|
volumes:
|
||||||
- "./docFiles/consul-1.json:/consul.json"
|
- "./docFiles/consul-1.json:/consul.json"
|
||||||
dynamodb:
|
dynamodb0:
|
||||||
container_name: dynamo-xmidt
|
container_name: dynamo-xmidt0
|
||||||
hostname: dynamodb
|
hostname: dynamodb
|
||||||
image: amazon/dynamodb-local
|
image: amazon/dynamodb-local
|
||||||
networks:
|
networks:
|
||||||
- xmidt
|
- xmidt
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
goaws:
|
dynamodb1:
|
||||||
image: goaws:local
|
container_name: dynamo-xmidt1
|
||||||
container_name: goaws
|
hostname: dynamodb
|
||||||
ports:
|
image: amazon/dynamodb-local
|
||||||
- 4100:4100
|
|
||||||
networks:
|
networks:
|
||||||
- xmidt
|
- xmidt
|
||||||
volumes:
|
ports:
|
||||||
- ./docFiles/sns.yaml:/conf/goaws.yaml
|
- "8100:8000"
|
||||||
hecate:
|
hecate:
|
||||||
container_name: hecate
|
container_name: hecate
|
||||||
depends_on:
|
depends_on:
|
||||||
- goaws
|
- goaws
|
||||||
environment:
|
|
||||||
- AWS_ACCESS_KEY=supbro
|
|
||||||
- AWS_SECRET_KEY=nahbro
|
|
||||||
hostname: hecate
|
hostname: hecate
|
||||||
image: "xmidt/hecate:latest"
|
image: "xmidt/hecate:latest"
|
||||||
networks:
|
networks:
|
||||||
@@ -116,10 +126,10 @@ services:
|
|||||||
container_name: scytale
|
container_name: scytale
|
||||||
depends_on:
|
depends_on:
|
||||||
- petasos
|
- petasos
|
||||||
- argus
|
- argus0
|
||||||
environment:
|
environment:
|
||||||
- "CONSUL_HOST=consul0:8500"
|
- "CONSUL_HOST=consul0:8500"
|
||||||
- "ARGUS_HOST=http://argus:6600"
|
- "ARGUS_HOST=http://argus0:6600"
|
||||||
- TRACING_PROVIDER_NAME=zipkin
|
- TRACING_PROVIDER_NAME=zipkin
|
||||||
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
image: "xmidt/scytale:${SCYTALE_VERSION}"
|
image: "xmidt/scytale:${SCYTALE_VERSION}"
|
||||||
@@ -194,11 +204,11 @@ services:
|
|||||||
tr1d1um:
|
tr1d1um:
|
||||||
container_name: tr1d1um
|
container_name: tr1d1um
|
||||||
depends_on:
|
depends_on:
|
||||||
- argus
|
- argus0
|
||||||
- scytale
|
- scytale
|
||||||
environment:
|
environment:
|
||||||
- "CONSUL_HOST=consul0:8500"
|
- "CONSUL_HOST=consul0:8500"
|
||||||
- "ARGUS_HOST=http://argus:6600"
|
- "ARGUS_HOST=http://argus0:6600"
|
||||||
- TRACING_PROVIDER_NAME=zipkin
|
- TRACING_PROVIDER_NAME=zipkin
|
||||||
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
image: "xmidt/tr1d1um:${TR1D1UM_VERSION}"
|
image: "xmidt/tr1d1um:${TR1D1UM_VERSION}"
|
||||||
|
|||||||
Reference in New Issue
Block a user