code-server-boilerplates / starter-pack

An starter repo contains the base Dokerfile based from https://github.com/cdr/deploy-code-server, on-push and on-release image builds
MIT License
2 stars 1 forks source link
code-server dev-environment docker-containers helm-charts starter-template

Boilerplate for [Example Project]

CII Best Practices Docker CI (image development)

In this boilerplate, we included the following packages out of the box:

This template repository is good for:

Checklist

Note to new template maintainers: After completing this checklist, update links below and reset progress if you marked your repository as an template.

############################################################
# Add your tools your users want to install on an fresh machine here ⬇

# For userland installs, like Node Version Manager,
# you may need to prefix "su coder" before the command.
# For global installs, nuke the sudo part since we're root.

# ...

# Add your tools your users want to install on an fresh machine here
############################################################

Documentation for template maintainers are now moving into this site soon, as we're preparing to make these cdrs-docs.rtappp.tk and csb-docs.rtapp.tk short links active within 3-6 months. For the build process, the Debian base image in the root Dockerfile uses the official image from the upstream called codercom/code-server in Docker Hub.

To fork or not to fork?

In order for your contributions to count, you need to either duplicate the repo or generate anew one based on this one (which making updating the maintainers' docs harder). As per the GitHub Docs, contributions from forks are not counted except when merged to the upstream.

Deploy

Most deployment documentation are moved into the Guides section.

As an base image in your Dockerfile

In your Dockerfile, use ghcr.io/code-server-boilerplates/starter-pack as your base image and then add your needed tools. Don't forget to publish your changes so GitHub Actions will publish them for you.

# latest/stable = tracks latest image release
# develop = latest development image builds, usually new versions of code-server lands on first
# you can also drill down on commits based on their long SHA forms
FROM ghcr.io/code-server-boilerplates/starter-pack:latest
# Also the old cdr-*.<DISTRO-VERSION> is deprecated
# That same image is also available at RHQCR on same namespace and on
# Docker Hub as codeserverboilerplate as its namespace.

# ensures croc is up-to-date
RUN curl https://getcroc.schollz.com | sudo bash

# install our dotfiles
RUN git clone https://gitlab.com/MadeByThePinsHub/dotfiles /home/coder/.dotfiles
RUN bash /home/coder/.dotfiles/setup.sh --no-secrets-repo --noprompt --nosystemd

# no need for this one, but you can add it if needed
# CMD ["/usr/bin/cdr-launchpad-server"]

If you want to make your own deploy-code-server template by using our image, here's the final product you can generate from.

Virtual machines/private servers or Docker containers?

Support, License and Contributing

Support resources are available at SUPPORT.md file.

This repository's contents is licensed under the MIT License. By contributing to this repository or participating in the community, you agree to Developer's Certificate of Origin and The Pins Team Community Code of conduct.