Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tuyojr/kubernetes-on-aws
Exercise for continuous deployment (ALX-T Udacity Cloud Developer Nanodegree Program)
https://github.com/tuyojr/kubernetes-on-aws
Last synced: 3 days ago
JSON representation
Exercise for continuous deployment (ALX-T Udacity Cloud Developer Nanodegree Program)
- Host: GitHub
- URL: https://github.com/tuyojr/kubernetes-on-aws
- Owner: tuyojr
- License: other
- Created: 2022-06-25T09:00:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T15:55:49.000Z (5 months ago)
- Last Synced: 2024-07-27T17:24:10.846Z (5 months ago)
- Language: Dockerfile
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[![Publish a docker image](https://github.com/tuyojr/kubernetes-on-aws/actions/workflows/build_and_release.yml/badge.svg?branch=main)](https://github.com/tuyojr/kubernetes-on-aws/actions/workflows/build_and_release.yml)
# OverviewThis is a very simple, bare-bones NodeJS project created for you to use with Docker.
## Local Setup
**_Note_**: This is only needed if you want to run the app locally. You don't need to install the dependencies or run the server if you are running the code inside a Docker container.
- Install dependencies: `npm install`
- Run server: `node server.js`## Container Setup
- Build image: `docker build .`
- Run container with image: `docker run {image_id}` where `image_id` can be retrieved by running `docker images` and found under the column `IMAGE ID`
- You can use the `-d` flag to run the container in the background. This will enable you to run other commands in your terminal while the container is running.## Container Teardown
- Remove container: `docker kill {container_id}` where `container_id` can be retrieved by running `docker ps` and found under the column `CONTAINER ID`