From 129221b08695031af93ae4f6d33afa90acb84806 Mon Sep 17 00:00:00 2001 From: Oleg Sheynin Date: Fri, 29 Nov 2024 22:06:15 -0500 Subject: [PATCH] code-server-plus is added --- tools/code-server-plus/Dockerfile | 49 +++++++ tools/code-server-plus/build.sh | 2 + tools/code-server-plus/docker-compose.yml | 15 ++ tools/code-server-plus/requirements.txt | 162 ++++++++++++++++++++++ 4 files changed, 228 insertions(+) create mode 100644 tools/code-server-plus/Dockerfile create mode 100755 tools/code-server-plus/build.sh create mode 100644 tools/code-server-plus/docker-compose.yml create mode 100644 tools/code-server-plus/requirements.txt diff --git a/tools/code-server-plus/Dockerfile b/tools/code-server-plus/Dockerfile new file mode 100644 index 0000000..f16b045 --- /dev/null +++ b/tools/code-server-plus/Dockerfile @@ -0,0 +1,49 @@ +FROM codercom/code-server:latest + +ARG FROM_DIR=./ +USER root +# Update the package list and install required packages +RUN sudo apt-get update && apt-get install -y \ + apt-utils \ + rsync \ + openssh-client \ + software-properties-common \ + build-essential \ + zlib1g-dev \ + libncurses5-dev \ + libgdbm-dev \ + libnss3-dev \ + libssl-dev \ + libreadline-dev \ + libffi-dev \ + libsqlite3-dev \ + libbz2-dev \ + curl \ + wget \ + jq + +# ---------------------------------------- +RUN mkdir -p /tmp +WORKDIR /tmp +RUN wget https://www.python.org/ftp/python/3.12.5/Python-3.12.5.tgz + +RUN tar -xf Python-3.12.5.tgz +WORKDIR /tmp/Python-3.12.5 + +RUN ./configure --enable-optimizations --prefix=/usr +RUN make -j$(nproc) +RUN make altinstall + +# ---------------------------------------- +RUN rm /usr/bin/python3 +RUN ln -s /usr/bin/python3.12 /usr/bin/python3 + +RUN ln -snf /usr/bin/pip3.12 /usr/bin/pip + +COPY ./requirements.txt / +RUN pip install --upgrade pip --root-user-action=ignore +RUN pip install -r /requirements.txt --root-user-action=ignore + +SHELL ["/bin/bash", "-c"] + +WORKDIR /home/coder diff --git a/tools/code-server-plus/build.sh b/tools/code-server-plus/build.sh new file mode 100755 index 0000000..876a8a4 --- /dev/null +++ b/tools/code-server-plus/build.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker build -t code-server-plus -t code-server-plus:latest -f Dockerfile . diff --git a/tools/code-server-plus/docker-compose.yml b/tools/code-server-plus/docker-compose.yml new file mode 100644 index 0000000..841ef44 --- /dev/null +++ b/tools/code-server-plus/docker-compose.yml @@ -0,0 +1,15 @@ +version: "3.8" +services: + code-server: + container_name: code-server-plus + image: code-server-plus:latest + restart: unless-stopped + user: 1001:1001 + volumes: + - /opt/code-server/.local:/home/coder/.local + - /opt/code-server/.config:/home/coder/.config + - /opt/code-server/projects:/home/coder/project + environment: + - DOCKER_USER=cvtt + ports: + - "8080:8080" diff --git a/tools/code-server-plus/requirements.txt b/tools/code-server-plus/requirements.txt new file mode 100644 index 0000000..748e688 --- /dev/null +++ b/tools/code-server-plus/requirements.txt @@ -0,0 +1,162 @@ +aiohttp>=3.7.4.post0 +appdirs>=1.4.4 +asn1crypto>=0.24.0 +astroid>=2.8.0 +async-timeout>=3.0.1 +attrs>=22.1.0 +Automat>=0.8.0 +backports.entry-points-selectable>=1.1.0 +bcrypt>=4.0.0 +black>=22.6.0 +blinker>=1.4 +boto3>=1.24.43 +botocore>=1.27.43 +cachetools>=4.1.1 +certifi>=2019.11.28 +cffi>=1.15.0 +chardet>=4.0.0 +charset-normalizer>=2.0.7 +ciso8601>=2.2.0 +click>=8.1.3 +coloredlogs>=15.0.1 +configobj>=5.0.6 +constantly>=15.1.0 +cryptography>=2.8 +dataclasses-json>=0.5.1 +distlib>=0.3.3 +distro>=1.4.0 +docker>=5.0.3 +entrypoints>=0.3 +eventkit>=0.8.9 +ExportCsvToInflux>=0.2.2 +filelock>=3.3.2 +google-api-core>=1.22.2 +google-api-python-client>=2.22.0 +google-auth>=1.21.1 +google-auth-httplib2>=0.1.0 +google-auth-oauthlib>=0.4.6 +googleapis-common-protos>=1.52.0 +greenlet>=1.1.2 +hiredis>=1.1.0 +hjson>=3.0.2 +httplib2>=0.18.1 +humanfriendly>=10.0 +hyperlink>=19.0.0 +ib-insync>=0.9.70 +ibapi +idna>=2.8 +importlab>=0.7 +importlib-metadata>=1.5.0 +incremental>=16.10.1 +influxdb>=5.3.1 +influxdb-client>=1.29.1 +isort>=5.5.1 +jedi>=0.18.0 +Jinja2>=2.10.1 +jmespath>=1.0.1 +json-cfg>=0.4.2 +jsonpatch>=1.22 +jsonpointer>=2.0 +jsonschema>=3.2.0 +keyring>=18.0.1 +kwonly-args>=1.0.10 +launchpadlib>=1.10.13 +lazr.restfulclient>=0.14.2 +lazr.uri>=1.0.3 +lazy-object-proxy>=1.4.3 +libcst>=0.4.7 +lxml>=4.6.3 +lxml-stubs>=0.2.0 +MarkupSafe>=1.1.0 +marshmallow>=3.7.0 +marshmallow-enum>=1.5.1 +mccabe>=0.6.1 +more-itertools>=4.2.0 +msgpack>=0.6.1 +multidict>=4.7.6 +multitasking>=0.0.10 +mypy>=0.961 +mypy-extensions>=0.4.3 +nest-asyncio>=1.5.5 +networkx>=2.8.3 +ninja>=1.10.2.3 +numpy #>=1.19.1 +oauthlib>=3.1.0 +pandas>=1.3.3 +pandas-stubs>=1.2.0.17 +paramiko>=2.11.0 +parso>=0.8.1 +pathspec>=0.9.0 +pbr>=5.6.0 +pexpect>=4.6.0 +platformdirs>=2.3.0 +protobuf>=3.13.0 +ptyprocess>=0.7.0 +pyasn1>=0.4.2 +pyasn1-modules>=0.2.1 +pycparser>=2.20 +pydot>=1.4.2 +PyHamcrest>=1.9.0 +PyJWT>=1.7.1 +pylint>=2.11.1 +pymongo>=4.0.1 +PyNaCl>=1.5.0 +pynvim>=0.4.1 +pyOpenSSL>=19.0.0 +pyparsing>=3.0.9 +pyrsistent>=0.15.5 +pyserial>=3.4 +python-dateutil>=2.8.2 +python-rapidjson>=0.9.1 +pytz>=2020.1 +PyYAML>=5.3.1 +redis>=5.0.8 +regex>=2021.11.10 +requests>=2.27.1 +requests-oauthlib>=1.3.0 +requests-unixsocket>=0.2.0 +rsa>=4.6 +Rx>=3.2.0 +s3transfer>=0.6.0 +SecretStorage>=2.3.1 +service-identity>=18.1.0 +simplefix>=1.0.14 +simplejson>=3.16.0 +six>=1.14.0 +slackclient>=2.9.3 +sortedcontainers>=2.4.0 +SQLAlchemy>=1.4.39 +ssh-import-id>=5.10 +stringcase>=1.2.0 +tabulate>=0.8.10 +termcolor>=1.1.0 +testresources>=2.0.1 +toml>=0.10.2 +tomli>=2.0.1 +typed-ast>=1.5.1 +types-chardet>=4.0.1 +types-cryptography>=3.3.23 +types-paramiko>=2.11.6 +types-PyMySQL>=1.0.18 +types-python-dateutil>=2.8.0 +types-pytz>=2022.1.1 +types-redis>=4.2.6 +types-requests>=2.25.7 +types-simplejson>=3.17.0 +types-termcolor>=1.1.1 +typing-inspect>=0.6.0 +typing_extensions>=4.3.0 +uritemplate>=3.0.1 +urllib3>=1.26.9 +uvloop>=0.14.0 +virtualenv>=20.9.0 +wadllib>=1.3.3 +websocket-client>=0.53.0 +websockets>=8.1 +wrapt>=1.12.1 +yapf>=0.30.0 +yarl>=1.5.1 +yfinance>=0.1.70 +zipp>=1.0.0 +zope.interface>=5.4.0 +