Commit 9bf33ac6 authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

fix PS1. remove debug

parent 8ec0e80d
......@@ -44,3 +44,5 @@ ENTRYPOINT ["/entrypoint.sh"]
VOLUME /opt/tower/var
EXPOSE 8888
CMD ["./bin/tower-web"]
\ No newline at end of file
......@@ -16,6 +16,7 @@ ENV ANSIBLE_HOST_KEY_CHECKING=False \
ANSIBLE_STDOUT_CALLBACK=debug \
PYTHONUNBUFFERED=1 \
VERSION=${VERSION} \
PS1="\$(date +%H:%M:%S) \h \w \\$ " \
PYTHONPATH=/opt/tower/lib/python2.7/site-packages/:/usr/local/lib/python2.7:/usr/local/lib/python2.7/site-packages
COPY --from=builder /opt/tower /opt/tower
......@@ -34,3 +35,5 @@ ENTRYPOINT ["/entrypoint.sh"]
VOLUME /opt/tower/var/
EXPOSE 8888
CMD ["./bin/tower-web"]
\ No newline at end of file
#!/bin/sh
set -xe
set -e
if [ "${1:0:1}" = '-' ]; then
set -- ./bin/tower-web "$@"
fi
if [ ! -f /opt/tower/var/tower/data/deploy_keys/id_rsa ]; then
mkdir -p /opt/tower/var/tower/data/deploy_keys
......@@ -13,8 +17,4 @@ if [ ! -f /opt/tower/var/tower/data/deploy_keys/id_rsa ]; then
mkdir -p /opt/tower/var/tower/data/src_dist/
fi
if [ $# -eq 0 ]; then
./bin/tower-web
else
exec "$@"
fi
exec "$@"
\ No newline at end of file
#!/bin/bash
set -xe
set -e
if [ "${1:0:1}" = '-' ]; then
set -- ./bin/tower-web "$@"
fi
if [ ! -f /opt/tower/var/tower/data/deploy_keys/id_rsa ]; then
mkdir -p /opt/tower/var/tower/data/deploy_keys
......@@ -13,8 +17,4 @@ if [ ! -f /opt/tower/var/tower/data/deploy_keys/id_rsa ]; then
mkdir -p /opt/tower/var/tower/data/src_dist/
fi
if [ $# -eq 0 ]; then
./bin/tower-web
else
exec "$@"
fi
exec "$@"
\ No newline at end of file
Supports Markdown
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