Commit graph

57 commits

Author SHA1 Message Date
Tom Wiesing
d268728f7d
(exit.Error).Wrap => (exit.Error).WrapError
This commit moves from the deprecated (exit.Error).Wrap function to the
(exit.Error).WrapError instead.
2024-04-08 21:32:06 +02:00
Tom
6362b2887b go1.20+: Refuse to work if cgo is enabled
On go1.20+ it is no longer possible to directly copy a cgo-enabled
library into a docker container. For this reason, this commit adds a
flag to commands that automatically make them fail with an appropriate
message if cgo is enabled.
2023-04-27 11:13:47 +02:00
Tom Wiesing
7ff2ecf7fe
Update to newest pkglib 2023-04-09 22:00:24 +02:00
Tom Wiesing
0f6803f890
Use fsx package and friends from pkglib 2023-04-08 17:52:19 +02:00
Tom Wiesing
9b30223b09
Update dependencies 2023-03-15 19:45:50 +01:00
Tom Wiesing
ac5ea35c21
Remove unusued TODO 2023-03-14 16:00:01 +01:00
Tom Wiesing
2493cbb078
pkg/logging: Remove unneeded argument 2023-03-13 13:24:19 +01:00
Tom Wiesing
e969351f8e
config/network: Prepare for multiple networks
This commit futures proofs the code to allow for usage of more than one
docker network.
2023-03-13 10:11:28 +01:00
Tom Wiesing
c31c46ee44
Rework error messages
This commit reworks error messages for all commands and makes sure they
pass liniting.
2023-03-09 12:18:39 +01:00
Tom Wiesing
1855090f26
Initial support for native docker client
This commit updates the implementation to use a native docker client as
opposed to calling an external executable.
2023-03-07 09:45:20 +01:00
Tom Wiesing
473040a69f
Remove environment.Environment struct
This commit completely removes the environment struct as it is no longer
used.
2023-03-02 12:52:51 +01:00
Tom Wiesing
3263920d6b
fsx: Remove environment references
This commit removes the reference to the environment from the fsx
package.
2023-03-02 11:51:51 +01:00
Tom Wiesing
14bb7f1086
pkg/environment: Remove exec related functions
This commit starts the migration to remove the environment package. It
introduced an abstraction that is not being used, and removing it makes
the code simpler to maintain.

This commit removes all 'exec' related package.
2023-03-02 11:03:33 +01:00
Tom Wiesing
945329a080
Move to yaml-based configuration
This commit updates the configuration to be yaml-based and updates the
configuration to read in a yaml file.
2023-02-25 09:14:56 +01:00
Tom Wiesing
6ede99d7c6
Refactor server and templates package 2023-01-19 13:22:48 +01:00
Tom Wiesing
a292c25f84
Add support for custom footer 2023-01-08 08:13:47 +01:00
Tom Wiesing
99983ee6db
system_update: Fix error message 2022-12-14 08:58:44 +01:00
Tom Wiesing
a590d93e76
environment/exec: Seperate Exec and Wait 2022-12-14 08:53:45 +01:00
Tom Wiesing
c80c8f2297
Reformat documentation messages 2022-12-08 11:45:52 +01:00
Tom Wiesing
aefde6eec2
fix typos in messages 2022-12-08 10:36:07 +01:00
Tom Wiesing
6f1ba24761
Update logging behavior 2022-12-01 12:42:04 +01:00
Tom Wiesing
3b78b06fff
wdcli: Use progress writer instead of IOStream 2022-11-30 13:17:12 +01:00
Tom Wiesing
3455f491ca
Add context
This commit adds and passes context around to (almost) every function.
This allows cancelling (almost) every function call globally.
2022-11-29 15:32:31 +01:00
Tom Wiesing
dbe494751a
system_update: Run system updates sooner 2022-11-23 15:28:15 +01:00
Tom Wiesing
4d3568a2e2
cmd/system_update: Check for 'docker' and 'docker compose' 2022-11-22 10:21:12 +01:00
Tom Wiesing
b27871f39a
Add initial support for solr 2022-11-16 13:07:17 +01:00
Tom Wiesing
b5b1ce2340
internal/component => internal/dis/component 2022-11-16 13:07:14 +01:00
Tom Wiesing
e320bb37bb
component: Automatically determine names 2022-11-16 13:07:13 +01:00
Tom Wiesing
10df1c3243
Move internal/core => internal/cli 2022-11-16 13:07:13 +01:00
Tom Wiesing
8d2855fdcb
Rename snapshots.Manager => exporter.Exporter 2022-11-16 13:07:13 +01:00
Tom Wiesing
063f3f9b7d
Move wisski instance code to separate package 2022-11-16 13:07:12 +01:00
Tom Wiesing
471ccbadc5
Move to Traefik 2022-11-16 13:07:09 +01:00
Tom Wiesing
3b112f1b8e
snapshots: Handle as separate components 2022-10-02 18:17:47 +02:00
Tom Wiesing
1dac09bc03
snapshots: Prepare for restructuring
This commit renames the 'wisski' package to 'dis' and prepares the
snapshots component for restructuring.
2022-10-01 19:53:18 +02:00
Tom Wiesing
f58920baf4
component/snapshots: Create new component
This commit creates a new 'snapshots' component that is intended to
manage snapshots and backups.
2022-10-01 19:39:41 +02:00
Tom Wiesing
ea56ff4aac
{backup,snapshot,system_update}: Use better UI 2022-09-30 18:33:42 +02:00
Tom Wiesing
72d95f58ea
system_update: Perform provisioning in parallel 2022-09-22 18:06:46 +02:00
Tom Wiesing
8b3218ad00
Add a metadata system 2022-09-20 13:11:24 +02:00
Tom Wiesing
881b538dff
Make 'system_update' more generic 2022-09-19 14:56:46 +02:00
Tom Wiesing
f19619ef9f
Add 'environment' package
This commit adds a new environment package that manages all calls to the
underlying operating system.
2022-09-18 14:24:22 +02:00
Tom Wiesing
5cd5ae9be2
'wdcli backup': Rework backup process
This commit reworks the backup process to dynamically find the list of
components.
2022-09-17 16:34:07 +02:00
Tom Wiesing
a8da3f70eb
Move instances into a separate component 2022-09-14 18:07:12 +02:00
Tom Wiesing
feacd4eeae
Move runtime around 2022-09-14 14:42:21 +02:00
Tom Wiesing
a360324f62
Refactor Package structure
This commit cleans up the package structure, to make two new top-level
packages `internal` (for internal-use packages) and `pkg` (for general
shared utility code).
2022-09-12 15:42:21 +02:00
Tom Wiesing
abafab9f0a
Cleanup internal packages 2022-09-11 17:12:57 +02:00
Tom Wiesing
86a4334796
Remove embed package
This commit finally removes the embed package in favor of more specific
resource packages
2022-09-11 17:00:34 +02:00
Tom Wiesing
91a088a56a
Merge internal/stack => component 2022-09-11 16:03:13 +02:00
Tom Wiesing
7b2f79bea1
Move code into new component package
This commit cleans up the resources in the 'embed' package, and instead
moves them into subpackages of a new 'compose' package. This makes sure
that '.env' templates and docker compose contexts are located in the
same location.
2022-09-11 15:41:11 +02:00
Tom Wiesing
2881a5f65c
resolver: Use self-built image
This commit updates the resolver component to use an image that is built
locally.
2022-09-09 18:01:57 +02:00
Tom Wiesing
4b357476a3
Add 'dis' component
This commit adds a new 'dis' component to the distillery that serves a
list of all known instances for the moment.
2022-09-09 17:10:24 +02:00