File tree Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ RUN mkdir -p static /opt/unit/state/ /opt/unit/tmp/ \
100
100
--config-file /opt/netbox/mkdocs.yml --site-dir /opt/netbox/netbox/project-static/docs/ \
101
101
&& SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
102
102
103
- ENTRYPOINT [ "/opt/netbox/docker-entrypoint.sh " ]
103
+ ENTRYPOINT [ "/sbin/tini" , "-- " ]
104
104
105
- CMD [ "/opt/netbox/launch-netbox.sh" ]
105
+ CMD [ "/opt/netbox/docker-entrypoint.sh" , "/opt/netbox/ launch-netbox.sh" ]
106
106
107
107
LABEL ORIGINAL_TAG="" \
108
108
NETBOX_GIT_BRANCH="" \
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ services:
17
17
- ./reports:/etc/netbox/reports:z,ro
18
18
- ./scripts:/etc/netbox/scripts:z,ro
19
19
- netbox-media-files:/opt/netbox/netbox/media:z
20
- ports :
21
- - 8080
22
20
postgres :
23
21
image : postgres:13-alpine
24
22
env_file : env/postgres.env
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ services:
21
21
depends_on :
22
22
- redis
23
23
- postgres
24
- entrypoint :
25
- - " /sbin/tini"
26
- - " --"
27
24
command :
28
25
- /opt/netbox/venv/bin/python
29
26
- /opt/netbox/netbox/manage.py
@@ -33,9 +30,6 @@ services:
33
30
depends_on :
34
31
- redis
35
32
- postgres
36
- entrypoint :
37
- - " /sbin/tini"
38
- - " --"
39
33
command :
40
34
- /opt/netbox/housekeeping.sh
41
35
Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ test_setup() {
56
56
57
57
test_netbox_unit_tests () {
58
58
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
60
60
}
61
61
62
62
test_initializers () {
63
63
echo " 🏭 Testing Initializers"
64
64
export INITIALIZERS_DIR
65
- $doco run --rm netbox ./manage.py check
65
+ $doco run --rm netbox /opt/netbox/docker-entrypoint.sh ./manage.py check
66
66
}
67
67
68
68
test_cleanup () {
You can’t perform that action at this time.
0 commit comments