Skip to content

Commit

Permalink
Refactored information-layer Docs (COVESA#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schleemilch <[email protected]>
  • Loading branch information
sschleemilch committed Oct 21, 2024
1 parent 24b871e commit 1bcadd7
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 369 deletions.
38 changes: 5 additions & 33 deletions cdsp/information-layer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,11 @@
# Base image for Node.js
FROM node:22.5.1

#########################
# GENERAL CONFIGURATION #
#########################

# HANDLER_TYPE can be initialized with two different values: `realmdb` or `iotdb`
ENV HANDLER_TYPE=${HANDLER_TYPE}

#########################
# REALMDB CONFIGURATION #
#########################

# VERSION must be 0 or a positive integer. This is used for versioning the RealmDB configuration schema.
ENV VERSION_REALMDB_SCHEMA=${VERSION_REALMDB_SCHEMA}

# Access to ATLAS Cloud instance
ENV REALMDB_APP_ID=${REALMDB_APP_ID}
ENV REALMDB_API_KEY=${REALMDB_API_KEY}

#######################
# IOTDB CONFIGURATION #
#######################

# Access to iotdb-service
ENV IOTDB_HOST: ${IOTDB_HOST}
ENV IOTDB_PORT: ${IOTDB_PORT}
ENV IOTDB_USER: ${IOTDB_USER}
ENV IOTDB_PASSWORD: ${IOTDB_PASSWORD}
ENV IOTDB_FETCH_SIZE: ${IOTDB_FETCH_SIZE}

# Set working directory inside the container
WORKDIR /app

COPY . ./
COPY package.json .
COPY handlers ./handlers
COPY utils ./utils
COPY router ./router

# Install dependencies, including workspaces
RUN npm install --production
Expand All @@ -42,4 +14,4 @@ RUN npm install --production
EXPOSE 8080

# Command to run the WebSocket server
CMD ["node", "router/src/websocket-server.js"]
CMD ["node", "router/src/websocket-server.js"]
Loading

0 comments on commit 1bcadd7

Please sign in to comment.