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
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:11
WORKDIR /dist
COPY package.json /dist
RUN npm install
COPY . /dist
CMD node server.js
EXPOSE 4000
Binary file added assets/Screenshot_1557.png
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/Screenshot_1558.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions labreports/LAB_02NRA.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Lab Report: UX/UI
___
**Course:** CIS 411, Spring 2021
**Instructor(s):** [Trevor Bunch](https://github.com/trevordbunch)
**Name:** Nason R. Allen
**GitHub Handle:** 02NRA
**Repository:** [https://github.com/02NRA/cis411_lab4_CD](https://github.com/02NRA/cis411_lab4_CD)
**Collaborators:** Aidan Hubley
___

# 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:
> Submission: [https://orca-app-625by.ondigitalocean.app/graphql](https://orca-app-625by.ondigitalocean.app/graphql)
- [x] Embed _using markdown_ a screenshot of your successful deployed application to Digital Ocean.
> Submission: ![Successful Build Deployed](../assets/Screenshot_1558.png)
- [x] Embed _using markdown_ a screenshot of your successful build and deployment to Digital Ocean of your project (with the circleci interface).
> Submission: ![Successful Build CircleCI](../assets/Screenshot_1557.png)
- [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 allows developers to ensure that their app works across operating systems and environments, in case the development team are using multiple different systems internally, or they are deploying to multiple different systems. Yu can read more about this from CircleCI itself here: [https://circleci.com/blog/benefits-of-containerization/?utm_source=google&utm_medium=sem&utm_campaign=sem-google-dg--uscan-en-dsa-tROAS-auth-nb&utm_term=g_-_c__dsa_&utm_content=&gclid=Cj0KCQjwt_qgBhDFARIsABcDjOdIpRmYOD9TY-MFcexBsFdLd9BH7v-utPtle3sbSmB40pOyy15O5ooaAvocEALw_wcB](https://circleci.com/blog/benefits-of-containerization/?utm_source=google&utm_medium=sem&utm_campaign=sem-google-dg--uscan-en-dsa-tROAS-auth-nb&utm_term=g_-_c__dsa_&utm_content=&gclid=Cj0KCQjwt_qgBhDFARIsABcDjOdIpRmYOD9TY-MFcexBsFdLd9BH7v-utPtle3sbSmB40pOyy15O5ooaAvocEALw_wcB).
2. If we have the ability to publish directory to Heroku, why involve a CI solution like CircleCI? What benefit does it provide?
> Circle CI can show us the nonfatal errors that may not show even if the app successfully deploys. CircleCI can also test multiple branches, rather than having to deploy an app to discover its issues. Essentially, it gives us the confidence to have a faster time to market (elaborated on below, and here: [https://codefresh.io/learn/continuous-delivery/what-is-continuous-deployment/#:~:text=Continuous%20deployment%20provides%20numerous%20benefits,customer%20needs%20and%20market%20conditions.](https://codefresh.io/learn/continuous-delivery/what-is-continuous-deployment/#:~:text=Continuous%20deployment%20provides%20numerous%20benefits,customer%20needs%20and%20market%20conditions.))
3. Why would you use a container technology over a virtual machine(VM)?
> Containers are "lighter weight", or consume fewer hardware resources than virtual machines do, so you can both have more of them for the same hardware budget, and destroy and remake them faster in an urgent situation. Pay special attention to the charts in this experiment that demonstrate this concept: [https://www.diva-portal.org/smash/get/diva2:1412070/FULLTEXT01.pdf](https://www.diva-portal.org/smash/get/diva2:1412070/FULLTEXT01.pdf)
4. What are some alternatives to Docker for containerized deployments?
> Many companies offer this service because it is so necessary in a modern software market. Notably, IBM ([https://www.ibm.com/topics/containerization](https://www.ibm.com/topics/containerization)) and Amazon ([https://www.google.com/aclk?sa=l&ai=DChcSEwjEg4Lbvfj9AhU0HGUKHc4ODdIYABADGgJ5bQ&sig=AOD64_2nfhMiLRDjci5_RqQLWcntqbpmkg&q&adurl&ved=2ahUKEwib7fnavfj9AhX7EFkFHSubBdcQ0Qx6BAgJEAM](https://www.google.com/aclk?sa=l&ai=DChcSEwjEg4Lbvfj9AhU0HGUKHc4ODdIYABADGgJ5bQ&sig=AOD64_2nfhMiLRDjci5_RqQLWcntqbpmkg&q&adurl&ved=2ahUKEwib7fnavfj9AhX7EFkFHSubBdcQ0Qx6BAgJEAM)) have their own.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
},
"homepage": "https://github.com/trevordbunch/cis411_lab4_CD#readme",
"dependencies": {
"express": "^4.16.3",
"express": "^4.18.2",
"express-graphql": "^0.6.12",
"graphql": "^14.0.2",
"graphql": "^0.13.0 || ^14.0.2",
"lokijs": "^1.5.5",
"uuid": "^3.3.2"
},
Expand Down