echo "install haproxy and keepalived service"
apt install -y haproxy keepalived
echo "copy and move haproxy config"
cat /etc/haproxy/haproxy.cfg
cat <<EOT >> /etc/haproxy/haproxy.cfg
listen Stats-Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include player.mk | |
include example.mk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.9.18-alpine3.18 | |
RUN pip install pipx invoke[invocations] scrapy scapy beautifulsoup ansible[dockerpy,pywinrm] | |
WORKDIR /src | |
COPY tasks.py /src | |
ENTRYPOINT invoke | |
CMD --list |
This (and related gists) captures how i created my docker swarm architecture. This is intended mostly for my own notes incase i need to re-creeate anything later! As such expect some typos and possibly even an error...
Each major task has its own gist, this is to help with maitainability long term.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
## Execute: docker compose up -D ./docker-compose.yml | |
version: '3' | |
services: | |
autoscale: | |
image: gianarb/orbiter:latest | |
healthcheck: | |
test: ["CMD", "exit 0"] | |
interval: 25s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
# This should give a high level idea of the approach. | |
# The complete solution is too complex and involves multiple internal microservices. | |
# I have tried to capture core things to consider while some else needs to achieve Docker swarm based auto scalout of workers. | |
services: | |
webserver: | |
image: customized/airflow:prod | |
environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The MIT License (MIT) | |
Copyright (c) 2015 J Kishore Kumar | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Leverging FZF for a user interface one can do fuzzy searching with a directory tree and document preview. | |
The PTF.py creates that tree then colors the path thus giving a graph of the item searched. | |
Example Usage includes: | |
- More advance Poorman's Mindmap | |
- Person/Contact Graph as a filesystem | |
- Asset Mapping (with pass(1) and LDAP file system structures) | |
- Maps with stow | |
- Project Management / Kanboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[slashnet] | |
client = yes | |
accept = 58697 | |
connect = us.slashnet.org:6697 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:latest as build | |
COPY . /src | |
WORKDIR /src | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt install -y libncurses5-dev libncursesw5-dev libsqlite3-dev libcurl-dev libexpat-dev libyajl-dev libgumbo-dev scdoc meson ninja-build | |
meson setup builddir && \ | |
meson compile -C builddir | |
FROM scratch | |
COPY --from=build /src/builddir/* / |
NewerOlder