Skip to content

Commit

Permalink
build: install git-lfs in the dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
graugans committed Apr 13, 2024
1 parent 34ebfbc commit 65b2261
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/bin/bash

# install missing packages
sudo apt-get update &&
sudo apt-get install git-lfs \
python3-pip \
python3-venv \
shfmt \
shellcheck &&
sudo apt-get clean &&
sudo rm -rf /var/lib/apt/lists/*

# Fetch git large files
git lfs fetch --all

# Install Python packages
export PATH=~/.local/bin:$PATH
pip3 install --break-system-packages --upgrade pip
pip3 install --break-system-packages -r requirements.txt

# Go CI Lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.0
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.54.0

0 comments on commit 65b2261

Please sign in to comment.