Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pavel Kuzin
tower
Commits
9bf33ac6
Commit
9bf33ac6
authored
Jul 11, 2017
by
Aleksey Shirokih
Browse files
fix PS1. remove debug
parent
8ec0e80d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
9bf33ac6
...
...
@@ -44,3 +44,5 @@ ENTRYPOINT ["/entrypoint.sh"]
VOLUME
/opt/tower/var
EXPOSE
8888
CMD
["./bin/tower-web"]
\ No newline at end of file
Dockerfile.alpine
View file @
9bf33ac6
...
...
@@ -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
entrypoint-alpine.sh
View file @
9bf33ac6
#!/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
entrypoint.sh
View file @
9bf33ac6
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment