Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
anis-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
anis
anis-client
Commits
09677087
Commit
09677087
authored
5 years ago
by
Tifenn Guillas
Browse files
Options
Downloads
Patches
Plain Diff
Add commands => DONE
parent
717fc9da
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!81
3.1
,
!76
Add commands => DONE
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+18
-13
18 additions, 13 deletions
Makefile
with
18 additions
and
13 deletions
Makefile
+
18
−
13
View file @
09677087
UID
:=
$(
id
-u
)
GID
:=
$(
id
-g
)
NAME_APP
=
anis-client
# UID := 1000
# GID := 1000
...
...
@@ -9,13 +10,14 @@ list:
@
echo
"Useful targets:"
@
echo
""
@
echo
" install > install node modules dependancies (node_modules)"
@
echo
" start > run a dev server for anis client application (in memory)"
@
echo
" stop > stop the dev server for anis client application"
@
echo
" restart > restart the dev server for anis client (container)"
@
echo
" test > run anis client tests"
@
echo
" ng-build > generate the angular dist application (html, css, js)"
@
echo
" logs > display anis client container logs"
@
echo
" shell > shell into anis client container"
@
echo
" start > run a dev server for
$(
NAME_APP
)
application (in memory)"
@
echo
" stop > stop the dev server for
$(
NAME_APP
)
application"
@
echo
" restart > restart the dev server for
$(
NAME_APP
)
(container)"
@
echo
" status > display
$(
NAME_APP
)
container status"
@
echo
" test > run
$(
NAME_APP
)
tests"
@
echo
" dist > generate the angular dist application (html, css, js)"
@
echo
" logs > display
$(
NAME_APP
)
container logs"
@
echo
" shell > shell into
$(
NAME_APP
)
container"
@
echo
""
install
:
...
...
@@ -25,7 +27,7 @@ install:
start
:
@
docker build
-t
anis-node conf-dev
&&
docker run
--init
-it
--rm
--user
$(
UID
)
:
$(
GID
)
\
--name
anis-client
\
--name
$(
NAME_APP
)
\
-p
4200:4200
\
-p
9876:9876
\
-v
$(
CURDIR
)
:/project
-d
\
...
...
@@ -34,20 +36,23 @@ start:
restart
:
stop start
stop
:
@
docker stop
anis-client
@
docker stop
$(
NAME_APP
)
restart
:
stop start
status
:
@
docker ps
-f
name
=
$(
NAME_APP
)
test
:
@
docker
exec
-ti
anis-client
ng
test
--no-watch
@
docker
exec
-ti
$(
NAME_APP
)
ng
test
--no-watch
ng-build
:
dist
:
@
docker build
-t
anis-node conf-dev
&&
docker run
--init
-it
--rm
--user
$(
UID
)
:
$(
GID
)
\
-v
$(
CURDIR
)
:/project
\
-w
/project anis-node ng build
--prod
logs
:
@
docker logs
-f
-t
anis-client
@
docker logs
-f
-t
$(
NAME_APP
)
shell
:
@
docker
exec
-ti
anis-client
bash
@
docker
exec
-ti
$(
NAME_APP
)
bash
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment