Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

chore: deploy #114

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
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
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ install_deploysuite: &install_deploysuite
restore_cache_settings_for_build: &restore_cache_settings_for_build
key: docker-node-modules-{{ checksum "package-lock.json" }}



save_cache_settings: &save_cache_settings
key: docker-node-modules-{{ checksum "package-lock.json" }}
paths:
Expand All @@ -29,7 +31,10 @@ builddeploy_steps: &builddeploy_steps
- run: *install_dependency
- run: *install_deploysuite
- restore_cache: *restore_cache_settings_for_build
- run: ./build.sh ${APPNAME}
- run:
name: 'Build ${APPNAME}'
command: ./build.sh ${APPNAME}
no_output_timeout: 35m
- save_cache: *save_cache_settings
- deploy:
name: Running MasterScript.
Expand Down Expand Up @@ -70,6 +75,7 @@ workflows:
branches:
only:
- develop
- feat/challenge-extension

# Production builds are exectuted only on tagged commits to the
# master branch.
Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
RUN apt-get -qq update && \
apt-get -qq install -y wget gcc-6 g++-6 make xz-utils python2.7 git curl

RUN wget -q -O node10.tar.xz https://nodejs.org/dist/v10.15.1/node-v10.15.1-linux-x64.tar.xz \
RUN wget -q -O node10.tar.xz https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.xz \
&& tar xfJ node10.tar.xz && rm -rf node10.tar.xz

ENV SERVERNAME=$servername
Expand All @@ -32,7 +32,7 @@ ENV CLIENT_LOCALE=en_US.utf8
ENV DB_LOCALE=en_US.utf8
ENV DBDATE Y4MD-
ENV DBDELIMITER "|"
ENV PATH /home/informix/node-v10.15.1-linux-x64/bin:${INFORMIXDIR}/bin:${INFORMIXDIR}/lib:${INFORMIXDIR}/lib/esql:${PATH}
ENV PATH /home/informix/node-v10.16.3-linux-x64/bin:${INFORMIXDIR}/bin:${INFORMIXDIR}/lib:${INFORMIXDIR}/lib/esql:${PATH}
ENV LD_LIBRARY_PATH ${INFORMIXDIR}/lib:${INFORMIXDIR}/lib/esql:${INFORMIXDIR}/lib/cli
ENV INFORMIXSQLHOSTS /opt/ibm/informix/etc/sqlhosts.informixoltp_tcp
ENV USER root
Expand All @@ -44,6 +44,6 @@ RUN echo "sqlexec 2021/tcp" >> /etc/services
COPY . /app

WORKDIR /app
RUN rm -rf node_modules && npm install --unsafe-perm
RUN rm -rf node_modules && npm install --unsafe-perm && npm rebuild ifxnjs

ENTRYPOINT [ "npm", "start" ]
Loading