Commit Graph

32 Commits

Author SHA1 Message Date
Tobias Genannt
4ce89f9209 Added check for commands to all scripts 2023-03-15 13:02:25 +01:00
Tobias Genannt
fb5bacc4b4 Replaced curl with Skopeo for in image functions 2023-03-15 09:32:37 +01:00
Tobias Genannt
eef45c8197 Using new GITHUB_OUTPUT method 2023-01-28 15:49:13 +01:00
Tobias Genannt
f2b0375d5b Using GITHUB_TOKEN for API 2023-01-28 13:38:28 +01:00
Tobias Genannt
d4f9bb6da3 Shellcheck errors 2021-10-14 08:37:28 +02:00
rsp2k
ab41eaa5d9 Add friendly message/exit when jq isn't available 2021-10-14 08:37:28 +02:00
rsp2k
02794f368b Add friendly check for jq 2021-10-14 08:37:28 +02:00
Christian Mäder
04ac3d5f4b Format shell scripts with shfmt 2021-02-08 18:56:30 +01:00
Christian Mäder
dd0aee081a Fix failing GH Action 2020-01-17 18:46:30 +01:00
Christian Mäder
e060f86b9a Corrections for shellcheck warnings 2019-10-15 10:03:39 +02:00
Christian Mäder
26b1f59d66 Improve formating and fix typo 2019-10-15 00:40:48 +02:00
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
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
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
fda1c272e9
fix DEBUG 2019-02-07 09:34:24 +01:00
Christian Mäder
c7ab15f914
Consistent variable use in build scripts 2019-02-06 12:30:08 +01:00
Christian Mäder
6182133c7a
Update references to netboxcommunity 2019-02-06 11:46:20 +01:00
Christian Mäder
4ef420d443
Build system for hub.docker.com 2019-02-06 10:09:44 +01:00
Christian Mäder
968bb9f10f
Prevent Github API Rate Limits
When building netbox-docker on Travis, it happened too often that the
build failed because of Github's API rate limits. These apply for all
requests, but if the request is unauthenticated they are applied by IP.

This is bad for netbox-docker, as we build on Travis where the build-
workers are shared with the rest of the world.

This commit adds the possibility to define OAuth credentials as
documented at [1]. Hopefully this leads to more reliable releases of
netbox-docker images.

[1] https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
2018-08-28 09:21:08 -07:00
Christian Mäder
a5dccb2558
Revert "⚙️ Print every command"
This reverts commit 1fb6b80f93.
2018-04-10 11:42:06 +02:00
Christian Mäder
1fb6b80f93
⚙️ Print every command 2018-04-10 11:13:52 +02:00
Christian Mäder
6c3966415b
⚙️ Additional build debug info 2018-04-10 10:58:31 +02:00
Christian Mäder
bc786364d9
🐞 Fix error reporting 2018-03-05 16:28:35 +01:00
Christian Mäder
4d16297418
⚙️ Check variant when checking latest version 2018-03-05 15:17:59 +01:00
Christian Mäder
36f79b3ffe
⚙️ Compact Variants Logic into build-all.sh 2018-03-05 14:36:24 +01:00
Christian Mäder
30a37511e2
❇️ Adds DEBUG option 2018-03-05 14:32:04 +01:00
Christian Mäder
8f001adef4
💄 Cleanup and hide warnings 2018-03-05 14:29:24 +01:00
Tobias Genannt
6a01a3379d Add django_ldap_auth
In the ldap.Dockerfile the django_ldap_auth module is installed to
enable authentication againt LDAP servers.
2018-02-27 10:09:14 +01:00
Christian Mäder
96d414b46d
❇️ Don't build what's already there
This change introduces an API call to hub.docker.com to check if
the version we're about to build was already built & pushed. This
avoids superfluos builds.
2018-01-30 11:22:43 +01:00
Christian Mäder
7ed050316a
Only build prerelease if version higher than stable 2017-10-13 09:43:29 +02:00
Christian Mäder
33b1475840
Build pre-released versions
... instead of development branches.
2017-10-02 11:10:10 +02:00
Christian Mäder
e521f1fa55
📦 First attempt to push Docker Images from Travis 2017-09-29 11:39:16 +02:00