Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
ad6daa35
Commit
ad6daa35
authored
5 years ago
by
Stephan Porada
Browse files
Options
Downloads
Patches
Plain Diff
Add wait-for-it.sh
parent
f324bc9f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+3
-0
3 additions, 0 deletions
Dockerfile
docker-entrypoint.sh
+1
-0
1 addition, 0 deletions
docker-entrypoint.sh
with
4 additions
and
0 deletions
Dockerfile
+
3
−
0
View file @
ad6daa35
...
@@ -23,6 +23,9 @@ COPY config.py opaque.py requirements.txt ./
...
@@ -23,6 +23,9 @@ COPY config.py opaque.py requirements.txt ./
RUN
python
-m
venv venv
&&
\
RUN
python
-m
venv venv
&&
\
venv/bin/pip
install
-r
requirements.txt
venv/bin/pip
install
-r
requirements.txt
# add wait for it
RUN
git clone https://github.com/vishnubob/wait-for-it.git /wait-for-it
RUN
chmod
a+x /wait-for-it/wait-for-it.sh
COPY
docker-entrypoint.sh /usr/local/bin/
COPY
docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT
["docker-entrypoint.sh"]
ENTRYPOINT
["docker-entrypoint.sh"]
This diff is collapsed.
Click to expand it.
docker-entrypoint.sh
+
1
−
0
View file @
ad6daa35
#!/bin/sh
#!/bin/sh
/wait-for-it/wait-for-it.sh db:5432
--strict
--timeout
=
0
if
[
$#
-eq
0
]
if
[
$#
-eq
0
]
then
then
venv/bin/python
-u
opaque.py
venv/bin/python
-u
opaque.py
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment