Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danburonline/sae-cloud-lectures
https://github.com/danburonline/sae-cloud-lectures
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/danburonline/sae-cloud-lectures
- Owner: danburonline
- Created: 2023-12-20T19:14:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-03T09:18:35.000Z (9 months ago)
- Last Synced: 2024-04-03T10:31:04.091Z (9 months ago)
- Language: TypeScript
- Size: 549 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SAE Cloud Lectures
This repository contains an example backend application for the SAE Cloud Lectures. It demonstrates the use of Docker, Docker Compose, AWS S3, and Terraform in conjunction with Localstack.
## How to run the Dockerfiles
### Build the Docker images
```bash
docker build -t sae-cloud-lectures-backend:latest .
```### Run the Docker containers
```bash
docker run -p 3000:3000 --name running-container sae-cloud-lectures-backend:latest
```### Stop the Docker containers
```bash
docker stop running-container
```## Push the Docker image to Docker Hub
### Login to Docker Hub
```bash
docker login
```### Tag the Docker image
```bash
docker tag sae-cloud-lectures-backend:latest /sae-cloud-lectures-backend:latest
```### Push the Docker image
```bash
docker push /sae-cloud-lectures-backend:latest
```### Remove the Docker containers
```bash
docker rm running-container
```### Remove the Docker images
```bash
docker rmi sae-cloud-lectures-backend:latest
```## Warning for Mac users
If you are using Docker on a Mac, you need to use the following flag and append it to the `docker build` command:
```bash
--platform linux/amd64
```> More on this in the lecture
## How to run the Docker Compose file
### Build the Docker compose images
```bash
docker compose build
```### Run the Docker compose containers
```bash
docker compose up -d
```### Stop the Docker compose containers
```bash
docker compose down
```