Skip to content

Commit bb00ae8

Browse files
GufCabAugustHA-Iteratoraugusthjerrild
authored
Merge prior to release v.1.1.0 (#10)
* Docker container with simulator * Changes with docker files. Can now use docker-compose up on the simulator itself so the other containers will not be included. * The simulator container will now also be available inside the os2Iot container. Still available from the simulator as well. Since they both have to use port 8000, they can't be used in the same time. * Changed port number * rename folder from Simulator to simulator Co-authored-by: August Andersen <[email protected]> Co-authored-by: augusthjerrild <[email protected]>
1 parent 986a77a commit bb00ae8

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ services:
5656
BASE_URL: http://localhost:3000/api/v1/
5757
TABLE_PAGE_SIZE: 20
5858

59+
#OS2IoT
60+
os2iot-lorawanSimulator:
61+
image: "os2iot-lorawan_simulator"
62+
build:
63+
context: "./simulator"
64+
dockerfile: "Dockerfile"
65+
ports:
66+
- "8768:8000"
67+
5968
os2iot-backend:
6069
image: "os2iot-backend"
6170
build:

simulator/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM ubuntu
2+
3+
RUN apt-get update && apt-get install make
4+
5+
RUN apt-get update && apt-get install git -y
6+
7+
ARG DEBIAN_FRONTEND=noninteractive
8+
9+
RUN apt-get update && apt-get install golang -y
10+
11+
RUN apt-get install ca-certificates -y
12+
13+
RUN git clone https://github.com/UniCT-ARSLab/LWN-Simulator.git
14+
15+
WORKDIR /LWN-Simulator
16+
17+
RUN make install-dep
18+
19+
CMD make run

simulator/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
os2iot-lorawanSimulator:
3+
image: "os2iot-lorawan_simulator"
4+
build:
5+
context: "./"
6+
dockerfile: "Dockerfile"
7+
ports:
8+
- "8768:8000"

0 commit comments

Comments
 (0)