Laravel, PHP, Backend - Uncolored collection
314 subscribers
141 photos
2 videos
2 files
385 links
Коллекция материалов по Laravel и смежным технологиям.

VueJS: https://t.me/vuejs_uncolored
Svelte: https://t.me/svelte_uncolored
React: https://t.me/react_uncolored

Для связи @RainySkys
Download Telegram
​​Build automation for the post-container era. It's like Makefile and Dockerfile had a baby.

Earthly is a build automation tool for the post-container era. It allows you to execute all your builds in containers. This makes them self-contained, reproducible, portable and parallel. You can use Earthly to create Docker images and artifacts (eg binaries, packages, arbitrary files).

Earthly is meant to be used both on your development machine and in CI. It can run on top of popular CI systems (like Jenkins, Circle, GitHub Actions). It is typically the layer between language-specific tooling (like maven, gradle, npm, pip, go build) and the CI build spec.

Features:
- Reproduce CI failures
- Builds that run the same for everyone
- From zero to working build in minutes
- Build anything via containers - build images or standalone artifacts (binaries, packages, arbitrary files)
- Programming language agnostic - allows use of language-specific build tooling
- Reproducible builds - does not depend on user's local installation. Runs the same locally, as in CI
- Parallelism that just works - builds in parallel without special considerations the user has to make
- Mono-repo friendly - ability to split the build definitions across a vast directory hierarchy
- Multi-repo friendly - ability to import builds or artifacts from other repositories

https://github.com/earthly/earthly

#docker #devops #go

Example:

# Earthfile
FROM golang:1.13-alpine3.11
RUN apk --update --no-cache add git
WORKDIR /go-example

all:
BUILD +lint
BUILD +docker

build:
COPY main.go .
RUN go build -o build/go-example main.go
SAVE ARTIFACT build/go-example AS LOCAL build/go-example

lint:
RUN go get golang.org/x/lint/golint
COPY main.go .
RUN golint -set_exit_status ./...

docker:
COPY +build/go-example .
ENTRYPOINT ["/go-example/go-example"]
SAVE IMAGE go-example:latest


Output:
Learn Docker in a Month of Lunches

Автор: Elton Stoneman

Год издания: 2020

Скачать книгу

#docker #english
Forwarded from Веб-страница
Шпаргалка по командам Docker

Здесь все нужные команды собраны в одном месте — реестры и репозитории Docker, запуск и установка контейнеров, получение информации о контейнерах, управление образами и многое другое:

https://tprg.ru/FoMZ

#devops #docker
Forwarded from Веб-страница
Докеризируем среду разработки в VS Code

В этой статье рассматривается способ использования контейнеров Docker в качестве полноценной среды разработки с помощью расширения Remote - Containers. Благодаря ему можно создать необходимое количество контейнеров, а затем:

— использовать их для запуска библиотек, необходимых для работы с кодом в разных конфигурациях;
— быстро переключаться между изолированными средами разработки;
— пробовать новые технологии, не влияя на локальные настройки и не только.

Подробнее о том, как настроить расширение и что оно позволяет делать:

https://tprg.ru/cPNK

#docker #vscode
Forwarded from Веб-страница
20 лучших практик Dockerfile

В этой статье вы найдёте 20 различных практик для работы с файлами Docker, которые помогут вам избежать проблем с безопасностью и не только:

https://tprg.ru/GOUc

#docker #бэкенд