Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Angular-Pixijs-Game
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
Angular-Pixijs-Game
Commits
41799888
Commit
41799888
authored
Jun 03, 2015
by
Richard Torenvliet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to docker
parent
e8846a08
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
84 additions
and
4 deletions
+84
-4
Dockerfile
Dockerfile
+18
-0
Gruntfile.js
Gruntfile.js
+4
-2
bower.json
bower.json
+2
-1
etc/bootstrap.sh
etc/bootstrap.sh
+4
-0
etc/nginx/dev.conf
etc/nginx/dev.conf
+38
-0
etc/supervisord/dev.conf
etc/supervisord/dev.conf
+10
-0
makefile
makefile
+8
-1
No files found.
Dockerfile
0 → 100644
View file @
41799888
FROM
node:latest
RUN
\
apt-get update
&&
\
apt-get
install
-y
ruby ruby-dev supervisor nginx
&&
\
rm
-rf
/var/lib/apt/lists/
*
RUN
npm update
-g
npm
RUN
npm
-g
install
grunt-cli karma bower
WORKDIR
/app
ADD
. /app
VOLUME
./src:/app/src/
RUN
npm
install
RUN
bower
install
--config
.interactive
=
false
--allow-root
CMD
etc/bootstrap.sh
Gruntfile.js
View file @
41799888
...
@@ -30,7 +30,7 @@ module.exports = function ( grunt ) {
...
@@ -30,7 +30,7 @@ module.exports = function ( grunt ) {
'
dev
'
:
{
'
dev
'
:
{
// the server root directory
// the server root directory
root
:
'
build/
'
,
root
:
'
/app/
build/
'
,
// the server port
// the server port
// can also be written as a function, e.g.
// can also be written as a function, e.g.
...
@@ -41,7 +41,8 @@ module.exports = function ( grunt ) {
...
@@ -41,7 +41,8 @@ module.exports = function ( grunt ) {
// If specified to, for example, "127.0.0.1" the server will
// If specified to, for example, "127.0.0.1" the server will
// only be available on that ip.
// only be available on that ip.
// Specify "0.0.0.0" to be available everywhere
// Specify "0.0.0.0" to be available everywhere
host
:
"
127.0.0.1
"
,
//host: "127.0.0.1",
host
:
"
0.0.0.0
"
,
showDir
:
true
,
showDir
:
true
,
autoIndex
:
true
,
autoIndex
:
true
,
...
@@ -54,6 +55,7 @@ module.exports = function ( grunt ) {
...
@@ -54,6 +55,7 @@ module.exports = function ( grunt ) {
}
}
};
};
/**
/**
* This is the configuration object Grunt uses to give each plugin its
* This is the configuration object Grunt uses to give each plugin its
* instructions.
* instructions.
...
...
bower.json
View file @
41799888
{
{
"name"
:
"Interactive"
,
"name"
:
"Interactive"
,
"version"
:
"0.
3.2
"
,
"version"
:
"0.
0.1
"
,
"devDependencies"
:
{
"devDependencies"
:
{
"angular"
:
"~1.2"
,
"angular"
:
"~1.2"
,
"angular-mocks"
:
"~1.2"
,
"angular-mocks"
:
"~1.2"
,
...
@@ -11,3 +11,4 @@
...
@@ -11,3 +11,4 @@
},
},
"dependencies"
:
{}
"dependencies"
:
{}
}
}
etc/bootstrap.sh
0 → 100755
View file @
41799888
SUPERVISORD_CONFIG
=
/app/etc/supervisord/dev.conf
cp
/app/etc/nginx/dev.conf /etc/nginx/nginx.conf
exec
/usr/bin/supervisord
-n
-c
${
SUPERVISORD_CONFIG
}
etc/nginx/dev.conf
0 → 100644
View file @
41799888
worker_processes
4
;
user
root
;
pid
/
tmp
/
nginx
.
pid
;
daemon
off
;
error_log
/
tmp
/
nginx
.
error
.
log
;
events
{
worker_connections
1024
;
accept_mutex
off
;
}
http
{
charset
utf
-
8
;
client_max_body_size
500
M
;
sendfile
on
;
tcp_nopush
on
;
tcp_nodelay
on
;
keepalive_timeout
60
;
types_hash_max_size
2048
;
include
/
etc
/
nginx
/
mime
.
types
;
default_type
application
/
octet
-
stream
;
access_log
/
dev
/
stdout
;
gzip
on
;
gzip_static
on
;
server
{
listen
80
default
;
root
/
app
/
build
/;
try_files
$
uri
$
uri
/
index
.
html
=
404
;
}
}
etc/supervisord/dev.conf
0 → 100644
View file @
41799888
[
supervisord
]
nodaemon
=
true
[
program
:
nginx
]
autostart
=
true
autorestart
=
true
redirect_stderr
=
true
stdout_logfile
=/
dev
/
stdout
stdout_logfile_maxbytes
=
0
command
=/
usr
/
sbin
/
nginx
makefile
View file @
41799888
build
:
docker build
-t
pixi-game .
run
:
run
:
grunt http-server:dev
docker run
--rm
-ti
-p
8282:80 pixi-game
# inside docker
install
:
./etc/bootstrap.sh
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