Pricing changes are coming in January. Contact our Sales team to secure the current price for your desired license.

CREATE A DOCKER IMAGE FOR FLEXMONSTER DATA SERVER

Answered
SIMONE RONCO asked on April 16, 2024

Hi,

do you have a docker image for the FLEXMONSTER DATA SERVER or do you have a guide to do that?

Thanks
Simone

3 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 17, 2024

Hello, Simone!

Thank you for reaching out to us.

Kindly note that Flexmonster doesn't have a docker image for the Data Server out of the box. However, one of our clients had created a docker image for Flexmonster Data Server and shared their approach with us.

You are welcome to find the corresponding dockerfile and startServise.sh below:

dockerfile:

FROM amd64/centos:7
 
ARG http_proxy="your proxy (if necessary) "
ARG https_proxy=" your proxy (if necessary) "
 
ENV APP_PATH=[full path to application]/flexmonster
 
WORKDIR ${APP_PATH}
 
RUN mkdir ${APP_PATH}/scripts
RUN mkdir ${APP_PATH}/logs
 
ARG FX_FILE1=flexmonster-data-server
ARG FX_FILE2=flexmonster-setup-users
 
COPY ${FX_FILE1} ${APP_PATH}/${FX_FILE1}
COPY ${FX_FILE2} ${APP_PATH}/${FX_FILE2}
COPY ALM/startService.sh ${APP_PATH}/scripts/startService.sh
COPY ./sample-data ${APP_PATH}/sample-data
COPY CONFIG ${APP_PATH}/CONFIG
 
RUN chmod -R 777 ${APP_PATH}
RUN curl -sL https://rpm.nodesource.com/setup_10.| bash -
RUN yum install nodejs -y
RUN npm install -g flexmonster-cli
RUN flexmonster add flexmonster
 
RUN rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
RUN yum install dotnet-sdk-5.0 aspnetcore-runtime-5.0 -y
 
ENTRYPOINT ${APP_PATH}/scripts/startService.sh

startService.sh:

#!/bin/sh
export TARGET_ENV=`echo $NAMESPACE | cut -d'-' -f4`
echo "TARGET_ENV is ${TARGET_ENV}"
 
export TNS_ADMIN=`pwd`
export http_proxy="your proxy (if necessary) "
export https_proxy="your proxy (if necessary) "
 
#####################################################################
# below  you set the relevant configuration: tnsnames.ora & flexmonster-config.json
#####################################################################
..
..
..
#####################################################################
 
 
CMD='./flexmonster-data-server'
 
echo '           '
echo '           '
echo "TARGET_ENV: ${TARGET_ENV}"
echo "CMD: $CMD "
echo '           '
echo '           '
 
sh -c $CMD 2>&1

Hope you will find our answer helpful.

Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 24, 2024

Hello, Simone!

Hope you are doing well.

Our team is wondering if you had a chance to look through our previous answer. Could you please let us know if the provided docker image works well for your case?

Looking forward to hearing from you.

Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster May 2, 2024

Hello, Simone!

Hope you are having a great week.

Just checking in to ask if the provided docker image works well for your case.

Looking forward to hearing your feedback.

Kind regards,
Solomiia

Please login or Register to Submit Answer