Update devcontainer and Docker setup with new LLM API configuration
Update devcontainer.json to set terminal shell and add empty features object Update docker-compose.yml to change port mapping and add environment variable for LOCAL_LLM_API Add new OpenCode configuration files for LLM settings and instructions Update Dockerfile to install additional tools and dependencies including Go, Rust, Node.js, and Python packages Modify docker-entrypoint.sh to handle MCP server initialization and shell configuration Update LM client readme to reflect new API endpoint configuration
This commit is contained in:
33
tools/install_latest_go.sh
Normal file
33
tools/install_latest_go.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL="https://go.dev/dl/"
|
||||
|
||||
OS=$(uname -a | awk '{print $1}')
|
||||
ARCH=$(uname -m)
|
||||
|
||||
if [[ "$ARCH" == "x86_64" ]] ; then
|
||||
ARCH="amd64"
|
||||
fi
|
||||
|
||||
if [[ "$ARCH" == "aarch64" ]] ; then
|
||||
ARCH="arm64"
|
||||
fi
|
||||
|
||||
GOFILE=$(curl "$URL" \
|
||||
| grep 'class="download"' \
|
||||
| grep "\.tar\.gz" \
|
||||
| sed -E 's@^.*/dl/(go[1-9].+\.tar\.gz)".*$@\1@' \
|
||||
| grep -i "$OS" \
|
||||
| grep -i "$ARCH" \
|
||||
| head -1)
|
||||
|
||||
GOURL=$(curl "${URL}${GOFILE}" \
|
||||
| sed -E 's@^.*href="(.*\.tar\.gz)".*$@\1@')
|
||||
|
||||
echo "Install GO from : $GOURL" 1>&2
|
||||
|
||||
mkdir -p /usr/local
|
||||
cd /usr/local
|
||||
|
||||
curl "$GOURL" \
|
||||
| tar zxf -
|
||||
Reference in New Issue
Block a user