[GH-ISSUE #556] Dockerfile changes #353

Closed
opened 2026-03-01 14:42:47 +03:00 by kerem · 4 comments
Owner

Originally created by @shepner on GitHub (Nov 29, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/556

Type

  • General question or discussion
  • Propose a brand new feature
  • Request modification of existing behavior or design

What is the problem that your feature request solves

Minor stuff to make the Dockerfile a bit more friendly to work with

What hacks or alternative solutions have you tried to solve the problem?

This are some initial things Ive run across:

  • After installing the software, run USER $ARCHIVEBOX_USER to switch from root
  • Provide ENV vars so the useradd and useradd commands support user definable UID and GID.
  • I dont seem to be able to get the TZ to change out of the default UTC setting.
  • Ive had to do a fair amount of external scripting, tinkering, etc related to this container so I can reliably get it working in my environment
    • Perhaps add a script to detect that the config dir is missing and automatically run archivebox init?
    • The archivebox manage createsuperuser is the only reliable way Ive been able to setup a working account. (this is related to my comment in #554)
    • Running archivebox init is a dangerous task (data is lost when the DB is recreated) but Ive needed to run it a couple times now. My startup script now has a special setting for it. Perhaps add a YAML metadata file into the root of each snapshot folder? This would permit the sqlite DB to be used exclusively as a data cache rather then the system of record.

FWIW, I rather like how linuxserver.io has polished/refined their base image and so I tend to template my own configs upon their work.

How badly do you want this new feature?

  • It's an urgent deal-breaker, I can't live without it
  • It's important to add it in the near-mid term future
  • It would be nice to have eventually

  • I'm willing to contribute dev time / money to fix this issue
  • I like ArchiveBox so far / would recommend it to a friend
  • I've had a lot of difficulty getting ArchiveBox set up
Originally created by @shepner on GitHub (Nov 29, 2020). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/556 <!-- Please fill out the following information, feel free to delete sections if they're not applicable or if long issue templates annoy you :) --> ## Type - [ ] General question or discussion - [ ] Propose a brand new feature - [x] Request modification of existing behavior or design ## What is the problem that your feature request solves Minor stuff to make the Dockerfile a bit more friendly to work with ## What hacks or alternative solutions have you tried to solve the problem? This are some initial things Ive run across: * After installing the software, run `USER $ARCHIVEBOX_USER` to switch from root * Provide ENV vars so the `useradd` and `useradd` commands support user definable UID and GID. * I dont seem to be able to get the TZ to change out of the default UTC setting. * Ive had to do a fair amount of external scripting, tinkering, etc related to this container so I can reliably get it working in my environment * Perhaps add a script to detect that the config dir is missing and automatically run `archivebox init`? * The `archivebox manage createsuperuser` is the only reliable way Ive been able to setup a working account. (this is related to my comment in [#554](https://github.com/ArchiveBox/ArchiveBox/issues/554)) * Running `archivebox init` is a dangerous task (data is lost when the DB is recreated) but Ive needed to run it a couple times now. My [startup script](https://github.com/shepner/asyla/blob/master/docker/archivebox.sh) now has a special setting for it. Perhaps add a YAML metadata file into the root of each snapshot folder? This would permit the sqlite DB to be used exclusively as a data cache rather then the system of record. FWIW, I rather like how [linuxserver.io](https://www.linuxserver.io) has polished/refined their base image and so I tend to template my own configs upon their work. ## How badly do you want this new feature? - [ ] It's an urgent deal-breaker, I can't live without it - [ ] It's important to add it in the near-mid term future - [x] It would be nice to have eventually --- - [ ] I'm willing to contribute dev time / money to fix this issue - [x] I like ArchiveBox so far / would recommend it to a friend - [ ] I've had a lot of difficulty getting ArchiveBox set up
Author
Owner

@cdvv7788 commented on GitHub (Nov 29, 2020):

archivebox init should not be dangerous. Did some folders get wiped, or some entries in the database get lost when you ran it? Can you reliable reproduce it? It would be very helpful if that is the case.

<!-- gh-comment-id:735478673 --> @cdvv7788 commented on GitHub (Nov 29, 2020): `archivebox init` should not be dangerous. Did some folders get wiped, or some entries in the database get lost when you ran it? Can you reliable reproduce it? It would be very helpful if that is the case.
Author
Owner

@shepner commented on GitHub (Nov 30, 2020):

I debated about mentioning this in here so have opened #557 to avoid loosing the point of this enhancement ticket

<!-- gh-comment-id:735835779 --> @shepner commented on GitHub (Nov 30, 2020): I debated about mentioning this in here so have opened [#557](https://github.com/ArchiveBox/ArchiveBox/issues/557) to avoid loosing the point of this enhancement ticket
Author
Owner

@pirate commented on GitHub (Feb 1, 2021):

progress update:

  • After installing the software, run USER $ARCHIVEBOX_USER to switch from root (done via the entrypoint script)
  • Provide ENV vars so the useradd and useradd commands support user definable UID and GID. (now respects PUID and GUID env vars in >=v0.5.4)
  • I dont seem to be able to get the TZ to change out of the default UTC setting. (TODO add a TZ env var, will do this in a separate issue)
<!-- gh-comment-id:770751338 --> @pirate commented on GitHub (Feb 1, 2021): progress update: - [x] `After installing the software, run USER $ARCHIVEBOX_USER to switch from root` (done via the entrypoint script) - [x] `Provide ENV vars so the useradd and useradd commands support user definable UID and GID.` (now respects PUID and GUID env vars in `>=v0.5.4`) - [ ] `I dont seem to be able to get the TZ to change out of the default UTC setting.` (TODO add a TZ env var, will do this in a separate issue)
Author
Owner

@pirate commented on GitHub (Apr 6, 2021):

Going to close this for now since most of the suggestions have been implemented. We'll track timezone support in a separate issue.

<!-- gh-comment-id:813858577 --> @pirate commented on GitHub (Apr 6, 2021): Going to close this for now since most of the suggestions have been implemented. We'll track timezone support in a separate issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#353
No description provided.