I used Nix to make a reproducible project environment. Now, the project ships with:
VSCodium
with all necessary extensions - forDocker
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)
- to generate the
- 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
- It's more preferable to start
VSCodium
in a relevant directory with a flake.
codium .
# or
codium app_purescript
-
Command Palette
:Ctrl
(Cmd
) +Shift
+P
-
In case the wrong Python
.venv
is sourced, go toCommand Palette
->Python: Select Interpreter
->Python 3.10.6 ('.venv':poetry)
with./.venv/bin/python
-
Try running a task
app_purescript: Docker run
(see the section below) -
In case after building
app_purescript
you see the red error messages, go toCommand Palette
->Developer: Reload Window
See the automatically generated docs.
What I found out while working on this project - recorded here
- In case of any issues see my GitHub profile for contact information