Skip to content

Latest commit

 

History

History
94 lines (59 loc) · 2.26 KB

README.md

File metadata and controls

94 lines (59 loc) · 2.26 KB

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