Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/deploy-ec2-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--cache-from type=gha,scope=web \
--cache-to type=gha,mode=max,scope=web \
-t $IMAGE_URI:$IMAGE_TAG \
-t $IMAGE_URI:latest \
-f ./TEKDB/Dockerfile ./TEKDB \
Expand All @@ -51,6 +53,8 @@ jobs:
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--cache-from type=gha,scope=proxy \
--cache-to type=gha,mode=max,scope=proxy \
-t $IMAGE_URI:$IMAGE_TAG \
-t $IMAGE_URI:latest \
-f ./proxy/Dockerfile ./proxy \
Expand Down
4 changes: 4 additions & 0 deletions docker/docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ services:
extends:
file: common.yaml
service: celery
env_file:
- .env.prod
celery-beat:
extends:
file: common.yaml
service: celery-beat
env_file:
- .env.prod

volumes:
tekdb_db_data:
Expand Down
9 changes: 8 additions & 1 deletion infra/user_data.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,24 @@ sudo usermod -aG docker ubuntu
echo "Installing git..."
sudo apt install git -y

echo "Making tekdb directory..."
mkdir tekdb

echo "Changing to tekdb directory..."
cd tekdb

# clone the TEKDB repo
echo "Cloning TEKDB repository..."
git clone https://github.com/Ecotrust/TEKDB.git

echo "Changing to TEKDB repository..."
cd TEKDB/

# TODO: remove once the branch is merged to main
echo "Checking out develop branch..."
git checkout develop

# pull the latest changes from the remote repository
echo "Pulling latest changes from develop branch..."
git pull origin develop

# copy environment variables into the docker directory
Expand Down
Loading