Skip to content

Commit

Permalink
Deprecated functionality was deleted (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunagatov authored Jul 18, 2023
1 parent c4e7367 commit f5be79c
Show file tree
Hide file tree
Showing 64 changed files with 32 additions and 9,308 deletions.
42 changes: 0 additions & 42 deletions .env
Original file line number Diff line number Diff line change
@@ -1,42 +0,0 @@
ELASTIC_VERSION=8.5.3

## Passwords for stack users
#

# User 'elastic' (built-in)
#
# Superuser role, full access to cluster management and data indices.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html
ELASTIC_PASSWORD='changeme'

# User 'logstash_internal' (custom)
#
# The user Logstash uses to connect and send data to Elasticsearch.
# https://www.elastic.co/guide/en/logstash/current/ls-security.html
LOGSTASH_INTERNAL_PASSWORD='changeme'

# User 'kibana_system' (built-in)
#
# The user Kibana uses to connect and communicate with Elasticsearch.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html
KIBANA_SYSTEM_PASSWORD='changeme'

# Users 'metricbeat_internal', 'filebeat_internal' and 'heartbeat_internal' (custom)
#
# The users Beats use to connect and send data to Elasticsearch.
# https://www.elastic.co/guide/en/beats/metricbeat/current/feature-roles.html
METRICBEAT_INTERNAL_PASSWORD='changeme'
FILEBEAT_INTERNAL_PASSWORD='changeme'
HEARTBEAT_INTERNAL_PASSWORD='changeme'

# User 'monitoring_internal' (custom)
#
# The user Metricbeat uses to collect monitoring data from stack components.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/how-monitoring-works.html
MONITORING_INTERNAL_PASSWORD='changeme'

# User 'beats_system' (built-in)
#
# The user the Beats use when storing monitoring information in Elasticsearch.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html
BEATS_SYSTEM_PASSWORD='changeme'
Binary file removed certs/zufarkeystore.p12
Binary file not shown.
6,991 changes: 0 additions & 6,991 deletions dependency-graph/snapshots/online-store-0.0.1-SNAPSHOT-deps.graphml

This file was deleted.

161 changes: 1 addition & 160 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
version: '3.9'
services:

#
# Mongo Database
#
mongodb:
image: "mongo:latest"
container_name: mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=rootuser
- MONGO_INITDB_ROOT_PASSWORD=rootpass
ports:
- '27017:27017'
networks:
- online-store-network
profiles:
- dev
- test
- prod

#
# Postgresql Database
#
Expand Down Expand Up @@ -52,160 +34,19 @@ services:
ports:
- '8083:8083'
user: root
environment:
AWS_ENDPOINT_URL: http://awslocal:4566
healthcheck:
test: "curl --fail --silent localhost:8083/actuator/health | grep UP || exit 1"
interval: 20s
timeout: 5s
retries: 5
start_period: 40s
depends_on:
- mongodb
deploy:
replicas: 1
networks:
- online-store-network
profiles:
- test

# The 'setup' service runs a one-off script which initializes users inside
# Elasticsearch — such as 'logstash_internal' and 'kibana_system' — with the
# values of the passwords defined in the '.env' file.
#
# This task is only performed during the *initial* startup of the stack. On all
# subsequent runs, the service simply returns immediately, without performing
# any modification to existing users.
setup:
build:
context: ./elastic-stack/setup/
args:
ELASTIC_VERSION: ${ELASTIC_VERSION}
init: true
volumes:
- ./elastic-stack/setup/entrypoint.sh:/entrypoint.sh:ro,Z
- ./elastic-stack/setup/helpers.sh:/helpers.sh:ro,Z
- ./elastic-stack/setup/roles:/roles:ro,Z
- ./elastic-stack/setup:/state:Z
environment:
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-}
LOGSTASH_INTERNAL_PASSWORD: ${LOGSTASH_INTERNAL_PASSWORD:-}
KIBANA_SYSTEM_PASSWORD: ${KIBANA_SYSTEM_PASSWORD:-}
METRICBEAT_INTERNAL_PASSWORD: ${METRICBEAT_INTERNAL_PASSWORD:-}
FILEBEAT_INTERNAL_PASSWORD: ${FILEBEAT_INTERNAL_PASSWORD:-}
HEARTBEAT_INTERNAL_PASSWORD: ${HEARTBEAT_INTERNAL_PASSWORD:-}
MONITORING_INTERNAL_PASSWORD: ${MONITORING_INTERNAL_PASSWORD:-}
BEATS_SYSTEM_PASSWORD: ${BEATS_SYSTEM_PASSWORD:-}
networks:
- online-store-network
depends_on:
online-store-app:
condition: service_healthy
profiles:
- prod

#
# ELASTICSEARCH
#
elasticsearch:
build:
context: ./elastic-stack/elasticsearch/
args:
ELASTIC_VERSION: ${ELASTIC_VERSION}
volumes:
- ./elastic-stack/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro,Z
- ./elastic-stack/elasticsearch:/usr/share/elasticsearch/data:Z
ports:
- '9200:9200'
- '9300:9300'
environment:
node.name: elasticsearch
ES_JAVA_OPTS: -Xms512m -Xmx512m
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-}
discovery.type: single-node # Use single node discovery in order to disable production mode and avoid bootstrap checks.
networks:
- online-store-network
profiles:
- prod

#
# LOGSTASH
#
logstash:
build:
context: ./elastic-stack/logstash/
args:
ELASTIC_VERSION: ${ELASTIC_VERSION}
volumes:
- ./elastic-stack/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro,Z
- ./elastic-stack/logstash/pipeline:/usr/share/logstash/pipeline:ro,Z
ports:
- '5044:5044'
- '50000:50000/tcp'
- '50000:50000/udp'
- '9600:9600'
environment:
LS_JAVA_OPTS: -Xms256m -Xmx256m
LOGSTASH_INTERNAL_PASSWORD: ${LOGSTASH_INTERNAL_PASSWORD:-}
networks:
- online-store-network
depends_on:
- elasticsearch
profiles:
- prod

#
# KIBANA
#
kibana:
build:
context: ./elastic-stack/kibana/
args:
ELASTIC_VERSION: ${ELASTIC_VERSION}
volumes:
- ./elastic-stack/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro,Z
ports:
- '5601:5601'
environment:
KIBANA_SYSTEM_PASSWORD: ${KIBANA_SYSTEM_PASSWORD:-}
networks:
- online-store-network
depends_on:
- elasticsearch
profiles:
- prod

#
# Localstack
#
localstack:
image: 'localstack/localstack:latest'
container_name: localstack
build:
context: ./
dockerfile: docker/localstack/Dockerfile
hostname: awslocal
ports:
- '4566:4566'
- '4510-4559:4510-4559'
user: root
environment:
DEBUG: 0
SERVICES: "sqs,sns,dynamodb"
HOSTNAME_EXTERNAL: awslocal
PERSISTENCE: "/var/lib/localstack/state"
AWS_DEFAULT_REGION: us-east-1
DYNAMODB_SHARE_DB: 1
DYNAMODB_IN_MEMORY: 1
EDGE_PORT: 4566
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./init-scripts/localstack:/etc/localstack/init/ready.d"
networks:
- online-store-network
profiles:
- aws

sonarqube:
image: sonarqube:latest
container_name: onlinestore-sonarqube
Expand All @@ -219,7 +60,7 @@ services:
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
profiles:
- dev
- prod

networks:
online-store-network:
Expand Down
8 changes: 0 additions & 8 deletions docker/localstack/Dockerfile

This file was deleted.

97 changes: 0 additions & 97 deletions init-scripts/localstack/localstack_bootstrap.sh

This file was deleted.

12 changes: 0 additions & 12 deletions kube/config-map.yaml

This file was deleted.

Loading

0 comments on commit f5be79c

Please sign in to comment.