Files
mini-pc-setup/Readme.md
T

1.4 KiB
Raw Permalink Blame History

Setup Project on Mini PC (Windows)

In the scripts folder there are several .bat files used to set up the environment on the mini PC.

Requirements

  • Create an Apps folder on the C drive.
  • Clone this repository into the Apps directory. Note that should not rename the directory you have just cloned.

Steps

  1. Update and rename .env.template file to .env

  2. Run setup-wsl.bat

    • This will install WSL with Ubuntu‑22.04.
    • Follow the prompts to create a default UNIX user account inside WSL.
  3. Run setup-docker.bat

    • This will install Docker Engine (v2) and Docker Compose V2 inside the Ubuntu WSL you just created.
    • It also enables the Docker daemon to start automatically.
  4. Run setup-prj.bat

    • Login docker to Gitea.
    • Create walmart folder in WSL.
    • Copy .env and compose files to walmart folder.
    • Run docker compose file docker compose up -d.
  5. Run update-prj.bat

    • This will pull latest image from container registry.
    • Restart all containers in compose file
    • Remove unused images (old images)

Notes

  • During these steps, you may be asked to enter your UNIX user password (for sudo commands).
  • Make sure you reboot your PC after running setup-wsl.bat before continuing with the next scripts.
  • Verify installation by running:
    docker --version
    docker compose version