Commit Graph

80 Commits

Author SHA1 Message Date
Christian Mäder 20109c3392 Checkout the repository with git
This changes the build process even further. Instead
f using `wget` to fetch the current code, `git` is used.
This allows for faster switching between branches,
because only the differences between them have to be
fetched from the server.

But the main advantage is that the build cache can
finally be used as designed by Docker. Repetitive
builds are very fast now. This is also true between
branches and tags, as long as the `requirements.txt`
file doesn't change.
2019-10-15 00:34:15 +02:00
Christian Mäder f3b9c34e3b externalize netbox download with wget 2019-10-15 00:34:15 +02:00
Christian Mäder d0ebb34432 Refactor to multistage builds
This commit introduces a huge change in the build process.

What changed:

- Dockerfile.ldap was integrated into Dockerfile as a seperate
  [build stage][multistage-build].
- All the build scripts were refactored according to this.
- The `docker-compose.yml` file was adjusted likewise.
- The main build script, `/build.sh`, now always builds all
  targets (formerly called variants).
- The minimal requirements for Docker and docker-compose
  have increased.
- The build on hub.docker.com must be adjusted.

This change should also fix #156 permanently.

[multistage-build]: https://docs.docker.com/develop/develop-images/multistage-build/
2019-10-15 00:34:15 +02:00
Christian Mäder cb8007e41d
Adds a hyperlink for the #netbox-docker channel 2019-10-12 15:16:17 +02:00
Christian Mäder 6051092a59 Move large parts of the documentation in the README to the wiki 2019-10-09 12:40:40 +02:00
Christian Mäder 03b52f9074 Merge branch 'helm-chart' of https://github.com/bootc/netbox-docker into bootc-helm-chart 2019-10-09 12:40:29 +02:00
Christian Mäder ce9158eb07
Update README.md 2019-07-30 13:45:08 +02:00
Christian Mäder e349c239fe Release 0.17.0 2019-07-30 10:47:56 +02:00
Chris Boot 3e1f688f78 Add a link to my Helm chart
I've written and will continue to maintain a Helm chart to aid in
deploying NetBox on Kubernetes. This adds a link to the README file so
that people who may be interested in it can find it.
2019-07-20 16:51:51 -03:00
Christian Mäder dc3db2d9fd %s/digitalocean/netbox-community/gi
Thank you Digitalocean for sponsoring Netbox!
And thank you for letting it grow up and move out ;)
2019-07-02 21:32:58 +02:00
Christian Mäder aed5126279 Provides necessary changes for v2.6 compatibility
Fixes #139
2019-06-21 22:48:23 +02:00
Christian Mäder 9c45e4d5e1 Prepare Version 0.14.0 2019-06-12 17:56:52 +02:00
Christian Mäder 2f8ea89d54 Prepare Version 0.13.0 2019-05-08 12:00:57 +02:00
Christian Mäder 8f39034014 Merge branch 'mryauch-patch-1' of https://github.com/mryauch/netbox-docker into mryauch-mryauch-patch-1 2019-05-08 11:57:43 +02:00
Christian Mäder 98833e20c8 Prepare Version 0.12.0 2019-05-08 11:43:29 +02:00
Matthew Yauch 96924736df
Updated README.md to reflect AUTH_LDAP_BIND_PASSWORD secret support 2019-05-01 08:14:26 -07:00
Christian Mäder 9eef398a9d prepare next version 2019-03-27 14:23:28 +01:00
Christian Mäder b49e6fac14
Update README.md
Fix the link to the configuration file, since it's core was "outsourced" some time ago.
2019-03-19 20:33:31 +01:00
Tobias Genannt 8c95f32b0c Make startup scripts optional
To optimize the application boot time the startup scripts can now be
disabled by an ENV variable. The default when the variable is not set,
is to run the startup scripts. This means that the default behaviour is
not changed from earlier releases.
2019-03-11 12:31:41 +01:00
Christian Mäder d4b394c999
Prepare 0.9.0 2019-02-22 14:03:42 +01:00
Christian Mäder f8ea0f74ec
Prepare 0.8.0 2019-02-22 13:49:48 +01:00
Christian Mäder e9bea0a420
Update README.md 2019-02-07 09:49:11 +01:00
Christian Mäder 4895874845
Update README.md 2019-02-07 09:47:01 +01:00
Christian Mäder 6182133c7a
Update references to netboxcommunity 2019-02-06 11:46:20 +01:00
Christian Mäder 09b4937b35
Update README 2019-02-06 11:24:01 +01:00
Christian Mäder c866bfff16
add note about breaking changes 2019-01-07 11:11:48 +01:00
Christian Mäder db7daee86e
formatted 2019-01-07 10:43:41 +01:00
Brady Lamprecht 0bae952410
Documenting reporting usage in `README.md`
Updated `README.md` on how to use the reporting feature of NetBox within this container.
2019-01-02 17:12:46 -07:00
Christian Mäder 7675e8fc03
Update Breaking Changes list 2018-10-31 14:37:07 +01:00
Aleksandar Radunovic d145e9c719 Comply to README style 2018-10-30 10:07:33 +01:00
Aleksandar Radunovic 7e6edd1bf5 Merge branch 'master' into add-more-seeds 2018-10-16 11:32:41 +02:00
Aleksandar Radunovic ab0ce20971 Update README 2018-10-15 15:15:56 +02:00
Christian Mäder 4053a714f8 Add permissions to user/group initializers
Thank you @bdlamprecht for researching how to add permissions to
users and groups in #92.

Fixes #92
2018-10-13 17:44:01 +02:00
Christian Mäder 68e6a62df1
Update README.md 2018-09-27 09:44:14 +02:00
Christian Mäder 81f8c7386d
✏️ Listed one more breaking change 2018-09-14 10:36:09 +02:00
Christian Mäder bd1c58c91e
✏️ Mention update to Alpine 3.8 2018-09-14 10:21:26 +02:00
Christian Mäder fb22a19893
✏️ Added nginx troubleshooting section 2018-08-13 15:37:06 -07:00
Christian Mäder 645ec1281c
Use a default Redis password
Although it does not provide any additional security, it shows how to
configure Redis with a password and how to use Netbox using a password
protected redis server. Something that might be considered in a classic
production deployment. (But is mostly irrelevant in e.g. a Kubernetes /
OpenShift deployment as the isolation is usually on a network level.)
2018-08-13 15:19:29 -07:00
Christian Mäder 013f81b791
♻️ Make netbox-worker it's own container
One container should ideally have one responsibility [1]. Therefore I
implemented the netbox-worker to start in it's own container. This is
possible, because netbox and the worker communicate via redis anyway.

They still use the same image underneath, just the "command" they
execute while starting different.

Or in other words: I see no reason to introduce supervisord, when we
already have docker-compose which can take care of running multiple
processes.

Also, here's another benefit: Now it's possible to view the logs of the
webhook worker independently of the other netbox logs (and vice-versa).

Other changes in this commit:
* I don't see a reason to put a password for Redis in the docker-compose
  setup, so I removed it.
* Slightly changed the nginx config, so that the nginx startup command
  becomes simpler and any error should be visible in the docker log.
* Some housekeeping in the `Dockerfile`.
* Added some troubleshooting advice regarding webhooks to the README.

I'd like to thank Brady (@bdlamprecht [2]) here who did the harder
work of figuring out what's even required to have webhooks working. [3]

[1] 
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#decouple-applications
[2] https://github.com/bdlamprecht
[3] https://github.com/ninech/netbox-docker/pull/90
2018-08-13 14:04:09 -07:00
thde 5e0b0a608b use docker-compose.yml instead of docker-compose.test.yml 2018-06-28 09:59:59 +02:00
Grokzen 7afa9454ba Bump version to 0.3.0 and add line in README describing the breaking change. 2018-05-18 21:22:05 +02:00
Grokzen cdbfdaf361 Implement fix for field 'filterable' that was broken. Added new custom field parameter 'filter_logic' 2018-05-18 21:16:01 +02:00
Tobias Genannt add2a04ae6 Fix typo 2018-04-04 13:13:41 +02:00
Christian Mäder 726efd1128
⬆️ Version increment
Because of a braking change.
2018-04-04 10:17:33 +02:00
Tobias Genannt b46bd58e0a
Move config to /etc/netbox/config (Fixes #54)
With this the configuration is moved to /etc/netbox/config and the
default reports directory is set to /etc/netbox/reports. This enables
the user to mount reports from a config map or persistent volume in
OpenShift.
2018-04-04 10:13:30 +02:00
Christian Mäder 0b55a24188
✏️ Version ≠ Version 2018-04-04 09:50:17 +02:00
Christian Mäder f56a79381b
Introduces a Netbox Docker project version 2018-04-04 09:44:58 +02:00
Christian Mäder f0496539b6
✏️ Moved NAPALM section
... and rephrased it a bit.
2018-03-08 09:55:56 +01:00
Christian Mäder 578bb38770
✏️ Moved ldap info into Version section 2018-03-08 09:54:34 +01:00
Christian Mäder 2d5a84e023
✏️ Made production instructions more prominent 2018-03-08 09:54:06 +01:00