Tom Wiesing
40a1aafbee
targz: Handle links properly
2022-09-13 11:50:20 +02:00
Tom Wiesing
a4f91ae7cf
{backup,snapshort}: Improve behaviour
...
This commit improves the behaviour of 'backup' and 'snapshot' by
treating symbolic links properly, as well as writes proper reports.
2022-09-13 11:44:32 +02:00
Tom Wiesing
94263174cf
Minor refactor in 'core' package
2022-09-13 09:52:37 +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
487ce09979
Refactor components
2022-09-12 14:44:45 +02:00
Tom Wiesing
17011a277f
backup.go: Fix typo
2022-09-12 14:42:17 +02:00
Tom Wiesing
8210612198
Lots of internal cleanup
2022-09-12 11:15:52 +02:00
Tom Wiesing
8b7fe41309
settings_php_set: Fix wrong variable name
2022-09-11 18:01:31 +02:00
Tom Wiesing
076adfa54d
Update completed TODO item
2022-09-11 17:37:41 +02:00
Tom Wiesing
04b74e0491
Remove unuused internal function
2022-09-11 17:26:09 +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
2ee90bf462
component/web: Add 'HTTPSMETHOD'
...
This commit sets the 'HTTPSMETHOD' variable on the 'web' component for
when https is or is not enabled.
2022-09-11 13:04:15 +02:00
Tom Wiesing
e1ee569629
embed: Begin refactor to use clearer paths
2022-09-11 12:47:00 +02:00
Tom Wiesing
e75dc29de1
wdcli: Update handling of templates
...
This commit updates the handling of expanding of templates. This is to
prepare embeding templates directly as opposed to embedding a single
resource directory.
2022-09-09 23:20:47 +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
dceff860e4
Add missing 'graphdb-repo.ttl' file
...
This commit removes the missing template 'graphdb-repo.ttl'.
2022-09-09 17:15:21 +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
Tom Wiesing
35bb95c5ca
Show a warning when using wrong executable
...
This commit updates the 'wdcli' command to show a warning when using the
wrong executable.
2022-09-09 13:35:02 +02:00
Tom Wiesing
c4de1f2a06
snapshot: Explicitly export Pathbuilders
...
This commit updates the 'wdcli snapshot' command to also export
pathbuilders from the system.
2022-09-09 10:14:27 +02:00
Tom Wiesing
477152814a
env/instances: Guarantee that right 'authorized_keys' file is created
2022-09-08 17:30:28 +02:00
Tom Wiesing
086b359e17
barrel: Rename 'REAL_PATH' => 'DATA_PATH'
2022-09-08 17:26:36 +02:00
Tom Wiesing
89bbbb7371
Update documentation
...
This commit updates documentation to complete the move to go
2022-09-08 14:39:05 +02:00
Tom Wiesing
4bffc9e92a
backup: Prune old backups
...
This commit updates the backup command to prune old backups.
2022-09-08 14:39:05 +02:00
Tom Wiesing
437f499fb4
Remove unuused files
...
This commit completes the code porting to go, and removes any old data
no longer in use.
2022-09-08 14:39:05 +02:00
Tom Wiesing
df4cfa3567
Add 'wdcli monday' command
2022-09-08 14:39:05 +02:00
Tom Wiesing
fc3b9170a6
wdcli: Implement backup & snapshot
...
This commit implements command backup and snapshot.
2022-09-08 14:39:05 +02:00
Tom Wiesing
d818cb93a5
Rename backups => snapshot
2022-09-08 14:39:05 +02:00
Tom Wiesing
611cbeebb9
Use go 1.18.6
2022-09-08 14:39:05 +02:00
Tom Wiesing
bb73a73f57
backup: Move taking snapshot to separate function
...
This commit moves taking a snapshot of a running instance to a separate
function.
2022-09-08 14:39:05 +02:00
Tom Wiesing
ef338cca05
resources: Properly truncate files
...
Previously when rewriting specific template files they were not
overwritten properly. This commit updates the behaviour to use the right
os.Open flags.
2022-09-08 14:39:05 +02:00
Tom Wiesing
3c64689068
cmd/backup: Fix snapshot not being removed
2022-09-08 14:39:05 +02:00
Tom Wiesing
54747e267e
mv 'env/stack{,_*}.go' => 'env/component{,_*}.go'
2022-09-08 14:39:04 +02:00
Tom Wiesing
09431c4869
env: Move each component into a separate struct
...
This commit cleans up the distillery code by making each component a
distinct struct. Each of these components is also returned by by a new
Component() function that replaces the Stacks() function.
2022-09-08 14:39:04 +02:00
Tom Wiesing
2a14d93d3c
Implement initial 'wdcli backup_instance' command
...
This commit performs an initial implementation of the 'backup_instance'
command.
2022-09-08 14:39:04 +02:00
Tom Wiesing
a64c02cd78
internal: Improve error message consistency
2022-09-08 14:39:04 +02:00
Tom Wiesing
5d906169f4
internal/stack: Cleanup API
...
This commit cleans up the internal stack API to prepare it for an
eventual move to using a native docker client.
2022-09-08 14:39:04 +02:00
Tom Wiesing
7b38fdd801
Do a large chunk of the move to go
...
This commit moves a huge chunk of the code to go. The TODO.md document
indicates what is left to be done.
2022-09-08 14:39:04 +02:00
Tom Wiesing
db2ad9b4bd
compose.yml: network.external.name => network.name
...
This commit updates the various `docker-compose.yml` files to replace
`network.external.name` with `network.name`.
2022-09-08 14:39:02 +02:00
Tom Wiesing
067c1ed00b
Fix provision_container.sh
2022-09-08 11:36:16 +02:00
Tom Wiesing
4b0b86f22c
sql: Expose default port to host
...
This port exposes the sql connection to the host on the default
(localhost) port
2022-08-15 13:37:16 +02:00
Tom Wiesing
f478702d1f
Add utility to make new mysql account
2022-08-15 11:57:05 +02:00
Tom Wiesing
5f532d0841
prefixes: Allow instances to be skipped
...
This commit allows an instance to be skipped for the purposes of the
resolver by adding a file named `prefixes.skip` to the instance base
directory. This can be useful for dummy or cloned instances.
2022-08-07 16:30:50 +02:00
Tom Wiesing
1d1f61e6b4
update_prefix_config: Use https when enabled
...
This commit updates the 'update_prefix_config.sh' script to use an
'https://' as opposed to an 'http://' url when support is enabled.
2022-08-03 18:27:25 +02:00
Tom Wiesing
5170cc5dda
system_update.sh: Bugfix
...
This commit fixes a broken system_update.sh that did not properly
rebuild the resolver configuration.
2022-08-01 17:11:00 +02:00
Tom Wiesing
cb34e1144f
Allow instances to add prefixes by hand
...
This commit adds a method to allow instances to add specific prefixes to
the global uri resolver.
2022-08-01 17:07:08 +02:00
Tom Wiesing
210668a49b
update_prefix_config: Add 'http://' prefix
2022-08-01 15:52:28 +02:00
Tom Wiesing
45ee6b665e
Add a resolver
...
This commit adds a resolver to the toplevel Distillery domain, to allow
resolving domains globally.
2022-08-01 15:41:20 +02:00