diff --git a/docker-compose.yml b/docker-compose.yml index f09a5ec..9020235 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -56,6 +56,15 @@ services: BASE_URL: http://localhost:3000/api/v1/ TABLE_PAGE_SIZE: 20 + #OS2IoT + os2iot-lorawanSimulator: + image: "os2iot-lorawan_simulator" + build: + context: "./simulator" + dockerfile: "Dockerfile" + ports: + - "8768:8000" + os2iot-backend: image: "os2iot-backend" build: diff --git a/simulator/Dockerfile b/simulator/Dockerfile new file mode 100644 index 0000000..46e3527 --- /dev/null +++ b/simulator/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu + +RUN apt-get update && apt-get install make + +RUN apt-get update && apt-get install git -y + +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install golang -y + +RUN apt-get install ca-certificates -y + +RUN git clone https://github.com/UniCT-ARSLab/LWN-Simulator.git + +WORKDIR /LWN-Simulator + +RUN make install-dep + +CMD make run \ No newline at end of file diff --git a/simulator/docker-compose.yml b/simulator/docker-compose.yml new file mode 100644 index 0000000..b497d43 --- /dev/null +++ b/simulator/docker-compose.yml @@ -0,0 +1,8 @@ +services: + os2iot-lorawanSimulator: + image: "os2iot-lorawan_simulator" + build: + context: "./" + dockerfile: "Dockerfile" + ports: + - "8768:8000"