provisioning-backend
earthly
provisioning-backend | earthly | |
---|---|---|
12 | 18 | |
13 | 10,864 | |
- | 1.3% | |
9.2 | 9.8 | |
4 days ago | 5 days ago | |
Go | Go | |
GNU General Public License v3.0 only | Mozilla Public License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
provisioning-backend
-
[Question] How do you guys separate your tooling for different version
I wrote a makefile which installs tools into PROJDIR/bin which is also in the gitignore.
-
Instrument a third party package
Extremely simple in go, you just implement what is called Doer interface (one method). Here is an example from one of my projects, it is a simple decorator with logger in this case. Then you just initialize the client with this instance, in my project it is slightly more complex because I also setup OpenTelemetry but you get the idea.
-
Can you really build a complete restful service without any frameworks?
Authentication and authorization is typically just a middleware which is essentially a function. Recently I implemented a RBAC functionality into our microservice which does not use any big framework. On our platform we have a RBAC service we need to call via REST. As you can see the whole patch is small if you exclude the generated OpenAPI client.
- In-memory key value store
-
Repository with sqlc, how to hide transactions?
We use DAO/DAL in our app and I ran into the same problem - DAO does not work well with transactions. We have our own WithTransaction function which is currently only used within one model and that works fine. But the problem appears when we want to do a transaction across several models - that needs to be done in the business (service) layer.
-
Is your makefile supposed to be a justfile?
Our project does have extensive makefile broken down into individual files so it is more readable. As you can see, we have targets for database, code quality, modules, testing, client generation, OpenAPI etc. It also has a trivial help:
-
Any references for open source mini workflow libraries or systems written in Go?
Here is our code: https://github.com/RHEnVision/provisioning-backend/tree/main/pkg/worker
- Want to know if this is a valid approach
- Cache headers when serving embedded files
-
When to use a queue library or straight redis?
Our solution is simply one Redis queue, jobs have "type" (string) and are marshalled via Gob (for type safety) and there is no return value from job or error. This makes things extremely easy. We keep statistics (metrics) of job queue size and "in flight" jobs. Here is our implementation, just for inspiration. I suggest to write this on your own: https://github.com/RHEnVision/provisioning-backend/tree/main/pkg/worker
earthly
-
Cache is King: A guide for Docker layer caching in GitHub Actions
Also CACHE keyword, for cache mounts. Makes incremental tools like compilers work well in the context of dockerfiles and layer caches.
That can extend beyond just producing docker iamges as well. Under the covers the CACHE keyword is how lib/rust in Earthly makes building Rust artifacts in CI faster.
https://github.com/earthly/earthly/issues/1399
-
Is your makefile supposed to be a justfile?
earthly
-
Show HN: Earthly 0.7.0
A few of us will be around to answer questions if anyone has any. I myself worked only worked on the chmod feature which was pretty trivial.
https://github.com/earthly/earthly/pull/1821
-
Earthly CI: Launching a new era for CI
[2] https://github.com/earthly/earthly/releases/tag/v0.7.0
-
Containerize CI pipelines with Earthly
# cat Makefile BIN_PATH = $(shell pwd)/bin $(shell mkdir $(BIN_PATH) &>/dev/null) EARTHLY = $(BIN_PATH)/earthly earthly: ifeq (,$(wildcard $(EARTHLY))) curl -L https://github.com/earthly/earthly/releases/download/v0.6.23/earthly-linux-amd64 -o $(EARTHLY) chmod +x $(EARTHLY) endif
- Earthly - The effortless ci/cd framework that runs anywhere
-
GitHub Actions Is Down
I started to bring awareness to the Earthfiles goofy license, but it seems they've switched to MPL! https://github.com/earthly/earthly/releases/tag/v0.6.15
The (unfortunately named) Dagger is also an entry into that space: https://github.com/dagger/dagger#readme (Apache 2)
-
Please name some open source projects which are collecting small user analytics metrics and how
- https://github.com/earthly/earthly/tree/main/analytics
-
Dagger: a new way to build CI/CD pipelines
Another *monster* difference is that Dagger is (at least currently) Apache 2: https://github.com/dagger/dagger/blob/v0.2.4/LICENSE but Earthly went with BSL: https://github.com/earthly/earthly/blob/v0.6.12/LICENSE
That means I'm more likely to submit bugs and patches to Dagger, and I won't touch Earthly
-
Migrating Your Open Source Builds Off Of Travis CI
Example build steps for a go application
What are some alternatives?
goyek - Task automation Go library
dagger - Application Delivery as Code that Runs Anywhere
spok - It's a build system Jim, but not as we know it 🖖
Dagger.jl - A framework for out-of-core and parallel execution
weaver - Programming framework for writing and deploying cloud applications.
dagger-for-github - GitHub Action for Dagger
dejq - Very Simple Job Queue
act - Run your GitHub Actions locally 🚀
docker-flask-example - A production ready example Flask app that's using Docker and Docker Compose.
pipeline - A cloud-native Pipeline resource.
Phoenix - Peace of mind from prototype to production
glci - 🦊 Test your Gitlab CI Pipelines changes locally using Docker.