środa, 5 lutego 2020
sobota, 1 lutego 2020
kafka - docker-compose
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 192.168.1.100
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 192.168.1.100
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
traefik + java service (docker-compose)
version: '3.3' services: javaservice-1: image: service container_name: javaservice-1 restart: always labels: - traefik.enable=true - traefik.http.routers.javaservicerouter.rule=Host(`localhost`) - traefik.http.routers.javaservicerouter.entrypoints=web - traefik.port=8080 networks: - web traefik: image: 'traefik:latest' container_name: traefik command: - '--log.level=INFO' - '--api.insecure=true' - '--providers.docker=true' - '--providers.docker.exposedbydefault=false' - '--entrypoints.web.address=:80' - '--entrypoints.test.address=:8081' networks: - web ports: - '80:80' - '8080:8080' - '8081:8081' volumes: - '/var/run/docker.sock:/var/run/docker.sock:ro' networks: web: external: name: traefik_webgateway
poniedziałek, 13 stycznia 2020
Extend swap ubuntu
Turn off all swap processes
sudo swapoff -a
Resize the swap
sudo dd if=/dev/zero of=/swapfile bs=16G count=8
Make the file usable as swap
sudo mkswap /swapfile
Activate the swap file
sudo swapon /swapfile
Check the amount of swap available
grep SwapTotal /proc/meminfo
wtorek, 5 listopada 2019
czwartek, 19 września 2019
Connection breaking with wifi on Intel 7265 or 8265 on xubuntu (Reason: 3=DEAUTH_LEAVING)
Replace network manager with wicd:
sudo apt-get install wicd
sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service
sudo systemctl enable wicd.service
sudo systemctl start wicd.service
Sessions -> Startup:
wicd-client --tray
sudo apt-get install wicd
sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service
sudo systemctl enable wicd.service
sudo systemctl start wicd.service
Sessions -> Startup:
wicd-client --tray
poniedziałek, 2 września 2019
xubuntu screen flickering in chrome
sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
Option "DRI" "3"
EndSection
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
Option "DRI" "3"
EndSection