Coder Social home page Coder Social logo

amolofos / automated-workstation-setup Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 68 KB

This is an effort to provide scripts to setup my workstation in an automated, reproducible way.

License: MIT License

Shell 70.31% Jinja 29.69%
ansible laptop-setup linux-setup ansible-playbooks

automated-workstation-setup's Introduction

kafetzis.dev

Development

  1. Run website in development

    • Build development docker

      docker build \
        -f docker/Dockerfile \
        --target build \
        --progress plain \
        -t kafetzis.dev-build \
        .
    • Run serve at http://0.0.0.0:1111

      docker rm -f kafetzis.dev && \
      docker run \
        --rm \
        --name kafetzis.dev-build \
        -p 1111:1111 \
        -v ./src/:/project/ \
        kafetzis.dev-build \
        serve -i 0.0.0.0
  2. Run website in production

    • Build production docker

      docker build \
        -f docker/Dockerfile \
        -t kafetzis.dev \
        --progress plain \
        .
    • Run webserver at https://127.0.0.1:8080

      docker rm -f kafetzis.dev && \
      docker run \
        --rm \
        --name kafetzis.dev \
        -p 8080:80 \
        kafetzis.dev

First time setup

What did we do when we first created this repository?

  1. Install zola

    wget https://github.com/barnumbirr/zola-debian/releases/download/v0.18.0-1/zola_0.18.0-1_amd64_bullseye.deb
    sudo dpkg -i zola_0.18.0-1_amd64_bullseye.deb
  2. Initialise website

    zola init src
  3. Install theme

    git submodule add [email protected]:Speyll/anemone.git src/themes/anemone

Dependencies

External domain

Configure the apex domain using the following guides:

Check that the dns servers have been configured corectly.

$ dig kafetzis.dev +noall +answer -t A
kafetzis.dev.		3600	IN	A	185.199.110.153
kafetzis.dev.		3600	IN	A	185.199.108.153
kafetzis.dev.		3600	IN	A	185.199.109.153
kafetzis.dev.		3600	IN	A	185.199.111.153

$ dig www.kafetzis.dev +noall +answer -t A
www.kafetzis.dev.	2480	IN	CNAME	kafetzis.dev.
kafetzis.dev.		3600	IN	A	185.199.109.153
kafetzis.dev.		3600	IN	A	185.199.111.153
kafetzis.dev.		3600	IN	A	185.199.108.153
kafetzis.dev.		3600	IN	A	185.199.110.153

License

See MIT License document.

automated-workstation-setup's People

Contributors

amolofos 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.