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
24 changes: 14 additions & 10 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"name": "leeway",
"build": {
"context": "..",
"dockerfile": "../.gitpod.Dockerfile"
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
},
"ghcr.io/devcontainers/features/go:1": {
"version": "1.24.0"
},
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers-contrib/features/shfmt:1": {
"version": "3.10.0"
}
},
"runArgs": [
"--privileged",
"--security-opt=seccomp=unconfined",
"--network=host"
],
"containerUser": "root"
}
"postStartCommand": "./.devcontainer/install-leeway.sh"
}
27 changes: 27 additions & 0 deletions .devcontainer/install-leeway.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
# This script downloads and installs the latest version of leeway

set -euo pipefail

# Get the latest leeway version from GitHub API
LATEST_LEEWAY_VERSION=$(curl -s https://api.github.com/repos/gitpod-io/leeway/releases/latest | jq -r '.tag_name' | sed 's/^v//')

# Ensure we got a valid version
if [ -z "$LATEST_LEEWAY_VERSION" ]; then
echo "Error: Could not determine latest leeway version" >&2
exit 1
fi

echo "Installing leeway version: $LATEST_LEEWAY_VERSION"

# Download the latest leeway release
curl -L -o /tmp/leeway.tar.gz "https://github.com/gitpod-io/leeway/releases/download/v${LATEST_LEEWAY_VERSION}/leeway_Linux_x86_64.tar.gz"

# Extract the tarball
tar -xzf /tmp/leeway.tar.gz -C /tmp

# Install leeway to /usr/local/bin
sudo install -m 755 /tmp/leeway /usr/local/bin/

# Clean up temporary files
rm /tmp/leeway.tar.gz /tmp/leeway
52 changes: 0 additions & 52 deletions .gitpod.Dockerfile

This file was deleted.

20 changes: 0 additions & 20 deletions .gitpod.yml

This file was deleted.

Loading