mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated docker script
This commit is contained in:
committed by
Dan Christian Bogos
parent
e601b70419
commit
9d0944d0ff
3
.gitignore
vendored
3
.gitignore
vendored
@@ -16,3 +16,6 @@ data/tutorials/fs_evsock/freeswitch/etc/freeswitch/
|
||||
data/tutorial_tests/fs_evsock/freeswitch/etc/freeswitch/
|
||||
vendor
|
||||
*.test
|
||||
# do not save the binary created by the docker build script
|
||||
data/docker/scratch/cgrates.json
|
||||
data/docker/scratch/cgr-engine
|
||||
4
data/docker/scratch/Dockerfile
Normal file
4
data/docker/scratch/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM scratch
|
||||
ADD ./cgr-engine /
|
||||
ADD ./cgrates.json /etc/cgrates/
|
||||
CMD ["/cgr-engine","--logger=*stdout","-httprof_path=/pprof"]
|
||||
9
data/docker/scratch/Makefile
Normal file
9
data/docker/scratch/Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
generate:
|
||||
./build.sh
|
||||
cp ../../conf/cgrates/cgrates.json ./cgrates.json
|
||||
build:
|
||||
docker build -t cgrates .
|
||||
run: build
|
||||
docker run --rm -itv `pwd`:/root/code -p 2080:2080 -p 2012:2012 --name cgr cgrates
|
||||
.PHONY: generate,build,run
|
||||
Reference in New Issue
Block a user