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

初始化manager

parent 7c32d4d4
Pipeline #89585 canceled with stages
FROM canal/otter-osbase:v1
COPY manager.deployer-*.tar.gz /home/admin/
COPY manager_start.sh /home/admin
RUN \
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 && \
true
WORKDIR /home/admin/manager
ENTRYPOINT [ "/home/admin/manager_start.sh" ]
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/otter.properties"
eval $cmd
cmd="sed -i -e 's/^otter.database.driver.username.*$/otter.database.driver.username = ${MYSQL_USER}/' /home/admin/manager/conf/otter.properties"
eval $cmd
cmd="sed -i -e 's/^otter.database.driver.password.*$/otter.database.driver.password = ${MYSQL_USER_PASSWORD}/' /home/admin/manager/conf/otter.properties"
eval $cmd
cmd="sed -i -e 's/^otter.zookeeper.cluster.default.*$/otter.zookeeper.cluster.default = ${ZOOKEEPER_QUORUM}/' /home/admin/manager/conf/otter.properties"
eval $cmd
cmd="sed -i -e 's/^otter.communication.manager.port.*$/otter.communication.manager.port = 8081/' /home/admin/manager/conf/otter.properties"
eval $cmd
cmd="sed -i -e 's/^otter.domainName.*$/otter.domainName = ${HOST}/' /home/admin/manager/conf/otter.properties"
eval $cmd
su admin -c "cd /home/admin/manager/bin ; sh startup.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