Giter VIP home page Giter VIP logo

lxd-devops-koszalin's Introduction

lxc init ubuntu-devops template

lxc file push ttyd template/sbin/ttyd.inhouse

lxc file push ttyd.service template/etc/systemd/system/ttyd.service

lxc file push ~/.acme.sh/lxd.nauka.ga/fullchain.cer template/etc/ssl/certs/lxd.nauka.ga.full.cer

lxc file push ~/.acme.sh/lxd.nauka.ga/lxd.nauka.ga.key template/etc/ssl/private/lxd.nauka.ga.key

lxc image delete ubuntu-devops

lxc publish template --alias ubuntu-devops

Merge lws i ttyd

https://help.github.com/en/articles/about-git-subtree-merges

Instlacja

Dirty way, very dirty. Hardcoded paths, hardcoded username (socha)

sudo apt-get install -y build-essential make git cmake libssl-dev zlib1g-dev libjson-c-dev pkg-config curl socat php-fpm  php-json  php-mbstring  php-xml  php-intl php-cli pwgen
sudo mkdir /var/www && sudo chown socha.socha /var/www
cd /var/www
git clone [email protected]:rjsocha/lxd-devops-koszalin.git .
sudo ln -s /var/www/system/systemd/[email protected] /etc/systemd/system/
sudo systemctl daemon-reload
systemctl list-unit-files | grep ttyd
sudo install -m 0444 /var/www/system/sudo/terminal /etc/sudoers.d/terminal
cd /var/www/deps/libwebsockets
mkdir build
cd build
cmake -D LWS_WITH_HTTP2=OFF -D LWS_IPV6=ON -D LWS_WITH_STATIC=ON -D LWS_WITH_SHARED=OFF ..
make -j 4
sudo make install
# bo wymaga websockets_shared przy static build-dzie
sudo  sed -i -e 's/websockets_shared//g' /usr/local/lib/cmake/libwebsockets/LibwebsocketsConfig.cmake
cd /var/www/deps/ttyd
mkdir build
cd build
cmake ..
make
sudo make install
mkdir -p /home/socha/.acme-webroot
cd 
curl -s https://get.acme.sh | sh
sudo install -m 644 /var/www/system/nginx/default /etc/nginx/sites-available/
sudo nginx -t && sudo service nginx reload
~/.acme.sh/acme.sh --issue -d linux.nauka.ga -w ~/.acme-webroot/
sudo install -m 644 /var/www/system/nginx/default-ssl /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/default-ssl /etc/nginx/sites-enabled
sudo apt install -y haveged
sudo openssl dhparam -out /etc/nginx/dhparam.pem 2048
sudo nginx -t && sudo service nginx reload
sudo install /dev/null /etc/php/7.2/fpm/pool.d/www.conf
sudo install -m 0644 /var/www/system/php-fpm/socha.conf /etc/php/7.2/fpm/pool.d/socha.conf
sudo install -o socha -g socha -m 755 -d /var/log/php
sudo service php7.2-fpm restart
lxc profile create ubuntu
cat /var/www/system/lxc/ubuntu-profile.yaml | lxc profile edit ubuntu
lxc profile edit ubuntu

lxd-devops-koszalin's People

Contributors

abruines avatar amery avatar arokux avatar dbrnz avatar dosvald avatar edwin-oetelaar avatar fancycode avatar hashok avatar inindev avatar jmillan avatar joakimsoderberg avatar jvijtiuk avatar jwinarske avatar kommendorkapten avatar leonardorufino avatar lws-team avatar mmilata avatar nickdowell avatar ondraco avatar paroga avatar ppentchev avatar ralight avatar rjsocha avatar shyswork avatar skyhisi avatar stephaneberle9 avatar stv0g avatar tsl0922 avatar vpeter4 avatar wonder-mice avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.