Skip to main content

DevOps Topics

PurposeOverview

The purpose of this document is to specify different devops topics from building, testing and deploying to developing in a container with docker.

Visual Studio Code

VS Code will be used for all major development. For the most up to date IDE, it is encouraged that users develop on the cloud development machine. The Remote-Containers and Remote-SSH extensions must be installed

Setup

  • On the local machine with VS Code, you will need to generate a keypair for Gitea

    ssh-keygen -t ed25519 -C "your_email@example.com"

     

  • Be sure to add it to the agent with
    eval "$(ssh-agent -s)"

    ssh-add <path-to-ssh-key>

    Once your key has been added to Gitea, you can develop either on a remote machine or your local machine.

On same local machine
  • On the local machine with VS Code, generate another keypair to put on the remote machine
    ssh-keygen -t ed25519 -C "your_email@example.com"

     

  • On the local machine add the keypair to your ssh agent
    eval "$(ssh-agent -s)"

    ssh-add <path-to-ssh-key>

     

  • On the remote machine, you can put the public key in your ~/.authorized_keys file
  • Open the remote location in VS Code
  • You should be prompted in the bottom left corner to reopen the project in a container
On a remote machine
  • Make sure docker is installed and the docker plugin is installed in VS Code
  • Open the folder in VS Code
  • You should be prompted in the bottom left corner to reopen the project in a container

Running the Code

Coming soon!

Running Tests

Coming soon!

Building the Docker Image

Coming soon!

Deploying the Docker Image

Coming soon!