Add initial (and final) Dockerfile

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-11-27 19:32:53 +01:00
commit 2572c25156
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5
3 changed files with 35 additions and 0 deletions

2
Dockerfile Normal file
View file

@ -0,0 +1,2 @@
FROM cockroachdb/cockroach:latest
CMD ["start-single-node", "--insecure"]

25
LICENSE Normal file
View file

@ -0,0 +1,25 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://unlicense.org>

8
README.md Normal file
View file

@ -0,0 +1,8 @@
## Why?
- Github workflows do not allow to pass arguments to the service containers
- `cockroachdb/cockroach` does not run without arguments
It was either fuck around with Githubs workflows and try to create a container in their Docker network or create an image which is periodically rebuilt from `cockroachdb/cockroach:latest` and executes the `start-single-node --insecure` mode to create a running test-instance of CRDB for the Github workflows.
Well. Here is the path I chose.