Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,20 @@ module.exports = {
'd6d31f34-8ee5-4589-ae65-45652fcc01a6': 30000720
},

INTERNAL_CACHE_TTL: process.env.INTERNAL_CACHE_TTL || 1800
INTERNAL_CACHE_TTL: process.env.INTERNAL_CACHE_TTL || 1800,
INFORMIX: {
SERVER: process.env.INFORMIX_SERVER || 'informixoltp_tcp', // informix server
DATABASE: process.env.INFORMIX_DATABASE || 'tcs_catalog', // informix database
HOST: process.env.INFORMIX_HOST || 'localhost', // host
PROTOCOL: process.env.INFORMIX_PROTOCOL || 'onsoctcp',
PORT: process.env.INFORMIX_PORT || '2021', // port
DB_LOCALE: process.env.INFORMIX_DB_LOCALE || 'en_US.57372',
USER: process.env.INFORMIX_USER || 'informix', // user
PASSWORD: process.env.INFORMIX_PASSWORD || '1nf0rm1x', // password
POOL_MAX_SIZE: parseInt(process.env.MAXPOOL, 10) || 60,
maxsize: parseInt(process.env.MAXSIZE) || 0,
minpool: parseInt(process.env.MINPOOL, 10) || 1,
idleTimeout: parseInt(process.env.IDLETIMEOUT, 10) || 3600,
timeout: parseInt(process.env.TIMEOUT, 10) || 30000
}
}
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the base image with Node.js
FROM node:16.20.1-buster
FROM node:14.21.3

# Copy the current directory into the Docker image
COPY . /submissions-api
Expand All @@ -8,5 +8,7 @@ COPY . /submissions-api
WORKDIR /submissions-api

# Install the dependencies from package.json
RUN yarn install
RUN npm install
ENV INFORMIXDIR=/submissions-api/node_modules/informixdb/installer/onedb-odbc-driver
ENV LD_LIBRARY_PATH=${INFORMIXDIR}/lib:${INFORMIXDIR}/lib/esql:${INFORMIXDIR}/lib/cli
ENTRYPOINT node app.js
Loading