Skip to content

CrazySailing/XMLDevourer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XMLDevourer

Tests

Aim

This project aims to implement an XML reader that prints basic information on the XML file. The project should be implemented with the best CI/CD setup possible and will explore the workings of GitHub actions (through automatic builds and test) and Docker deployment. Also used as a tutorial to GitHub and it's features.

Installation

This project uses Docker as the recomended running enviroment. Provided in Dockerfile is a Docker definition of a C# SDK enviroment with usefull functionallity. To develop the project, use the setup below.

  1. Pull the repo to a suitable location on your computer.
  2. Make sure you have docker installed on your computer (more info: Get Docker).

Via CLI

  1. Build the Docker image by navigating to the Repo's root folder and run docker build -t xmldevourer:dev -f Dockerfile .
  2. Run the container and mount your code into the container by running docker run -it --mount type=bind,source="$(pwd)",target=/app xmldevourer:dev

Using VSCode

  1. Install Remote Development and Docker extentions.
  2. Open the remote menu. Choose Add Remote Development Configuration Files. Add the following to the .devcontainer/devcontainer.json:
{
	"name": "Existing Dockerfile",

	// Sets the run context to one level up instead of the .devcontainer folder.
	"context": "..",

	// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
	"dockerFile": "../Dockerfile",

	// Set *default* container specific settings.json values on container create.
	"settings": { 
		"terminal.integrated.shell.linux": null
	},

	// Add the IDs of extensions you want installed when the container is created.
	"extensions": [], 

    // Changes mountpoint of the folder
	"workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind,consistency=cached",
	"workspaceFolder": "/app"
}
  1. Open the remote menu. Choose Reopen in Container.
  2. Develop! 🍾 🎉

Using other IDE

Different IDE's work differently. The important part is just that your IDE uses the correct Docker image/Dockerfile and mounts your code through a bind mount to /app in the container.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors