File tree Expand file tree Collapse file tree 11 files changed +96
-11
lines changed Expand file tree Collapse file tree 11 files changed +96
-11
lines changed Original file line number Diff line number Diff line change
1
+ node_modules /
2
+ LICENSE
3
+ .vscode /
4
+ .idea /
5
+ yarn.lock
6
+ package-lock.json
Original file line number Diff line number Diff line change
1
+ FROM node:carbon
2
+
3
+ LABEL maintainer="Orjiewuru Kingdom (kingisaac95)"
4
+ LABEL version="0.1.1"
5
+
6
+ ENV HOME=/app
7
+ WORKDIR $HOME
8
+
9
+ COPY package.json .
10
+ RUN npm install
11
+ COPY . .
12
+
13
+ EXPOSE 8080
14
+
15
+ CMD [ "./start.sh" ]
Original file line number Diff line number Diff line change
1
+ build :
2
+ webpack --mode production
3
+
4
+ build-docker :
5
+ docker build . -t react-webpack-starter
6
+
7
+ run-docker :
8
+ docker run -t -i -p 8080:8080 -v rws:/app react-webpack-starter:latest
Original file line number Diff line number Diff line change @@ -45,9 +45,45 @@ Run Coverage
45
45
npm run report-coverage
46
46
```
47
47
48
+ ## Docker
49
+
50
+ Build the image with the command
51
+
52
+ ``` sh
53
+ docker build . -t react-webpack-starter
54
+ ```
55
+
56
+ This builds the image with the tag ` react-webpack-starter ` . Once this is completed, you can instantiate the container with the image with the command
57
+
58
+ ``` sh
59
+ docker run -t -i -p 8080:8080 -v rws:/app react-webpack-starter:latest
60
+ ```
61
+
62
+ ## Using Makefile
63
+
64
+ Build Docker Image
65
+
66
+ ``` sh
67
+ make build-docker
68
+ ```
69
+
70
+ Run Docker Image
71
+
72
+ ``` sh
73
+ make run-docker
74
+ ```
75
+
76
+ Generate Production Build
77
+
78
+ ``` sh
79
+ make build
80
+ ```
81
+
48
82
## Release History
49
83
50
84
* 0.1.1
85
+ * Dockerize application
86
+ * Add Makefile
51
87
* Update Readme and add badges
52
88
* Setup Travis build and add tests
53
89
* 0.1.0
@@ -70,7 +106,7 @@ Distributed under the MIT license. See ``LICENSE`` for more information.
70
106
2 . Create your feature branch (` git checkout -b feature/fooBar ` )
71
107
3 . Commit your changes (` git commit -am 'Add some fooBar' ` )
72
108
4 . Push to the branch (` git push origin feature/fooBar ` )
73
- 5 . Create a new Pull Request
109
+ 5 . Create a new Pull Request to branch ` feature/develop `
74
110
75
111
## Security Vulnerabilities
76
112
Original file line number Diff line number Diff line change
1
+ #### What does this PR do
2
+
3
+ * Add purpose of PR
4
+
5
+ #### Description of Task to be completed
6
+
7
+ * Add description
8
+
9
+ #### How should this be manually tested
10
+
11
+ * Add testing instructions
12
+
13
+ #### Reviewers
14
+
15
+ * @kingisaac95
Original file line number Diff line number Diff line change 10
10
"report-coverage" : " jest --env=jsdom --coverage --coverageReporters=text-lcov | coveralls"
11
11
},
12
12
"keywords" : [],
13
- "author" : " kingisaac95" ,
13
+ "author" : " Orjiewuru Kingdom ( kingisaac95) " ,
14
14
"license" : " MIT" ,
15
15
"devDependencies" : {
16
16
"babel-core" : " ^6.26.3" ,
Original file line number Diff line number Diff line change 1
- import React from 'react' ;
1
+ import React , { Fragment } from 'react' ;
2
2
import Header from './components/Header' ;
3
3
import Content from './views/Content' ;
4
4
5
5
const App = ( ) => (
6
- < div >
6
+ < Fragment >
7
7
< Header />
8
8
< Content />
9
- </ div >
9
+ </ Fragment >
10
10
) ;
11
11
12
12
export default App ;
Original file line number Diff line number Diff line change 10
10
< body >
11
11
< section id ="root "> </ section >
12
12
</ body >
13
- </ html >
13
+ </ html >
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ import ReactDOM from 'react-dom';
4
4
import App from './app/App' ;
5
5
import './index.scss' ;
6
6
7
- export const Root = ( ) => < App />
7
+ export const Root = ( ) => < App /> ;
8
8
9
9
ReactDOM . render ( < Root /> , document . getElementById ( 'root' ) ) ;
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ body {
13
13
14
14
hr {
15
15
border : 0 ;
16
- border-top : 1px solid $white ;
17
- box-sizing : content-box ;
18
- height : 0 ;
19
- overflow : visible ;
16
+ border-top : 1px solid $white ;
17
+ box-sizing : content-box ;
18
+ height : 0 ;
19
+ overflow : visible ;
20
20
}
21
21
22
22
.bgimg {
You can’t perform that action at this time.
0 commit comments