Commit Graph

53 Commits

Author SHA1 Message Date
c49e0ad795 client: lib_gen: fix missing directory slash 2024-07-27 16:26:17 -07:00
cbe5a107ee client: lib_gen: fix custom Dockerfile path
Fixup to #90.
2024-07-19 23:24:13 -07:00
c34fd15a51 client: lib_gen: fix environment reader/resetter
- Fixes default env generation if current env exists
    * was not unsetting all previously exported env
- Adds debug output
2024-07-19 17:52:38 -07:00
af533460ec client: lib_gen: rewrite/fix global env gen
- Fixes resetting of globals after sourcing custom env file (location)
- Reorganizes flow logic
- Related refactoring
- Clarifies comments
- Adds debug output
2024-07-19 16:48:40 -07:00
7118a39f6d client: optimize/refactor repository path
- Reduces all calls into a single line
- Redefines path as root repository path
2024-07-18 22:57:31 -07:00
cd9681566b client: docker.bash: usage update/refactor
- Uses variable delimiters
- Adds current impl arguments
- Shortens 'dev-tools' example
2024-07-18 22:57:30 -07:00
612f9e5499 container: root: add internal throw/exception handler 2024-07-17 19:45:06 -07:00
f0561d1ebe client: lib_gen: superscript: append subprofile before generating
- Append new subprofile before potentially generating new file
- Simplifies backup/writing process
- Related refactoring
2024-07-16 17:54:25 -07:00
37fcba1586 client: lib_docker: build: use 'experimental' path 2024-07-16 17:44:17 -07:00
9975d3471c client: remove ghc package requirement
Will be managed by `stack` via respective source builds.
2024-07-16 17:44:16 -07:00
b7900f1eef client: reorg/factoring for 'experimental' builds
- Dockerfiles: separation of concerns for build types
- Dockerfiles: pull from respective hledger-based branches/tags
- Dockerfiles: move hledger-based test building into experimental
- docker-finance.yaml: add commented package 'unuran' (experimental)
2024-07-16 17:44:16 -07:00
e58bc578cd client: Dockerfiles: ubuntu: fix botan dependency
- The library is needed, not the utility binary
- Fixes `root` loading errors about missing headers
2024-07-13 19:06:20 -07:00
e11a142a86 client: lib_docker: version: refactor, print image name 2024-07-13 03:08:59 -07:00
bc7ebff2a1 client: lib_docker: factor env gen into lib_gen
- Related environment refactoring
2024-07-13 03:08:59 -07:00
4d3eef6067 client: new internal client versioning system
- Version is now determined on-the-fly from manifest file
- Internal versioning no longer depends on environment file
2024-07-13 03:01:06 -07:00
c68463bd2b client: fetch.yaml.in: remove redundant version
This element is found within the actual schema.
2024-07-13 00:46:57 -07:00
7f199f1615 client: lib_gen: ignore comments in env file 2024-07-13 00:46:57 -07:00
b9583a70df client: update manifest to current version 2024-07-13 00:46:56 -07:00
b00f4640df client: lib_docker: add build platform to version type=short 2024-07-12 21:18:58 -07:00
85a9cd8018 client: lib_docker: add 'type' arg to version
- Add `version` types (client | container | short | all)
- Related refactoring
2024-07-12 21:18:58 -07:00
f2df54d3cc client: Dockerfiles: resolve apt CLI warning 2024-07-11 16:48:58 -07:00
48a7b7f798 client: lib_docker: add 'experimental' build type 2024-07-09 22:56:04 -07:00
c74a76bd0b client: Dockerfiles: add hledger source build 2024-07-09 22:56:03 -07:00
4316172e4c container: subprofile.bash.in: add TODO re: --conf 2024-07-08 18:14:42 -07:00
c2ac298f67 client: lib_gen: add hledger conf support 2024-07-08 18:13:34 -07:00
bbbecff7f1 client: docker-finance.d: add hledger.conf.in 2024-07-08 18:13:34 -07:00
f43f77d28b client: lib_gen: return success on client generation
Selecting [nN] to client generation would skip optional container generation.
2024-07-03 19:22:59 -07:00
d115e2907d client: fetch.yaml.in: update Coinbase comment 2024-07-03 19:05:39 -07:00
69ef740bf1 client: lib_docker: factor out args parsers 2024-06-28 23:22:34 -07:00
cb7991b187 client: Dockerfiles: ubuntu: 'USER root' to install
Fixup to #68
2024-06-28 18:38:33 -07:00
185570b52f client: update version manifest to latest build 2024-06-28 17:30:36 -07:00
dffb3e5b14 client: Dockerfiles: ubuntu: add ROOT.cern support 2024-06-28 17:30:36 -07:00
19cbd05a5d client: Dockerfiles: refactor for build options 2024-06-28 17:30:36 -07:00
593d586e6c client: lib_docker: implement build options 2024-06-28 17:30:36 -07:00
8eab0eb560 client: lib_docker: add edit option for custom Dockerfile 2024-06-26 14:58:22 -07:00
494e0c5402 client: lib_docker: append custom Dockerfile to final Dockerfile 2024-06-26 14:58:21 -07:00
aafe16c0c0 client: lib_gen: generate custom Dockerfile 2024-06-26 14:58:20 -07:00
decef35be4 client: create templated custom Dockerfiles 2024-06-26 14:58:19 -07:00
5989fdc4a3 client: subprofile.bash.in: update hledger-web arg
Upstream replaced --capabilities with --allow
2024-06-24 16:59:37 -07:00
369e2343ce client/container: bash: trivial impl for ledger-vui
Leverages journal to visidata for an alternative read-only terminal UI.
2024-06-24 16:59:37 -07:00
3c6c9311da client/container: bash: add hledger aliases
The original intent of the `ledger` facade was to describe a general
purpose "ledger" command abstraction; not specifically the `ledger`
software (predecessor to hledger) nor the `ledger` hardware device.

As `hledger` is currently the exclusive internal "ledger" component,
adding `hledger` as an alias seems to be an appropriate-enough addition
that won't break existing abstraction/functionality.
2024-06-24 16:59:34 -07:00
51ef36b2bb client: Dockerfiles: dev-tools: add version dependency
Already present in the 'finance' images.
2024-06-21 16:34:50 -07:00
dddd8a90a2 client: lib_docker: add CLI version for all platforms
Prints meaningful output of all dependencies and their respective versions.
2024-06-21 16:34:50 -07:00
b5b61705c2 client: fetch.yaml.in: price: fetch from all APIs
Demonstrates a more realistic scenario.
2024-06-18 18:59:54 -07:00
b2f59764fc client: fetch.yaml.in: update to latest price impl 2024-06-17 23:15:23 -07:00
55c893e010 Dockerfiles: remove PHP codenixsv/coingecko-api
Replaced by custom implementation.
2024-06-17 23:15:22 -07:00
52026cace1 php: fetch: prices: new functionality / refactor
- Add support for multiple aggregator APIs
- Refactor `prices` API implementation
- Update documentation
2024-06-17 23:15:22 -07:00
5eaf261875 Dockerfiles: finance/dev-tools: remove default 'ubuntu' user
For Ubuntu-based images, remove upstream-added default 'ubuntu' user as
it may conflict with host's given UID/GID during docker-finance build.
2024-06-13 15:20:55 -07:00
958cf11be3 Dockerfiles: finance/dev-tools: remove timezone mount
When running `finance` image's `import` command (but only when
container's hledger-flow coinbase/coinbase-pro accounts are imported),
the following error is given:

  ```
  IsADirectoryError: [Errno 21] Is a directory: '/etc/timezone'
  Selector name 'id' does not exist as a named header in the given CSV data.
  ```

specifically, after enabling verbose printing of `csvjoin` (which is only
used within these accounts), the following error is given:

  ```
  File "/home/user/.local/share/pipx/venvs/csvkit/lib/python3.12/site-packages/babel/localtime/_unix.py", line 57, in _get_localzone
    with open(tzpath, 'rb') as tzfile:
         ^^^^^^^^^^^^^^^^^^
  ```

where all errors prevent the successful import of applicable accounts.

The python error appears to have been introduced in csvkit 2.0.0 and
appears to be the result of an upstream decision (or bug) to not test
whether /etc/timezone is a directory or a file (Arch Linux treats
/etc/timezone as a directory).

Fortunately, docker-finance's mounting of /etc/localtime appears to
satisfy use-case requirements; so, /etc/timezone is no longer needed.

Removing /etc/timezone resolves all errors.
2024-06-13 15:20:33 -07:00
59011109b3 Merge pull request #42 into master
7e2e422 client: Dockerfiles: remove obsolete 'version' element (Aaron Fiore)
2024-03-27 23:23:05 -07:00