Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting started - installation: provide instructions for container in Github codespaces #1436

Open
radeksvarz opened this issue Feb 4, 2025 · 0 comments

Comments

@radeksvarz
Copy link

Current instructions inform about Docker: https://book.getfoundry.sh/getting-started/installation#using-foundry-with-docker

However when such docker image is used in Github codespaces devcontainer configuration, the git is not available.

Example devcontainer (with git issue):

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
	"name": "Foundry Development Environment",
	// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
	"image": "ghcr.io/foundry-rs/foundry:latest",

	// Features to add to the dev container. More info: https://containers.dev/features.
	// "features": {},
	
	// Use 'forwardPorts' to make a list of ports inside the container available locally.
	// "forwardPorts": [],

	// Use 'postCreateCommand' to run commands after the container is created.
	"postCreateCommand": "forge install",

	// Configure tool-specific properties.
	"customizations": {
		"vscode": {
			"extensions": [
			  "JuanBlanco.solidity" // Solidity extension for VS Code
			  // Add other extensions as needed
			]
		  }		
	}

	// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
	// "remoteUser": "root"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant