Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
ericiortega committed Nov 22, 2024
1 parent f8209b6 commit 479d5d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
22 changes: 9 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,26 @@ DOCKER_ID_USER = ericiortega

# Build the Docker image
build:
@docker build -t $(IMAGE_NAME) .
docker build -t $(IMAGE_NAME) .

# Run the Docker container
run:
@docker run -p 8000:80 $(IMAGE_NAME)
docker run -p 5000:5000 $(IMAGE_NAME)

# Remove the Docker image
clean:
@docker rmi $(IMAGE_NAME)
docker rmi $(IMAGE_NAME)

# Show Docker images
image_show:
@docker images
docker images

# Show running Docker containers
container_show:
@docker ps
docker ps

# Push the Docker image to Docker Hub
push:
@docker login
@docker tag $(IMAGE_NAME) $(DOCKER_ID_USER)/$(IMAGE_NAME)
@docker push $(DOCKER_ID_USER)/$(IMAGE_NAME):latest
docker login
docker tag $(IMAGE_NAME) $(DOCKER_ID_USER)/$(IMAGE_NAME)
docker push $(DOCKER_ID_USER)/$(IMAGE_NAME):latest

# Login to Docker Hub
login:
@docker login -u ${DOCKER_ID_USER}
docker login -u ${DOCKER_ID_USER}
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
[![CI](https://github.com/nogibjj/Eric_Ortega_Rodriguez_Mini_Project_6/actions/workflows/cicd.yml/badge.svg)](https://github.com/nogibjj/Eric_Ortega_Rodriguez_Mini_Project_6/actions/workflows/cicd.yml)
# Eric Ortega Rodriguez Mini Project 6

# Complex SQL Query for MySQL Database - Using Avengers Data Set

<p align="center">
<img src="image-5.png" alt="Avengers Data Set">
</p>

## Overview
This project implements a complex SQL query involving **joins**, **aggregation**, and **sorting** using an external database. The external database used in this project is [Databricks](https://databricks.com/), and the query fetches data from two related tables (`Avengers` and `Battles`) to calculate the total number of appearances and battles per Avenger. The I used can be found [here.](https://github.com/fivethirtyeight/data/tree/refs/heads/master/avengers)

0 comments on commit 479d5d6

Please sign in to comment.