[add] vscode-bmy
This commit is contained in:
parent
007977ae48
commit
a9540ec1a1
14 changed files with 137 additions and 1 deletions
2
code-bmy/.dockerignore
Normal file
2
code-bmy/.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# docker ignore
|
||||||
|
custom
|
58
code-bmy/Dockerfile
Normal file
58
code-bmy/Dockerfile
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
# A code-server image with added
|
||||||
|
# openjdk@11
|
||||||
|
# BaseX installed@9.7.3
|
||||||
|
# @author Andy Bunce
|
||||||
|
# Bugs:
|
||||||
|
# hardcoded for amd64
|
||||||
|
|
||||||
|
# Main image
|
||||||
|
FROM ghcr.io/linuxserver/code-server:4.5.1
|
||||||
|
|
||||||
|
ARG TARGETARCH
|
||||||
|
ARG BUILDARCH
|
||||||
|
RUN echo "I'm building vscode-basex for ${BUILDARCH} on ${TARGETARCH} User: ${PUID}"
|
||||||
|
|
||||||
|
LABEL author="Andy Bunce"
|
||||||
|
LABEL company="Quodatum Ltd"
|
||||||
|
LABEL maintainer="quodatum@gmail.com"
|
||||||
|
|
||||||
|
# Install OpenJDK-11
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y openjdk-11-jdk-headless;
|
||||||
|
|
||||||
|
# Fix certificate issues
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install ca-certificates-java && \
|
||||||
|
apt-get clean && \
|
||||||
|
update-ca-certificates -f;
|
||||||
|
|
||||||
|
# Setup JAVA_HOME -- useful for docker commandline
|
||||||
|
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
|
||||||
|
RUN export JAVA_HOME
|
||||||
|
|
||||||
|
# install BaseX to /basex/
|
||||||
|
RUN curl https://files.basex.org/releases/9.5.1/BaseX951.zip | jar xv && \
|
||||||
|
chown -R $PUID:$PGID /basex && chmod a+x /basex/bin/* ;
|
||||||
|
ENV PATH=$PATH:/basex/bin
|
||||||
|
|
||||||
|
# install docker cli only
|
||||||
|
RUN curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.17.tgz | tar zxv -C /tmp/ && \
|
||||||
|
cp /tmp/docker/docker /usr/local/bin && rm -r /tmp/docker;
|
||||||
|
|
||||||
|
# install maven
|
||||||
|
RUN curl https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz | \
|
||||||
|
tar zxv -C /usr/local/bin && \
|
||||||
|
cd /usr/local/bin && \
|
||||||
|
ln -s apache-maven-3.8.6 maven
|
||||||
|
ENV PATH=$PATH:/usr/local/bin/maven/bin
|
||||||
|
|
||||||
|
# install node+npm LTS see https://www.how2shout.com/linux/how-to-install-node-js-npm-on-debian-11-bullseye/
|
||||||
|
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
|
||||||
|
apt install nodejs
|
||||||
|
|
||||||
|
#RUN chmod 666 /var/run/docker.sock
|
||||||
|
|
||||||
|
#RUN /usr/local/bin/code-server --install-extension vscode-basex-0.0.21.vsix
|
||||||
|
|
||||||
|
# ports and volumes
|
||||||
|
EXPOSE 8443
|
3
code-bmy/config/.gitignore
vendored
Normal file
3
code-bmy/config/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# .gitignore nothing
|
||||||
|
###################
|
||||||
|
|
BIN
code-bmy/config/.vscode/buenon.scratchpads-0.0.7.vsix
vendored
Normal file
BIN
code-bmy/config/.vscode/buenon.scratchpads-0.0.7.vsix
vendored
Normal file
Binary file not shown.
BIN
code-bmy/config/.vscode/deltaxml.xslt-xpath-1.1.0.vsix
vendored
Normal file
BIN
code-bmy/config/.vscode/deltaxml.xslt-xpath-1.1.0.vsix
vendored
Normal file
Binary file not shown.
11
code-bmy/config/.vscode/extensions.json
vendored
Normal file
11
code-bmy/config/.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"ms-azuretools.vscode-docker",
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"eamodio.gitlens",
|
||||||
|
"kelvin.vscode-sshfs",
|
||||||
|
"alefragnani.project-manager",
|
||||||
|
"johnpapa.vscode-peacock",
|
||||||
|
"nonoroazoro.syncing"
|
||||||
|
]
|
||||||
|
}
|
BIN
code-bmy/config/.vscode/raffazizzi.sxml-0.2.2.vsix
vendored
Normal file
BIN
code-bmy/config/.vscode/raffazizzi.sxml-0.2.2.vsix
vendored
Normal file
Binary file not shown.
BIN
code-bmy/config/.vscode/vscode-basex-0.0.47.vsix
vendored
Normal file
BIN
code-bmy/config/.vscode/vscode-basex-0.0.47.vsix
vendored
Normal file
Binary file not shown.
BIN
code-bmy/config/.vscode/w3c-ebnf-0.2.0.vsix
vendored
Normal file
BIN
code-bmy/config/.vscode/w3c-ebnf-0.2.0.vsix
vendored
Normal file
Binary file not shown.
25
code-bmy/config/install.sh
Executable file
25
code-bmy/config/install.sh
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
# setup
|
||||||
|
|
||||||
|
|
||||||
|
#install extensions located in /exts/ folder
|
||||||
|
# code-server@4.0.2 omv
|
||||||
|
CODE_SERVER="/app/code-server/bin/code-server"
|
||||||
|
|
||||||
|
# 4.0.1 n2-plus
|
||||||
|
#CODE_SERVER="/usr/local/bin/code-server"
|
||||||
|
|
||||||
|
for FILE in .vscode/*.vsix
|
||||||
|
do
|
||||||
|
$CODE_SERVER --install-extension $FILE
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# pull useful projects
|
||||||
|
cd /config/workspace
|
||||||
|
|
||||||
|
git clone https://git.quodatum.duckdns.org/apb/vscode-basex.git
|
||||||
|
git clone https://git.quodatum.duckdns.org/apb/thedocks
|
||||||
|
git clone https://github.com/Quodatum/xqlint.git
|
||||||
|
git clone https://git.quodatum.duckdns.org/apb/file-samples.git
|
||||||
|
|
||||||
|
|
BIN
code-bmy/custom/saxon-he-10.8.jar
Normal file
BIN
code-bmy/custom/saxon-he-10.8.jar
Normal file
Binary file not shown.
20
code-bmy/docker-compose.yml
Normal file
20
code-bmy/docker-compose.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
vscode-basex:
|
||||||
|
container_name: vscode-bmy
|
||||||
|
image: vscode-bmy
|
||||||
|
build: .
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=Europe/London
|
||||||
|
- SUDO_PASSWORD=password #optional
|
||||||
|
- SUDO_PASSWORD_HASH= #optional
|
||||||
|
volumes:
|
||||||
|
- ./config:/config
|
||||||
|
- ./custom:/basex/lib/custom
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
ports:
|
||||||
|
- 8444:8443
|
||||||
|
restart: unless-stopped
|
15
code-bmy/readme.md
Normal file
15
code-bmy/readme.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# A BaseX development environment for vscode
|
||||||
|
|
||||||
|
## docker build
|
||||||
|
```
|
||||||
|
docker build --tag=vscode-basex .
|
||||||
|
```
|
||||||
|
## compose
|
||||||
|
```
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
## Includes
|
||||||
|
* openjdk-11-jdk-headless
|
||||||
|
* BaseX
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
# code-server
|
# code-bmy
|
||||||
|
|
||||||
|
Docker vscode build for bloomsbury
|
||||||
|
|
||||||
Installs `code-server:version-v3.9.1` with JRE and BaseX.
|
Installs `code-server:version-v3.9.1` with JRE and BaseX.
|
Loading…
Add table
Reference in a new issue