Update Dockerfile to expose service ports
Change-Id: Ia49ab3a2ffaf1a70fb2b9867b3db4b6468d4cb25
diff --git a/Dockerfile b/Dockerfile
index 60b19ce..c15fdf0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,3 +14,6 @@
COPY . /opt/enodebd
WORKDIR /opt/enodebd
RUN make venv && make install-protoc && make proto
+
+EXPOSE 8080 48080
+CMD ["venv/bin/python", "main.py"]
diff --git a/README.md b/README.md
index 5613d8b..2a8b39c 100644
--- a/README.md
+++ b/README.md
@@ -2,10 +2,15 @@
eNodeB daemon is an Automatic Configuration Server (ACS) which forks from [Facebook Magma project](https://github.com/magma/magma). It currently tested with Sercomm eNodeB P27-SCE4255W small cell.
-# Run
+# Install & Run
-```
-make venv
+```bash
+# The all command will create a virtual environment, install protoc and compile the proto files
+make all
+# Enter the virtual environment
+. venv/bin/activate
+
+# Run enodebd
python main.py
```
@@ -41,6 +46,7 @@
- job_name: 'prometheus'
scrape_interval: 5s
static_configs:
+ # The 8000 is the default port of prometheus client of enodebd
- targets: ['172.17.0.1:8000']
```
diff --git a/VERSION b/VERSION
index 341cf11..0c62199 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.2.0
\ No newline at end of file
+0.2.1
diff --git a/docker-compose.yml b/docker-compose.yml
index 2447318..968564c 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -14,6 +14,4 @@
ports:
- "8000:8000"
- "48080:48080"
- command: "venv/bin/python main.py"
- prometheus:
- image:
\ No newline at end of file
+ command: "venv/bin/python main.py"
\ No newline at end of file