Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
officialmofabs authored Apr 8, 2024
1 parent e1f0a0f commit 30fce49
Show file tree
Hide file tree
Showing 25 changed files with 3,421 additions and 16 deletions.
1 change: 1 addition & 0 deletions HEAD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ref: refs/heads/master
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
# container-development-environment
# container-development-environment

This repo contains the source code for the webinar with the elects @ecampuslearning:

**🐳 Simplified way to setting & using Docker for local development environment**

- `git clone https://github.com/ecampuslearning/container-development-environment `
- `docker-compose up`

Details about each service and how to run them is present in the induvidual services directories.

Hope this helps someone 🎉🌮
5 changes: 5 additions & 0 deletions config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[core]
repositoryformatversion = 0
filemode = false
bare = true
ignorecase = true
8 changes: 5 additions & 3 deletions container-development-environment/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# container-development-environment
# dockerdev-environment



This repo contains the source code for the webinar with the elects @ecampuslearning:

**🐳 Simplified way to setting & using Docker for local development environment**

- `git clone https://github.com/ecampuslearning/container-development-environment `
- `git clone https://github.com/ecampuslearning/dockerdev-environment
`
- `docker-compose up`

Details about each service and how to run them is present in the induvidual services directories.
Expand Down
10 changes: 5 additions & 5 deletions container-development-environment/config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[core]
repositoryformatversion = 0
filemode = false
bare = true
ignorecase = true
[core]
repositoryformatversion = 0
filemode = false
bare = true
ignorecase = true
13 changes: 13 additions & 0 deletions container-development-environment/go1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Sample Go service

This is a super simple example go lang based service.

To run for development:

`PORT=5000 go run .`

or

`go build`

`PORT=5000 ./go1`
19 changes: 19 additions & 0 deletions container-development-environment/go1/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package main

import (
"fmt"
"log"
"net/http"
"os"
)

func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hi there from go1 ")
}

func main() {
http.HandleFunc("/", handler)
var port = os.Getenv("PORT")
log.Printf("Running go lang server on port: %s", port)
log.Fatal(http.ListenAndServe(":"+port, nil))
}
6 changes: 6 additions & 0 deletions container-development-environment/info/exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
4 changes: 4 additions & 0 deletions container-development-environment/njs1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM node:6.17.0

# WORKDIR /root
# ADD . /root
7 changes: 7 additions & 0 deletions container-development-environment/njs1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Sample NodeJS1 service

This is a super simple example NodeJS based service.

To run for development:

`PORT=7000 npm start`
7 changes: 7 additions & 0 deletions container-development-environment/njs1/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const express = require("express");
const app = express();
const port = process.env.PORT;

app.get("/", (req, res) => res.send("Hello from NJS1"));

app.listen(port, () => console.log(`NJS1 app listening on port ${port}!`));
Loading

0 comments on commit 30fce49

Please sign in to comment.