Skip to content

Commit a8b6883

Browse files
committed
Changed entrypoint to "tini".
1 parent 2926d1a commit a8b6883

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ RUN mkdir -p static /opt/unit/state/ /opt/unit/tmp/ \
100100
--config-file /opt/netbox/mkdocs.yml --site-dir /opt/netbox/netbox/project-static/docs/ \
101101
&& SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
102102

103-
ENTRYPOINT [ "/opt/netbox/docker-entrypoint.sh" ]
103+
ENTRYPOINT [ "/sbin/tini", "--" ]
104104

105-
CMD [ "/opt/netbox/launch-netbox.sh" ]
105+
CMD [ "/opt/netbox/docker-entrypoint.sh", "/opt/netbox/launch-netbox.sh" ]
106106

107107
LABEL ORIGINAL_TAG="" \
108108
NETBOX_GIT_BRANCH="" \

docker-compose.test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ services:
1717
- ./reports:/etc/netbox/reports:z,ro
1818
- ./scripts:/etc/netbox/scripts:z,ro
1919
- netbox-media-files:/opt/netbox/netbox/media:z
20-
ports:
21-
- 8080
2220
postgres:
2321
image: postgres:13-alpine
2422
env_file: env/postgres.env

docker-compose.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ services:
2121
depends_on:
2222
- redis
2323
- postgres
24-
entrypoint:
25-
- "/sbin/tini"
26-
- "--"
2724
command:
2825
- /opt/netbox/venv/bin/python
2926
- /opt/netbox/netbox/manage.py
@@ -33,9 +30,6 @@ services:
3330
depends_on:
3431
- redis
3532
- postgres
36-
entrypoint:
37-
- "/sbin/tini"
38-
- "--"
3933
command:
4034
- /opt/netbox/housekeeping.sh
4135

test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ test_setup() {
5656

5757
test_netbox_unit_tests() {
5858
echo "⏱ Running NetBox Unit Tests"
59-
SKIP_STARTUP_SCRIPTS=true $doco run --rm netbox ./manage.py test
59+
$doco run --rm netbox /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py test
6060
}
6161

6262
test_initializers() {
6363
echo "🏭 Testing Initializers"
6464
export INITIALIZERS_DIR
65-
$doco run --rm netbox ./manage.py check
65+
$doco run --rm netbox /opt/netbox/docker-entrypoint.sh ./manage.py check
6666
}
6767

6868
test_cleanup() {

0 commit comments

Comments
 (0)