Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mcotton-v1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mCotton
mcotton-v1
Commits
71c99cc8
Commit
71c99cc8
authored
Dec 08, 2016
by
Hao Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change dockerfile
parent
74bf9627
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
19 deletions
+35
-19
mcotton_v1_node_modules.xml
.idea/libraries/mcotton_v1_node_modules.xml
+0
-15
meteor_packages_auto_import_browser.xml
.idea/libraries/meteor_packages_auto_import_browser.xml
+0
-0
mcotton-v1.iml
.idea/mcotton-v1.iml
+3
-0
workspace.xml
.idea/workspace.xml
+0
-0
Dockerfile
Dockerfile
+20
-1
README.md
README.md
+12
-3
No files found.
.idea/libraries/mcotton_v1_node_modules.xml
deleted
100644 → 0
View file @
74bf9627
<component
name=
"libraryTable"
>
<library
name=
"mcotton-v1 node_modules"
type=
"javaScript"
>
<properties>
<option
name=
"frameworkName"
value=
"node_modules"
/>
<sourceFilesUrls>
<item
url=
"file://$PROJECT_DIR$/node_modules"
/>
</sourceFilesUrls>
</properties>
<CLASSES>
<root
url=
"file://$PROJECT_DIR$/node_modules"
/>
</CLASSES>
<SOURCES
/>
</library>
</component>
\ No newline at end of file
.idea/libraries/meteor_packages_auto_import_browser.xml
View file @
71c99cc8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
.idea/mcotton-v1.iml
View file @
71c99cc8
...
@@ -6,5 +6,7 @@
...
@@ -6,5 +6,7 @@
</content>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"meteor-packages-auto-import-browser"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"meteor-packages-auto-import-npm"
level=
"project"
/>
</component>
</component>
</module>
</module>
\ No newline at end of file
.idea/workspace.xml
View file @
71c99cc8
This diff is collapsed.
Click to expand it.
Dockerfile
View file @
71c99cc8
FROM
cuckoohello/meteord:onbuild
FROM
nginx
RUN
sed
-i
's/httpredir.debian.org/mirrors.ustc.edu.cn/g'
/etc/apt/sources.list
&&
apt-get update
&&
\
apt-get install
-y
--no-install-recommends
wget xz-utils g++
&&
apt-get clean
RUN
apt-get install
-y
--no-install-recommends
ca-certificates unzip make bzip2 curl git python2.7 graphicsmagick
&&
\
apt-get clean
&&
ln
-s
/usr/bin/python2.7 /usr/bin/python
RUN
echo
"Asia/Shanghai"
>
/etc/timezone
&&
dpkg-reconfigure
-f
noninteractive tzdata
&&
\
apt-get install
-y
--no-install-recommends
locales
&&
echo
'en_US.UTF-8 UTF-8'
>>
/etc/locale.gen
&&
locale-gen
&&
update-locale
LANG
=
en_US.UTF-8
&&
\
apt-get clean
ENV
LC_ALL en_US.UTF-8
RUN
curl
-sL
https://install.meteor.com | /bin/sh
RUN
cd
/data
&&
git clone https://git.microduino.cn/mCotton/mcotton-v1
&&
cd
mcotton-v1
RUN
meteor update
--allow-superuser
--all-packages
&&
meteor npm install
&&
meteor npm install
--save
bcrypt
&&
meteor reset
--allow-superuser
RUN
MONGO_URL
=
mongodb://mongodb/mcotton_v1
mqttDbUrl
=
mongodb://mongodb/mqtt meteor
--allow-superuser
--release
1.4.2.3
\ No newline at end of file
README.md
View file @
71c99cc8
...
@@ -90,7 +90,6 @@ mCotton 是 server , httpclient*.js 是访问他的Node.js客户端
...
@@ -90,7 +90,6 @@ mCotton 是 server , httpclient*.js 是访问他的Node.js客户端
![
docs/mcotton_01.png
](
docs/mcotton_01.png
)
![
docs/mcotton_01.png
](
docs/mcotton_01.png
)
**
On meteor 1.4, Account admin has bug and can't used.
If you want to set your admin, you can change the file : /app/server/fixtures.js
If you want to set your admin, you can change the file : /app/server/fixtures.js
# Projects
# Projects
...
@@ -105,4 +104,14 @@ If you want to set your admin, you can change the file : /app/server/fixtures.js
...
@@ -105,4 +104,14 @@ If you want to set your admin, you can change the file : /app/server/fixtures.js
## Smart Vulture Egg
## Smart Vulture Egg
详情参见
[
egg.md
](
docs/egg.md
)
详情参见
[
egg.md
](
docs/egg.md
)
\ No newline at end of file
# Docker build
docker build -t mcotton_v1 .
# Docker run
docker run -d -p 27017:27017 --name mymongo -v $(cd ~ && pwd)/data/mongo:/data mongo
docker run -d -p 3000:3000 -p 1883:1883 --link mymongo:mongodb --name mcotton_v1 -v $(cd ~ && pwd)/data/mcotton_v1:/data -w /data mcotton_v1
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment