-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding instrumentation to docker compose * updating notes * enabling instrumentation, adding logging + k8s con * switching to debug level logging in flask * adding nginx.conf in image buil * updating conf to include proxy_pass to flask * updating expected envvars for RUM init * enabling rum + calling envvars * adding base path /api k8s deploy for axios call * removing hashbang from base url of served vue app * adding k8s-config deployment files * adding dockerfile for mongodb container * removing carryover unused components * updating notes * dynamicallu assigning api call routes * updating backend routes to include /api * adding dynamic app build env var for vue * updating styles and correcting logo click behavior * removing unused component from router * calling api routes dynamically * updating notes * updating nginx server conf in case of page refresh * adding notes for finding custom theming * shell script for applying all yaml files in dir * always pull image + adding envvars to vue * adding ingress resource * updating api version for ingress resource * updating namspace to default * adding helm values * updating clustername * updating clustername * updating target type for ingress * updating ingress annotations * updating namespace * updating namespace * updating namespace for ingress to default * adding elb * adding ingress controller * updating type of vue service to LoadBalancer * updating yaml files * adding kubeadm init config * updating init-config * updating init-config * updating init file * enable apm in values.yaml * updating for dev * updating notes * adding recapchta server validation * updating flask reqs for recaptcha * adding recaptcha and datadog-ci * hide recaptcha badge * adding recaptcha and email validation * adding favicon * adding sh script for building/pushing imgs * adding debounce for window resize event listener * adding link to faviconn * adding debounce dep * removing unused dependency * adding docker updates * update flask to read from config * add config.py to container deploy * add dev containerized build for vue * update host for dev build to 0.0.0.0 * update vales for dd-helm to pull latest agent * adding default nginx config /etc/nginx * updateing vuenotes * move docker_push * adding nginx w/apm dockerfile * adding trace propogation to nginx * update main nginx.conf- /etc/nginx * adding apm specific docker entrypoint * adding shell script to generate the ddtrace config * update values to include commented config * adding envvars to flask deploy + logs source * adding ust + apm to vue deploy * adding source annotations to mongo deploy * removing unnecessary NodePort type from svcs * adding more notes * adding headless option to flask config * adding hl ss and svc * updating to prevent conflict * adding tls encryption * adding host to rule * udating targetPort for https to nlb to 80 * updating app protocol to http * updating ingress service to use ssl * adding ssl redirect annotations * removing ssl redirect at ingress level * removing tls at ingress resource * removing tls updates * adding default ssl cert to controller deployment * adding tls options back to ingress * adding ingressclassname * kubernetes/ingress-nginx#2724 (comment) * small updates * removing unnecessary tls at Ingress * cleaning up ingress * removing default ssl opt * cleaning up nginx-elb * updating notes * updating mongo deploy to always pull image * statefulset image config for mongo * adding updates to ingress for aws deploy on dev * removing duplicate init files * adding notes * adding multiConnect config to flask config file * adding working statefulset image * adding authorization to mongo statefulset * adding updated mongo init file and script for RS * adding dd annotations to mongodb * improve css styling * improve hamburger animation * add playfair font as default * update year in bottombar * update .ignore to add DS_STORE * update values for kubeadm * add ingress controller tracing * update service name of ingress * adding clusterconf * update bind addr for contollermgr and scheduler * update ing contr servicename for tracing * add pv for mongo ss * updating mongo init for envvar ref * udpating notes * update log format for trace id injection * update rum init config in vue app * add testing values.yaml for helm deployment * update img of vue deploy to latest * delete unused conf file * fix merge conflict * update flask image to latest * add env to nginx ingress tracing config * add modsecurity configmap * update nginx ingr controller to enable modsecurity * add to-do in notes * fixing vuenotes * upgrading datadog-ci * update ns for modsec configmap * add dd-env to nginx-elb * enable logging for debugging modsec * update flask * enable rule processing * update notes * clean up logging in flask * update dockerpush to accept alt dockerfile path * update aboutme description * fix docker push * update ps-vue version
- Loading branch information
Showing
56 changed files
with
2,094 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.icloud | ||
*.icloud | ||
*.DS_store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
version: '3' | ||
services: | ||
ddagent: | ||
image: datadog/agent:latest | ||
container_name: datadog-agent-ps | ||
env_file: | ||
- ~/sandbox.docker.env | ||
environment: | ||
- DD_APM_ENABLED=true | ||
- DD_LOGS_ENABLED=true | ||
- DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true | ||
- DD_APM_NON_LOCAL_TRAFFIC=true | ||
# - DD_AC_EXCLUDE=name:datadog-agent-ft | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
- /proc/:/host/proc/:ro | ||
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro | ||
ports: | ||
- "8126:8126" | ||
restart: on-failure | ||
mongodb: | ||
image: cahillsf/ps-mongo:test | ||
# image: mongo | ||
# environment: | ||
# MONGO_INITDB_ROOT_USERNAME: root | ||
# MONGO_INITDB_ROOT_PASSWORD: example | ||
# volumes: | ||
# - ./mongo-db/mongo-db-init-files:/docker-entrypoint-initdb.d | ||
# labels: | ||
# com.datadoghq.ad.check_names: '["mysql"]' | ||
# com.datadoghq.ad.init_configs: '[{}]' | ||
# com.datadoghq.ad.instances: '[{"server": "%%host%%", "user": "datadog","pass": "tacosandburritos"}]' | ||
ports: | ||
- '27017:27017' | ||
flask_server: | ||
# image: cahillsf/ps-flask:test | ||
build: | ||
dockerfile: Dockerfile | ||
context: ./flask-server | ||
env_file: | ||
- ~/sandbox.docker.env | ||
ports: | ||
- '8000:8000' | ||
vue_web: | ||
# image: cahillsf/ps-vue:test | ||
build: | ||
# dockerfile: Dockerfile | ||
dockerfile: Dockerfiledev | ||
context: ./funvue | ||
env_file: | ||
- ~/sandbox.docker.env | ||
ports: | ||
- '8080:8080' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
echo "Hello world" | ||
|
||
while getopts r:t:i:p:d: flag | ||
do | ||
case "${flag}" in | ||
r) repo=${OPTARG};; | ||
t) tag=${OPTARG};; | ||
i) image_name=${OPTARG};; | ||
p) path=${OPTARG};; | ||
d) dockerfilepath=${OPTARG};; | ||
esac | ||
done | ||
echo "Repo: $repo"; | ||
echo "Tag: $tag"; | ||
echo "Image Name: $image_name"; | ||
echo "Path: $path"; | ||
|
||
docker build -f $dockerfilepath -t $image_name:$tag $path | ||
docker image tag $image_name:$tag $repo/$image_name:$tag | ||
docker image push $repo/$image_name:$tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class Config(object): | ||
"""Base config, uses staging database server.""" | ||
TESTING = False | ||
DB_SERVER = 'localhost' | ||
|
||
@property | ||
def DATABASE_URI(self): # Note: all caps | ||
if self.DB_SERVER == 'mongod-0.mongodb-service.default.svc.cluster.local:27017': | ||
return f"mongodb://flask-role:toor@{self.DB_SERVER}/sitecontent?authSource=sitecontent&replicaSet=MainRepSet" | ||
return f"mongodb://flask-role:toor@{self.DB_SERVER}:27017/sitecontent?authSource=sitecontent" | ||
|
||
class localConfig(Config): | ||
DB_SERVER = 'localhost' | ||
|
||
class dockerConfig(Config): | ||
DB_SERVER = 'mongodb' | ||
|
||
class kubernetesConfig(Config): | ||
DB_SERVER = 'ps-mongo-service' | ||
|
||
class headlessConfig(Config): | ||
DB_SERVER = 'mongodb-service' | ||
|
||
class headlessConfigMultiConnectConfig(Config): | ||
DB_SERVER = 'mongod-0.mongodb-service.default.svc.cluster.local:27017' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.