Skip to content

Commit

Permalink
Remove the old pac files (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
jongio authored Sep 15, 2021
1 parent 3f7851f commit b30ff39
Show file tree
Hide file tree
Showing 48 changed files with 79 additions and 1,824 deletions.
104 changes: 0 additions & 104 deletions .github/workflows/aks-dev-deploy.yml.disabled

This file was deleted.

104 changes: 0 additions & 104 deletions .github/workflows/aks-prod-deploy.yml.disabled

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ Memealyzer is an app built to demonstrate some the latest and greatest Azure tec
- [Azure Functions](https://azure.microsoft.com/services/functions/) - to connect message queues with SignalR
- [Azure SignalR Service](https://azure.microsoft.com/services/signalr-service/) - to send messages to the web app

> Since 12/5/2020, this project will use Bicep and Project Tye instead of Terraform and Docker Compose, so we will **not** keep those files up to date. They will be kept in the project for historical purposes only. More info can be found on the ["Legacy Tools"](docs/LegacyTools.md) page. You can find the Terraform files in the [terraform branch](https://github.com/jongio/memealyzer/tree/terraform).
## Architecture

!["Architecture"](assets/arch.png)
Expand Down
2 changes: 1 addition & 1 deletion debug.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -euo pipefail

pushd ./pac/net/tye > /dev/null
pushd ./pac > /dev/null
./debug.sh "$@"
popd > /dev/null
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -euo pipefail

pushd ./pac/net/tye > /dev/null
pushd ./pac > /dev/null
./deploy.sh "$@"
popd > /dev/null
63 changes: 0 additions & 63 deletions docs/LegacyTools.md

This file was deleted.

62 changes: 62 additions & 0 deletions pac/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
BASENAME=meme721
REGION=westus2
FAILOVER_REGION=eastus2

# SET TO AUTO SELECT AZURE SUB
#AZURE_SUBSCRIPTION_ID=

# SCRIPT VARS
AZURE_FUNCTION_APP_NAME=meme721function
AZURE_CONTAINER_REGISTRY_SERVER=meme721acr.azurecr.io

# Use the following if you want to run with local k8s cluster
#K8S_CONTEXT=docker-desktop

K8S_CONTEXT=meme721aks

# Update the following to force a new image creation
CONTAINER_TAG=1.0.13

# APP VARS

# FOR LOCAL DEV WITH DOCKER
#FUNCTIONS_ENDPOINT=http://localhost:3080
#API_ENDPOINT=http://localhost:2080

IMAGE_ENDPOINT=https://meme-api.herokuapp.com/gimme/wholesomememes
# === AZURE_STORAGE_TYPE (Default=COSMOS_SQL)
#AZURE_STORAGE_TYPE=STORAGE_TABLE
#AZURE_STORAGE_TYPE=COSMOS_SQL

# === AZURE_MESSAGING_TYPE (Default=SERVICE_BUS_QUEUE)
#AZURE_MESSAGING_TYPE=SERVICE_BUS_QUEUE
#AZURE_MESSAGING_TYPE=STORAGE_QUEUE

# This will determine how quickly the Storage Queue function polls for new messages. It defaults to 10 seconds when using Azurite because we were seeing throttling with Ngrok.
# AZURE_STORAGE_QUEUE_MAX_POLLING_INTERVAL="00:00:10"

# COSMO EMULATOR
#USE_COSMOS_EMULATOR=true
# You only need to uncomment the following values if you need them to be different that the defaults.
#AZURE_COSMOS_ENDPOINT=https://localhost:8081/
#AZURE_COSMOS_KEY=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==

# AZURITE
# If you set USE_AZURITE* to true, then the ML components that extract text from images
# will use Azurite instead of Azure services.
#USE_AZURITE=true
#USE_AZURITE_BLOB=true
#USE_AZURITE_QUEUE=true
#USE_AZURITE_TABLE=true
# You only need to uncomment the following values if you need them to be different that the defaults.
#AZURE_STORAGE_ACCOUNT_NAME=devstoreaccount1
#AZURE_STORAGE_BLOB_ENDPOINT=https://127.0.0.1:10000/devstoreaccount1
#AZURE_STORAGE_QUEUE_ENDPOINT=https://127.0.0.1:10001/devstoreaccount1
#AZURE_STORAGE_TABLE_ENDPOINT=https://127.0.0.1:10002/devstoreaccount1
#AZURITE_ACCOUNT_KEY=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==

# === TUNNEL_TYPE (Default=NGROK)
# Tunnel type setting indicates which tunnel you'd like to use for Azurite.
#TUNNEL_TYPE=NGROK
#NGROK_AUTHTOKEN="--authtoken"

2 changes: 1 addition & 1 deletion pac/net/tye/debug.sh → pac/debug.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -euo pipefail

export ROOT=../../..;source $ROOT/scripts/base.sh
export ROOT=..;source $ROOT/scripts/base.sh

export ENV=local

Expand Down
2 changes: 1 addition & 1 deletion pac/net/tye/deploy.sh → pac/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -euo pipefail

export ROOT=../../..;source $ROOT/scripts/base.sh
export ROOT=..;source $ROOT/scripts/base.sh

${ROOT}/scripts/k8sctx.sh

Expand Down
2 changes: 1 addition & 1 deletion pac/net/tye/generate.sh → pac/generate.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -euo pipefail

export ROOT=../../..;source $ROOT/scripts/base.sh
export ROOT=..;source $ROOT/scripts/base.sh

source $ROOT/scripts/login.sh

Expand Down
Loading

0 comments on commit b30ff39

Please sign in to comment.