Giter VIP home page Giter VIP logo

mckl-workshop-students's Introduction

mckl-workshop

This repo is for the MCKL workshop using git and docker.

mckl-workshop

This repo is for the MCKL workshop using git and docker.

Round 1 SETUP

Everyone in the team

  1. Pull this repo and checkout your team's branch
git checkout <branch_name>

TO VIEW WHAT BRANCH YOU'RE AT
git branch

Someone in the team

  1. Copy the files from the chosen programming language into your team's folder
  2. Change directory into your team folder
  3. Add the files into the git branch
  4. Commit and push the changes to your team's branch

Everyone in the team

  1. Pull the changes made by the appointed teammate.
  2. In your team's directory test docker build and run.
docker build .

TO VIEW IMAGES BUILT
docker image ls 

TO RUN DOCKER IMAGE
docker run <container id>
  1. From your team's branch checkout to another new branch so that when you're working on your own task it will not affect your teammates
git checkout -b <new_branch_name>

Round 2

Application

  1. Update application code to take in some user input which is a number and print the input out. Program ends/exit once the output is printed. (input will only be a single string with no spaces)

Startup Script

  1. Modify entrypoint.sh script to run your group application (Just on your local computer will do). Note down what steps you took to run the script on your local computer. i.e. When you run the script "entrypoint.sh" it will run "app.py" on your computer. Note : If your teams chosen programming language requires compilation of codes. Entrypoint.sh script should include the command to compile and run.

Dockerfile

  1. Ensure that When the container builds ensure that entrypoint.sh will be in the same directory as your team's application code. (proof / verify that it works)
  2. When commands below are run, hello world and the bash echo will both be displayed (which runs first does not matter)
docker build .
docker run <container id>

Final Round

As a team

  1. Using git, combine all your work together into a single branch. (your team's branch will do)
  1. Combine your work in Round 2 so when the instructor/another team does a
dockerbuild . 
docker run <container id>

It will run as expected.

Reminder : This is NOT a programming workshop. Use whatever way to complete the challenges as long it works.

Basic Helpful commands

UBUNTU / LINUX

SHOW CURRENT DIRECTORY 
pwd

LIST FILES IN CURRENT DIRECTORY 
ls

CHANGE DIRECTORY 
cd <diretory name>

CHANGE DIRECTORY (BACK / UP ONE LEVEL)
cd ..


GIT 

TO VIEW WHAT BRANCH YOU'RE AT
git branch

CHANGE TO ANOTHER BRANCH
git checkout <branch name>

SAVE ALL YOUR CHANGES 
git commit -am "enter your message here"

PUSH YOUR CHANGES TO GITHUB
git push


DOCKER 

LIST CONTAINERS BUILT
docker image ls

DOCKER BUILD (requires Dockerfile to be present)
docker build .

RUN CONTAINER BUILT
docker run <container id>

mckl-workshop-students's People

Contributors

jxsonl2 avatar

Stargazers

RythonDev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.