Skip to content
Open
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
45 changes: 45 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:11
steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: yarn test
deploy:
docker:
- image: buildpack-deps:trusty
steps:
- checkout
- run:
name: Deploy Main to Heroku
command: |
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main

workflows:
version: 2
build-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: main
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Here are the Detailed instructions for executing this lab using:
- [Heroku](LAB_INSTRUCTIONS_Heroku.md)
- [Digital Ocean](LAB_INSTRUCTIONS_DigitalOcean.md)

You are expected to compile your findings into a lab report following this [template](labreports/LAB_TEMPLATE.md).
You are expected to compile your findings into a lab report following this [template](labreports/LAB_Template.md).

You are welcome to complete this lab using any Cloud Provider (AWS, Google Cloud, Azure, etc.). If you choose this path - then I encourage you to consider the extra credit opportunity below.

Expand Down
Binary file added assets/deploy.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/successful_heroku.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions labreports/LAB_LAHardman.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Lab Report: UX/UI
___
**Course:** CIS 411, Spring 2021
**Instructor(s):** [Trevor Bunch](https://github.com/trevordbunch)
**Name:** Luke Hardman
**GitHub Handle:** LAHardman
**Repository:** [Forked Repository](https://github.com/LAHardman/cis411_lab4_CD/tree/heroku)
**Collaborators:**
___

# Required Content

- [X] Generate a markdown file in the labreports directory named LAB_[GITHUB HANDLE].md. Write your lab report there.
- [X] Create the directory ```./circleci``` and the file ```.circleci/config.yml``` in your project and push that change to your GitHub repository.
- [X] Create the file ```Dockerfile``` in the root of your project and include the contents of the file as described in the instructions. Push that change to your GitHub repository.
- [X] Write the URL of your app hosted on Heroku or other Cloud Provider here:
> Example: [http://lahardman.herokuapp.com/graphql](http://lahardman.herokuapp.com/graphql)
- [X] Embed _using markdown_ a screenshot of your successful deployed application to Heroku.
> Example: ![Successful Build](../assets/deploy.JPG)
- [X] Embed _using markdown_ a screenshot of your successful build and deployment to Heroku of your project (with the circleci interface).
> ![Successful Build](../assets/successful_heroku.JPG)
- [X] Answer the **4** questions below.
- [X] Submit a Pull Request to cis411_lab4_CD and provide the URL of that Pull Request in Canvas as your URL submission.

## Questions
1. Why would a containerized version of an application be beneficial if you can run the application locally already?
> Containerization provides portability, consistency, scalability, and security, ensuring the application runs consistently across different environments regardless of the underlying operating system.

2. If we have the ability to publish directory to a cloud service provider like Heroku, why involve a CI solution like CircleCI? What benefit does it provide?
> CircleCI automates the build, test, and deployment process, ensuring your application is always up-to-date and running smoothly. It also helps identify potential issues in the code before deployment, minimizing the risk of downtime or unexpected behavior.

3. Why would you use a container technology over a virtual machine(VM)?
> Containers are more resource-efficient, portable, and scalable than VMs. They share the host's operating system kernel, making them lighter and faster to deploy. This allows you to run multiple containers on a single machine, saving resources and simplifying application deployment and management.

4. What are some alternatives to Docker for containerized deployments?
> Alternatives to Docker include Kubernetes, LXC/LXD, Podman, Singularity, and Containerd. Each platform has unique features and benefits, so consider your specific requirements when selecting a containerization solution.