Skip to content

Commit

Permalink
⚙️ shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
bscheshirwork committed Apr 17, 2017
1 parent 9fe4151 commit ad9b041
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
11 changes: 6 additions & 5 deletions Dockerfile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y remove wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/ && \
chown -R root:root /opt/mysql-proxy
RUN echo "#!/bin/bash\n\
chown -R root:root /opt/mysql-proxy && \
echo "#!/bin/bash\n\
\n\
exec /opt/mysql-proxy/bin/mysql-proxy \\\\\n\
--keepalive \\\\\n\
Expand All @@ -24,11 +24,12 @@ exec /opt/mysql-proxy/bin/mysql-proxy \\\\\n\
--proxy-address=\${PROXY_DB_HOST}:\${PROXY_DB_PORT} \\\\\n\
--proxy-backend-addresses=\${REMOTE_DB_HOST}:\${REMOTE_DB_PORT} \\\\\n\
--proxy-lua-script=\${LUA_SCRIPT}\n\
" >> /opt/entrypoint.sh && \
chmod u+x /opt/entrypoint.sh
" >> /usr/local/bin//entrypoint.sh && \
chmod u+x /usr/local/bin/entrypoint.sh && \
ln -s /usr/local/bin/docker-entrypoint.sh /entrypoint.sh # shortcut
EXPOSE 4040 4041

ENTRYPOINT [ "/opt/entrypoint.sh" ]
ENTRYPOINT [ "entrypoint.sh" ]


# For another derived image:
Expand Down
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified log.lua
100644 → 100755
Empty file.
Empty file modified main.lua
100644 → 100755
Empty file.

0 comments on commit ad9b041

Please sign in to comment.