Skip to content

Instantly share code, notes, and snippets.

View vranystepan's full-sized avatar
🏞️
working from forest

Štěpán Vraný vranystepan

🏞️
working from forest
View GitHub Profile
find . -exec touch --date=@0 {} +
buildah build \
--format=docker \
-f Dockerfile \
-t "${CONTAINER_REPOSITORY}:${CONTAINER_TAG}" \
--cache-to "${CACHE_REPOSITORY}" \
--cache-from "${CACHE_REPOSITORY}" \
--layers \
--jobs 10 \
.
[program:messenger-consume]
command=php -d memory_limit=%(ENV_CRON_MEMORY_LIMIT)s /src/bin/console %(ENV_CRON_COMMAND)s --limit=10
user=root
numprocs=1
startsecs=0
autostart=true
autorestart=true
startretries=10
process_name=%(program_name)s_%(process_num)02d
apiVersion: v1
kind: ConfigMap
metadata:
name: app
data:
CONFIG_SOME_VALUE_1: value1
---
apiVersion: v1
data:
CONFIG_SOME_SECRET_VALUE_1: c2VjcmV0MQ==
@vranystepan
vranystepan / aws.ini
Created February 22, 2022 17:47
aws config example
[profile parent]
aws_access_key_id =
aws_secret_access_key =
region = eu-central-1
[profile child]
source_profile = parent
role_arn = arn:aws:iam::123456789123:role/role
region = eu-central-1
Certificate:
Type: AWS::CertificateManager::Certificate
Properties:
DomainName: !Ref DomainName
DomainValidationOptions:
- DomainName: !Ref DomainName
HostedZoneId: !Ref HostedZoneId
ValidationMethod: DNS
@vranystepan
vranystepan / ecr_login.yaml
Created November 30, 2021 14:14
GitHub actions with private ECR
name: 'Test and Deploy'
on:
push:
branches:
- '*'
jobs:
ecr-login:
runs-on: ubuntu-latest
/go/bin/aws-sigv4-proxy \
--name=es \
--region=eu-west-1 \
--host=redacted.eu-west-1.es.amazonaws.com
version: "3.8"
services:
frontend:
image: nginx
labels:
- traefik.http.routers.frontend.rule=Host(`lab01.stepanvrany.cz`)
- traefik.http.routers.frontend.tls=true
- traefik.http.routers.frontend.tls.certresolver=le
backend:
image: nginx
#!/bin/sh
traefik \
--entryPoints.web.address=:80 \
--entryPoints.websecure.address=:443 \
--providers.docker=true \
[email protected] \
--certificatesresolvers.le.acme.storage=acme.json \
--certificatesresolvers.le.acme.httpchallenge=true \
--certificatesresolvers.le.acme.httpchallenge.entrypoint=web
version: "3.8"
services:
frontend:
image: nginx
labels:
- traefik.http.routers.my-container.rule=Host(`lab01.stepanvrany.cz`)
- traefik.http.routers.my-container.tls=true
- traefik.http.routers.my-container.tls.certresolver=le