Skip to content

Latest commit

 

History

History
103 lines (84 loc) · 2.76 KB

File metadata and controls

103 lines (84 loc) · 2.76 KB

Readme

This project provides an isolated environment to test the AI assistant Tabnine in Visual Studio Code.

Docker images are available on dockerhub:

Image Arch
wolkenschieber/code-tabnine:latest amd64

Docker

Run

Background

docker run --detach \
    -e PUID=1000 \
    -e PGID=1000 \
    -e TZ=Europe/Berlin \
    -p 3000:3000 \
    -v /config \
    --name code-tabnine \
    --security-opt seccomp=unconfined \
    --shm-size="1gb" \
    wolkenschieber/code-tabnine:latest

Diagnostic

docker run --rm -it \
    -e CODE_RUN_AS_ROOT=0 \
    -e CODE_DEBUG=1 \
    -e PUID=1000 \
    -e PGID=1000 \
    -e TZ=Europe/Berlin \
    -p 3000:3000 \
    --name code-tabnine \
    --security-opt seccomp=unconfined \
    --shm-size="1gb" \
    wolkenschieber/code-tabnine:latest \
    bash

Pull

docker pull wolkenschieber/code-tabnine:latest

Build

docker build --tag wolkenschieber/code-tabnine:latest .

Docker Compose

This project provides a sample docker-compose.yml file. The setup provides persistence.

Run

docker compose up -d

Pull

docker compose pull

Build

docker compose -f docker-compose.yml -f docker-compose.build.yml build

Proxy

The container follows default proxy environment variables:

environment:
    - "HTTP_PROXY=http://proxyhost:8080"
    - "HTTPS_PROXY=http://proxyhost:8080"      
    - "NO_PROXY=127.0.0.1"

Parameters

Parameter Function
-p 3000 Code-Tabnine desktop gui.
-e PUID=1000 for UserID
-e PGID=1000 for GroupID
-e TZ=Etc/UTC specify a timezone to use
-e CODE_DEBUG=1 run Code with program args --verbose
-e CODE_RUN_AS_ROOT=1 run Code as root
-v /config User's home directory in the container, stores program settings.
--security-opt seccomp=unconfined Permits syscalls of Code
--shm-size= This is needed for electron applications to function properly.

Links