Adam Warner
83e918efb9
Rebase on development-v6, roll in changes based on comments by @yubiuser
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-12-23 12:47:57 +00:00
Adam Warner
69807c04e8
Attempt to download FTL before cloning the other component repos
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-12-23 12:40:16 +00:00
Adam Warner
8549432d67
Fail hard if TARGETPLATFORM does not meet one of the predefined values
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-12-23 12:40:16 +00:00
Christian König
dbf3ddfa24
Update alpine to 3.19
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-12-16 23:23:21 +01:00
Adam Warner
7f89be5b1d
install the logrotate file into /etc/pihole at startup in case of volume mounting
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-11-06 21:43:42 +00:00
Christian König
8a6bda4a89
Create dir for logrotate statefile
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-03 22:05:29 +01:00
Adam Warner
23fe63dff6
Get rid of the SKIPGRAVITYONBOOT environment variable. Instead, only run gravity on a fresh volume if the gravity database does not exist. There isn't really any need for gravity to be updated on every start (current default behaviour)
...
This will still run the gravity migration scripts on every boot if the gravity database exists
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-11-03 14:22:43 +00:00
Christian König
06819bdd51
Install logrotate
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-31 21:16:05 +01:00
Christian König
c9e23f5a92
/etc/pihole is already created within the Dockerfile
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-30 23:34:48 +01:00
Christian König
752c49e5de
Install logrotate from repo
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-30 23:31:40 +01:00
Adam Warner
b688b46f13
linux/arm64/v8 should be linux/arm64.
...
This is a regression, added a note to make sure it does not happen again
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-30 21:22:18 +00:00
Adam Warner
335ec7e40d
explicitly test for pwhash containing a value beginning $BALOON-SHA256
2023-10-28 19:47:59 +01:00
Adam Warner
5c7ff5c539
TARGETPLATFORM needs to be set
...
Co-authored-by: yubiuser <ckoenig@posteo.de>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-22 22:14:31 +01:00
Adam Warner
74657d01a9
- Bring back the logic from v5 containers for web password
...
- Update readme to take into accounts changes to FTLs environment variable handling
- shell/md linting, tidy away some code that is no longer needed
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-22 17:42:27 +01:00
Adam Warner
0784964f60
This is all now handled natively in FTL, no need for the bash
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-20 11:39:28 +01:00
Adam Warner
0489e57d10
Add special handling for FTL Config names that have underscores in them
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-16 17:11:11 +01:00
Adam Warner
6fa1759814
AdminLTE -> web
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-08 14:06:35 +01:00
Adam Warner
92ab9ad4ac
Merge pull request #1423 from pi-hole/v6/additional_packages
...
Allow end user to add additional packages to the image
2023-09-25 22:36:36 +01:00
Adam Warner
bf12b02636
Update src/start.sh
...
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
2023-09-25 20:00:22 +01:00
Adam Warner
672797b229
Remove the "INSTALL_DEV_TOOLS" environment variable in favour of "ADDITIONAL_PACKAGES", to allow user to add any package they wish to the container. Will be mentioned in README with a HERE BE DRAGONS warning.
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-09-21 00:01:37 +01:00
Adam Warner
0704f06cd8
Update src/start.sh
...
Co-authored-by: yubiuser <ckoenig@posteo.de>
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
2023-09-10 20:42:10 +01:00
Adam Warner
76e09bf15a
Give users an option to silence the FTL log output by passing in the environment variable TAIL_FTL_LOG with a value of 0. Defaults to enabled (1)
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-09-03 13:02:50 +01:00
Adam Warner
374f6f2537
Add in a test to kill start.sh and then ensure that pihole-FTL is gracefully exited.
...
We add in some sleeps to ensure that the log file is being written to before we check it
Log entry tests are based on many different passes of running this locally with all sorts of timeouts and sleeps, this seems to be the most consistent
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 23:31:39 +01:00
Adam Warner
696895fa59
Fix some broken logic in the gravity skip code (I should have read it better)
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 22:15:41 +01:00
Adam Warner
94795db7e9
correct tini path
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 21:38:49 +01:00
Adam Warner
3cebec9344
Add tini anyway (see `tini + bash 4.x at https://ahmet.im/blog/minimal-init-process-for-containers/ )
...
bash isn't going anywhere for the time being
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 21:20:12 +01:00
Adam Warner
b674a8bde7
Who needs an init system anyway? Add a trap to ensure that pihole-FTL shuts down cleanly on container exit.
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 21:20:11 +01:00
Adam Warner
fa2eb0d2f5
Merge pull request #1402 from edgd1er/skigravityonboot
...
if skipgravityonboot set, check db version.
2023-08-09 19:47:04 +01:00
Adam Warner
0748c7fc62
Update src/start.sh
...
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
2023-08-09 19:46:48 +01:00
Adam Warner
f24dd34e37
Update src/start.sh
...
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
2023-08-02 23:00:00 +01:00
Christian König
81e7671441
Revert alias and make branch configurable
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-08-02 22:20:20 +02:00
Christian König
d89d826951
Add padd alias
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-08-01 21:29:30 +02:00
Christian König
76b6d5bdb4
Add PADD to the image
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-07-31 23:38:39 +02:00
Adam Warner
e88985ba40
This is not needed!
...
Co-authored-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-28 21:58:48 +01:00
Dan Schaper
9a058c5511
Alphebetize dependencies for organization.
2023-07-28 10:10:10 -07:00
Gontier Julien
dfdf5fa930
Tell alpine specifically to use procps-ng
...
Signed-off-by: Gontier Julien <gontierjulien68@gmail.com>
2023-07-28 17:17:51 +02:00
edgd1er
7cf55cb722
if skipgravityonboot set, check db version
...
Signed-off-by: edgd1er <edgd1er@hotmail.com>
2023-07-27 03:24:55 +02:00
edgd1er
a2770a3f18
uid/gid: add info when already as expected
...
Signed-off-by: edgd1er <edgd1er@hotmail.com>
2023-07-26 22:50:10 +02:00
edgd1er
2a8fa77adc
extracted functions need to be rewritten to remove the return
...
Signed-off-by: edgd1er <edgd1er@hotmail.com>
2023-07-26 22:11:51 +02:00
Adam Warner
62dd8d503c
Allow the for changing of the UID/GID of the user/group pihole
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-26 08:25:08 +01:00
Adam Warner
93826e2d1d
Add tzdata package so that users can define their own timezone at runtime
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-24 00:12:46 +01:00
edgd1er
45bbb490d0
Update src/Dockerfile
...
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: edgd1er <edgd1er@hotmail.com>
2023-07-24 00:43:21 +02:00
edgd1er
926b3ae8c6
fix arm64 arch. use copy --chmod
2023-07-24 00:39:02 +02:00
Adam Warner
e352c6b2ac
re-add the PIHOLE_DOCKER_TAG build arg that went missing along the way
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-23 18:45:06 +01:00
Adam Warner
3b5cf34036
Merge pull request #1384 from pi-hole/v6/branch-args
...
Allow branch names to be passed in as build args
2023-07-21 19:05:42 +01:00
Adam Warner
8cc91c5ae5
Add `ncurses` back in for the time being to fix pihole -v output. It was removed in #1366 .
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-20 19:20:32 +01:00
Adam Warner
bf414721e0
Allow branch names to be passed through as ARGs default `development-v6` (for now)
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-20 18:26:13 +01:00
Gontier Julien
e4b5da2f6d
Reduce git clone size by only cloning what is needed
...
Signed-off-by: Gontier Julien <gontierjulien68@gmail.com>
2023-07-19 20:44:52 +02:00
Adam Warner
348e27b45f
Merge pull request #1368 from pi-hole/reimplement-skip-gravity
...
Re-implement SKIPGRAVITYONBOOT
2023-07-17 17:37:23 +01:00
Adam Warner
d5b639daee
Merge pull request #1366 from pi-hole/tweak/remove_deps
...
Remove some unnessacery dependencies
2023-07-17 17:36:52 +01:00