1. 먼저 Docker 에 가입을 하자.
![]() |
| ID와 이메일과 패스워드를 입력 후 Sign up을 클릭한다. |
![]() |
| ID와 이메일과 패스워드를 입력 후 Sign up을 클릭한다. |
[binrang@binrang-db ~]$ sudo yum install epel-release
[sudo] password for binrang:
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
mariadb | 2.9 kB 00:00:00
updates | 3.4 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirror.oasis.onnetcorp.com
* extras: mirror.oasis.onnetcorp.com
* updates: mirror.oasis.onnetcorp.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================
Package Arch Version Repository Size
============================================================================================================================
Installing:
epel-release noarch 7-6 extras 14 k
Transaction Summary
============================================================================================================================
Install 1 Package
Total download size: 14 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-6.noarch.rpm | 14 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-6.noarch 1/1
Verifying : epel-release-7-6.noarch 1/1
Installed:
epel-release.noarch 0:7-6
Complete!
[binrang@binrang-db ~]$
|
[root@binrang-db yum.repos.d]# pwd
/etc/yum.repos.d
[root@binrang-db yum.repos.d]# vi MariaDB.repo
# MariaDB 10.0 CentOS repository list - created 2016-11-03 04:33 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
|
[root@binrang-db ~]# yum list mariadb
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.oasis.onnetcorp.com
* extras: mirror.oasis.onnetcorp.com
* updates: mirror.oasis.onnetcorp.com
Installed Packages
mariadb.x86_64 1:5.5.50-1.el7_2 @updates
[root@binrang-db ~]#
|
[root@localhost ~]# yum install mariadb
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.oasis.onnetcorp.com
* extras: mirror.oasis.onnetcorp.com
* updates: mirror.oasis.onnetcorp.com
Resolving Dependencies
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.41-2.el7_0 will be updated
--> Processing Dependency: mariadb(x86-64) = 1:5.5.41-2.el7_0 for package: 1:mariadb-server-5.5.41-2.el7_0.x86_64
......
============================================================================================================================
Package Arch Version Repository Size
============================================================================================================================
Updating:
mariadb x86_64 1:5.5.50-1.el7_2 updates 8.9 M
Updating for dependencies:
mariadb-libs x86_64 1:5.5.50-1.el7_2 updates 755 k
mariadb-server x86_64 1:5.5.50-1.el7_2 updates 11 M
Transaction Summary
============================================================================================================================
Upgrade 1 Package (+2 Dependent packages)
Total size: 20 M
Is this ok [y/d/N]:
......
Transaction test succeeded
Running transaction
Updating : 1:mariadb-libs-5.5.50-1.el7_2.x86_64 1/6
Updating : 1:mariadb-5.5.50-1.el7_2.x86_64 2/6
Updating : 1:mariadb-server-5.5.50-1.el7_2.x86_64 3/6
Cleanup : 1:mariadb-server-5.5.41-2.el7_0.x86_64 4/6
Cleanup : 1:mariadb-5.5.41-2.el7_0.x86_64 5/6
Cleanup : 1:mariadb-libs-5.5.41-2.el7_0.x86_64 6/6
Verifying : 1:mariadb-server-5.5.50-1.el7_2.x86_64 1/6
Verifying : 1:mariadb-libs-5.5.50-1.el7_2.x86_64 2/6
Verifying : 1:mariadb-5.5.50-1.el7_2.x86_64 3/6
Verifying : 1:mariadb-5.5.41-2.el7_0.x86_64 4/6
Verifying : 1:mariadb-server-5.5.41-2.el7_0.x86_64 5/6
Verifying : 1:mariadb-libs-5.5.41-2.el7_0.x86_64 6/6
Updated:
mariadb.x86_64 1:5.5.50-1.el7_2
Dependency Updated:
mariadb-libs.x86_64 1:5.5.50-1.el7_2 mariadb-server.x86_64 1:5.5.50-1.el7_2
Complete!
[root@localhost ~]#
|
[binrang@binrang ~]$ mkdir haproject
[binrang@binrang ~]$ cd haproject/
[binrang@binrang haproject]$ pwd
/home/binrang/haproject
[binrang@binrang haproject]$
|
[binrang@binrang examples]$ pwd
/home/binrang/br-electrode-component/br-elec-component/demo/examples
[binrang@binrang examples]$ vi render-friend.example
<RenderFriend
friend={
{name: "John", img: "//goo.gl/dL5MXT"}
} />
|
[binrang@binrang ~]$ mkdir br-electrode-component
[binrang@binrang ~]$ cd br-electrode-component/
[binrang@binrang br-electrode-component]$
|
[binrang@binrang 13-server-rendering]$ pwd
/home/binrang/react/react-router-tutorial/lessons/13-server-rendering
[binrang@binrang 13-server-rendering]$ vi webpack.server.config.js
var fs = require('fs')
var path = require('path')
module.exports = {
entry: path.resolve(__dirname, 'server.js'),
output: {
filename: 'server.bundle.js'
},
target: 'node',
// keep node_module paths out of the bundle
externals: fs.readdirSync(path.resolve(__dirname, 'node_modules')).concat([
'react-dom/server', 'react/addons',
]).reduce(function (ext, mod) {
ext[mod] = 'commonjs ' + mod
return ext
}, {}),
node: {
__filename: true,
__dirname: true
},
module: {
loaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader?presets[]=es2015&presets[]=react' }
]
}
}
|