Templates / Basic - How to use¶
The following info was pulled from latest release v0.1.0.
How to use¶
For more info on how this release was built, see README.
Start a new empty project folder¶
Unpack a v0.1.0 template with Debian¶
# Using Tar
curl https://gitlab.com/api/v4/projects/41347372/packages/generic/debian/v0.1.0/basic_debian_v0.1.0.tar.gz | tar zx
# Or Zip
curl https://gitlab.com/api/v4/projects/41347372/packages/generic/debian/v0.1.0/basic_debian_v0.1.0.zip
Or a v0.1.0 template with Alpine¶
# Using Tar
curl https://gitlab.com/api/v4/projects/41347372/packages/generic/alpine/v0.1.0/basic_alpine_v0.1.0.tar.gz | tar zx
# Or Zip
curl https://gitlab.com/api/v4/projects/41347372/packages/generic/alpine/v0.1.0/basic_alpine_v0.1.0.zip
Commit (using a multi-line git commit message)¶
git add .
git commit -F- <<EOF
Initial commit using template v0.1.0
See here for more info on this template:
https://gitlab.com/geekstuff.dev/templates/basic/-/releases/v0.1.0
EOF
Startup Devcontainer using VSCode¶
Start Devcontainer¶
- Open project folder with VSCode
- Install the recommended (required) extension
- F1, Reopen in Container
How to update existing template (work in progress)¶
- In your
.devcontainer/Dockerfile
, update the docker tag used in the FROM. - In VSCode, F1, search and run "Rebuild Container"
- In your integrated terminal, within the decontainer, you have the new template packaged inside.
- You can for example or even to open a new VSCode window, in that folder, in your containe.
- A command is being tested to view the diff:
make template.diff
but as more templates variants come into play, not sure how this is going to look like yet. - It's all manual for now. Meant to be improved later.