Commit 047c840c authored by 黄济民's avatar 黄济民
Browse files


parent 7c32d4d4
Pipeline #89585 canceled with stages
FROM canal/otter-osbase:v1
COPY manager.deployer-*.tar.gz /home/admin/
COPY /home/admin
mkdir -p /home/admin/manager && \
tar -xzvf /home/admin/manager.deployer-*.tar.gz -C /home/admin/manager && \
/bin/rm -f /home/admin/manager.deployer-*.tar.gz && \
mkdir -p home/admin/manager/logs && \
chmod +x /home/admin/*.sh && \
chown admin: -R /home/admin && \
yum clean all && \
WORKDIR /home/admin/manager
ENTRYPOINT [ "/home/admin/" ]
echo "start manager ..."
# start manager
cmd="sed -i -e 's/^otter.database.driver.url.*$/otter.database.driver.url = jdbc:mysql:\/\/${OTTER_MANAGER_MYSQL}\/otter/' /home/admin/manager/conf/"
eval $cmd
cmd="sed -i -e 's/^otter.database.driver.username.*$/otter.database.driver.username = ${MYSQL_USER}/' /home/admin/manager/conf/"
eval $cmd
cmd="sed -i -e 's/^otter.database.driver.password.*$/otter.database.driver.password = ${MYSQL_USER_PASSWORD}/' /home/admin/manager/conf/"
eval $cmd
cmd="sed -i -e 's/^otter.zookeeper.cluster.default.*$/otter.zookeeper.cluster.default = ${ZOOKEEPER_QUORUM}/' /home/admin/manager/conf/"
eval $cmd
cmd="sed -i -e 's/^otter.communication.manager.port.*$/otter.communication.manager.port = 8081/' /home/admin/manager/conf/"
eval $cmd
cmd="sed -i -e 's/^otter.domainName.*$/otter.domainName = ${HOST}/' /home/admin/manager/conf/"
eval $cmd
su admin -c "cd /home/admin/manager/bin ; sh 1>>/tmp/start.log 2>&1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment