deemp / devops-labs-with-nix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI

Time apps

Descriptions

Ansible

Terraform

Unit tests

CI

Docker

app_python

app_purescript

Nix

I used Nix to make a reproducible project environment. Now, the project ships with:

  • VSCodium with all necessary extensions - for
    • Docker
    • Python
    • Purescript
    • Markdown
    • etc., with linters and formatters and formatting on save
  • development shells
  • scripts
    • to generate the docs, settings.json, tasks.json, and workflow files
    • to start apps via their servers or in Docker containers
    • to lint files
    • to cache devshells and push them to Cachix (a binary cache)

Setup

  1. Install Nix

When prompted, answer y

git clone https://github.com/deemp/devops-labs
cd devops-labs
git checkout lab9
nix develop
create-venvs-in-each-dir
write-configs
  1. It's more preferable to start VSCodium in a relevant directory with a flake.
codium .
# or
codium app_purescript
  1. Command Palette: Ctrl (Cmd) + Shift +P

  2. In case the wrong Python .venv is sourced, go to Command Palette -> Python: Select Interpreter -> Python 3.10.6 ('.venv':poetry) with ./.venv/bin/python

  3. Try running a task app_purescript: Docker run (see the section below)

  4. In case after building app_purescript you see the red error messages, go to Command Palette -> Developer: Reload Window

Available actions

See the automatically generated docs.

Miscellaneous

What I found out while working on this project - recorded here

Contact me

About


Languages

Language:JavaScript 85.7%Language:Nix 10.0%Language:HCL 1.0%Language:Python 1.0%Language:Dockerfile 0.8%Language:PureScript 0.6%Language:Smarty 0.4%Language:Jinja 0.3%Language:Shell 0.1%Language:HTML 0.1%