Services Blog Français

Shlax Container Image Builder: Preview

| by jpic | devops docker docker-compose ansible podman buildah

In a world where Dockerfiles, docker-compose.yml files, ansible files, and others compete for my attention against tech debt in projects that become a bit complex: I decided to make a Python micro framework to make it as nice to build an infra as I think it is to build a CRUD with Django.

Shlax is meant to be a multi purpose automation framework, where logic to acheive a certain state can be easily shared accross container building, host provisioning, infrastructures with virtual systems and networks. Most of it is not production ready yet, but the container building part seems to get me the best I can get:

Read More

Django + Snowpack How To = djsnowpack

| by jpic | django webpack snowpack javascript python html css sass

Snowpack is the fastest and easiest way ever to benefit from npm and imports in frontend code without going full SPA.

What this does

MUCH faster frontend development !

Elected Productivity Booster OS Award 2020, Snowpack is a frontend builder with a startup time of 50ms, which typically can be 30s in a typical Webpack project.

Change your CSS or JS and your Django page will reload !

Changing a frontend file will typically not cause a Django view reload because Django doesn’t want to provide JS by default: djsnowpack provides a solution for that.

Read More

django-autocomplete-light 3.8.0 release

| by jpic | django-autocomplete-light python django

WARNING 3.8.0 did not contain the proper built JS, please use 3.8.1 that was just released.

Django-autocomplete-light 3.8.0 was released, and features all your contributions of the year, and tested with a pre-release for the last 3 months or so.

It promises to fix all your JS loading issues, but comes at the price of a small backward compatibility breaks affecting users with custom init functions. If unsure: you probably don’t have any and the upgrade should just work for you.

As you will see, this is a pretty big release, we’ll also briefly talk about the future of django-autocomplete-light in this post.

Read More

Why CRUDLFA+

| by jpic | python django crud iommi crudlfap best-practice framework

This post describes how I feel Django could be even more awesome to use out of the box !

1. Non admins ?

The problem is pretty obvious: Django admin provides barely anything that’s usable for non-admin, not even working base templates and sane default features such as searchable lists with some kind of row level security.

2. No templates ?

For your internet users, Django only generates basic HTML forms without even a default template that calls {{ form }} and {{ form.media }} and {% csrf_token %}.

Read More

cli2: Dynamic CLI for Python objects

| by jpic

image image image

Break free from the POSIX standard for more fluent CLIs, by exposing simple Python functions or objects with a minimalist argument typing style, or building your own command during runtime. For me, it’s in between google/python-fire, microsoft/knack, and Django.

Demo

Before becoming a generic CLI framework, back 10 rewrites prior to the latest release, cli2 was supposed to just bring Python callables on the CLI without even a single line of code:

Read More

Practice of eXtreme DevOps Demo @ Traefik Online Meetup

| by jpic

How weak is a Continuous Deployment when you can’t just deploy the master branch to production at any time? Merging unfinished patches to publish them on a staging deployment blocks production deployment of the master branch…

eXtreme DevOps is the practice of an extremely aggressive Continuous Delivery strategy where each patch push deploys an ephemeral deployment such as branchname.ci.example.com. Of course, this would be quite hard to achieve with configuration files, even with NGINX and Ansible.

But, with Traefik it becomes so easy that we couldn’t resist and make it the standard practice for all our developments, from private companies of all sizes, and to government organizations. In this session, James demos and discusses his expertise using Traefik to practice eXtreme DevOps for his customers.

Read More

Arch & Alpine Linux YourLabs Mirrors & Scripts

| by jpic

This articles describes how to use the scripts we use to maintain public and private mirrors for Arch and Alpine Linux packages (more distros to come): arch.yourlabs.org and alpine.yourlabs.org.

The whole point of having this is that we also have arch.yourlabs.org and alpine.yourlabs.org on our local networks, as such upgrades are extremely fast at the hackerspace.

Read More

BigSudo eXtreme DevOps: Hacking Operations

| by jpic | devops

BigSudo is a command line generator wrapping around Ansible: the excellent tool for automating operations which has proven itself in an extremely heterogenic ecosystem over the course of the last years, and currently maintained by Red Hat.

eXtreme DevOps is when code traditionnaly known as network and infrastructure operations automation meet continuous integration, merges with continuous delivery, made it almost trivial to deploy per-branch ephemeral deployments on each git push, say on test-$GIT_BRANCHNAME.ci.example.com, so that the product team can review a feature during development without forcing the developer to merge unfinished code into master, in order to keep the master branch clean and deployable at any moment.

Read More

Developping on Tezos with custom gas restrictions

| by Thomas Binetruy

Then next Tezos Protocol update, Carthage net, will increase the gas restrictions allowing the development of hungrier smart contracts. In this post, we document how to update these hard limits to arbitrary values letting developers implement contracts in view of protocol updates. For instance, the gas restrictions will increase by multiple folds before the end of the year.

We develop on the Tezos sandbox, the simplest is to pull Yourlabs' docker image:

Read More
Previous Page 2 of 32 Next Page

They trust us

Contact

logo