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
fcb27f9f
Commit
fcb27f9f
authored
Jun 03, 2015
by
Richard Torenvliet
Committed by
Richard Torenvliet
Jun 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to docker
parent
35a4d22f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
82 additions
and
3 deletions
+82
-3
Dockerfile
Dockerfile
+18
-0
Gruntfile.js
Gruntfile.js
+2
-1
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 @
fcb27f9f
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 @
fcb27f9f
...
...
@@ -30,7 +30,7 @@ module.exports = function ( grunt ) {
'
dev
'
:
{
// the server root directory
root
:
'
build/
'
,
root
:
'
/app/
build/
'
,
// the server port
// can also be written as a function, e.g.
...
...
@@ -54,6 +54,7 @@ module.exports = function ( grunt ) {
}
};
/**
* This is the configuration object Grunt uses to give each plugin its
* instructions.
...
...
bower.json
View file @
fcb27f9f
{
"name"
:
"Interactive"
,
"version"
:
"0.
3.2
"
,
"version"
:
"0.
0.1
"
,
"devDependencies"
:
{
"angular"
:
"~1.2"
,
"angular-mocks"
:
"~1.2"
,
...
...
@@ -11,3 +11,4 @@
},
"dependencies"
:
{}
}
etc/bootstrap.sh
0 → 100755
View file @
fcb27f9f
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 @
fcb27f9f
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 @
fcb27f9f
[
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 @
fcb27f9f
build
:
docker build
-t
pixi-game .
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