Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Snakemake Tutorial",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"onCreateCommand": "bash .devcontainer/setup.sh",
"customizations": {
"vscode": {
"extensions": [
"snakemake.snakemake-lang",
"ms-toolsai.jupyter"
]
}
},
"remoteUser": "vscode"
}
32 changes: 32 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
set -e

echo "Setting up Snakemake tutorial environment..."

# Clean up workspace
rm -f Dockerfile
echo "*" > .gitignore

# Install pixi
curl -fsSL https://pixi.sh/install.sh | PIXI_NO_PATH_UPDATE=1 bash
export PATH="$HOME/.pixi/bin:$PATH"
echo 'export PATH="$HOME/.pixi/bin:$PATH"' >> ~/.bashrc

# Create and activate the tutorial environment, conda is needed for --sdm conda
[ -f pixi.toml ] || pixi init --import environment.yaml
pixi add conda
printf 'eval "$(pixi shell-hook --manifest-path %q)"\n' "$PWD/pixi.toml" >> ~/.bashrc

# Replace the default Codespaces welcome message shown in the first terminal
NOTICE=/usr/local/etc/vscode-dev-containers/first-run-notice.txt
sudo mkdir -p "$(dirname "$NOTICE")"
sudo tee "$NOTICE" > /dev/null <<'MSG'
👋 Welcome to the Snakemake tutorial!

Your Codespace has been initialized with all required software.
Now you can start with the basic tutorial:
https://snakemake.readthedocs.io/en/stable/tutorial/basics.html

MSG

echo "Setup complete!"
19 changes: 0 additions & 19 deletions .gitpod.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/snakemake/snakemake-tutorial-data)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/snakemake/snakemake-tutorial-data)

# Example data for the Snakemake tutorial

Expand Down
Loading