In project 2, I created a command line tool to help us pull the data of top 100 global brands with branditory - 2022. The data is downloaded from Kaggle https://www.kaggle.com/datasets/gauravarora1091/top-100-global-brands-by-brandirectory2022
* : I developed three commands that allow users to access to each brand information, sort by the brand information, and use a neat print table to present the information, and these commands can be used viadocker run -it b20ff7e1f60f /bin/bash sort.sh brandirectory-ranking-global-2022.csv
docker run -it b20ff7e1f60f /bin/bash read_n.sh brandirectory-ranking-global-2022.csv
docker run -it b20ff7e1f60f /bin/bash neat.sh brandirectory-ranking-global-2022.csv
to pull the data from the repository.
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 766481746749.dkr.ecr.us-east-1.amazonaws.com
docker tag 766481746749.dkr.ecr.us-east-1.amazonaws.com/zw277/project2 766481746749.dkr.ecr.us-east-1.amazonaws.com/p2zw277:latest
docker push 766481746749.dkr.ecr.us-east-1.amazonaws.com/p2zw277:latest
Now we can use our command line tool in the Cloud9:
docker login -u zw277 -p $DOCKER_HUB
docker run -it 766481746749.dkr.ecr.us-east-1.amazonaws.com/p2zw277:latest /bin/bash read_n.sh brandirectory-ranking-global-2022.csv
docker run -it 766481746749.dkr.ecr.us-east-1.amazonaws.com/p2zw277:latest /bin/bash sort.sh brandirectory-ranking-global-2022.csv
docker run -it 766481746749.dkr.ecr.us-east-1.amazonaws.com/p2zw277:latest /bin/bash neat.sh brandirectory-ranking-global-2022.csv