[mod] add maven to code-serverx
This commit is contained in:
parent
2f83972ee3
commit
68db35223c
@ -1,5 +1,5 @@
|
|||||||
version: '3.2'
|
version: '3.2'
|
||||||
# redis for arm7
|
# quodatum basex
|
||||||
services:
|
services:
|
||||||
|
|
||||||
basex:
|
basex:
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# A code-server image with added
|
# A code-server image with added
|
||||||
# openjdk 11
|
# openjdk@11
|
||||||
# BaseX installed
|
# BaseX installed@9.7.3
|
||||||
# @author Andy Bunce
|
# @author Andy Bunce
|
||||||
|
# Bugs:
|
||||||
|
# hardcoded for amd64
|
||||||
|
|
||||||
# Main image
|
# Main image
|
||||||
FROM ghcr.io/linuxserver/code-server:4.3.0
|
FROM ghcr.io/linuxserver/code-server:4.5.1
|
||||||
|
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ARG BUILDARCH
|
ARG BUILDARCH
|
||||||
@ -29,13 +31,21 @@ ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
|
|||||||
RUN export JAVA_HOME
|
RUN export JAVA_HOME
|
||||||
|
|
||||||
# install BaseX to /basex/
|
# install BaseX to /basex/
|
||||||
RUN curl https://files.basex.org/releases/latest/BaseX972-20220508.135439.zip | jar xv && \
|
RUN curl https://files.basex.org/releases/9.7.3/BaseX973.zip | jar xv && \
|
||||||
chown -R $PUID:$PGID /basex && chmod a+x /basex/bin/* ;
|
chown -R $PUID:$PGID /basex && chmod a+x /basex/bin/* ;
|
||||||
ENV PATH=$PATH:/basex/bin
|
ENV PATH=$PATH:/basex/bin
|
||||||
|
|
||||||
# install docker cli only
|
# install docker cli only
|
||||||
RUN curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.12.tgz | tar zxv -C /tmp/ && \
|
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;
|
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
|
||||||
|
|
||||||
#RUN chmod 666 /var/run/docker.sock
|
#RUN chmod 666 /var/run/docker.sock
|
||||||
|
|
||||||
#RUN /usr/local/bin/code-server --install-extension vscode-basex-0.0.21.vsix
|
#RUN /usr/local/bin/code-server --install-extension vscode-basex-0.0.21.vsix
|
||||||
|
Loading…
Reference in New Issue
Block a user