Giter VIP home page Giter VIP logo

fix-this-okhome's Introduction

Broken Environment

Broken Environment is a test environment where you need to fix the environment so it is run as needed.

Do read all the scripts given to you before executing any (:

Dependencies

  • docker
  • shell (bash)
  • make
  • jq

Goals

  • broken-env:demo docker image is created successfully by using make build
  • broken-env:demo docker image endpoint is accessible from host machine by using make run and curl -s localhost:8228/ from host machine
  • broken-env:demo docker image endpoint is returning a JSON similar to this {"built_at":"date"} where date is the datetime the image is built generated by the pre.sh with predefined format
  • broken-env:demo docker image and running container can be removed by using make cleanup

Scope

You can change basically every files inside this directory except test.sh to help you make sure the goals are accomplished. Make a write up about your solution below will be a plus point (:

Test

For easier testing, you can execute make test to run all commands programatically. make test is only a helper command, not a judge.

Solution

After all the goals are accomplished, before send back to us, you need to compress your solution into zip/tar which consists of these files:

  • Dockerfile
  • Makefile
  • post.sh
  • pre.sh
  • README.md
  • test.sh

Write Up

Append this documentation on how you fix all the script

  • In dockerfile add as base => (FROM golang:1.17.5-alpine3.14 as base )
  • In make file add -p 8228:8228 => (@docker run --name broken-env-demo -d -p 8228:8228 --rm -it broken-env:demo)
  • In post.sh delete /go.mod /main.go => (rm go.mod main.go)
  • In pre.sh delete space built_at = => (built_at=date -u "+%d-%m-%y@%H")

fix-this-okhome's People

Watchers

tux40 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.