Skip to content

Commit

Permalink
source call
Browse files Browse the repository at this point in the history
  • Loading branch information
lancejpollard committed Jan 18, 2024
1 parent 857cf71 commit 92b5878
Show file tree
Hide file tree
Showing 17 changed files with 450 additions and 203 deletions.
81 changes: 44 additions & 37 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ RUN apt-get upgrade -y -q

RUN apt-get -y install build-essential
RUN apt-get -y install curl

# RUN curl -s https://archive.swiftlang.xyz/install.sh | bash
# RUN apt install swiftlang
# RUN swift -v

RUN apt-get -y install exiftool
RUN apt-get -y install llvm-17
RUN apt-get -y install clang-17
Expand All @@ -31,7 +26,6 @@ RUN apt-get -y install imagemagick
RUN apt-get update -y -q
RUN apt-get upgrade -y -q

# RUN apt-get -y --fix-missing install software-properties-common
RUN apt-get -y install fontforge
RUN apt-get -y install pandoc
RUN apt-get -y install texlive
Expand All @@ -43,14 +37,22 @@ RUN apt-get -y install libreoffice
RUN apt-get -y install gnupg
RUN apt-get -y install gifsicle
RUN apt-get -y install python3
RUN apt-get -y install python3-pip
RUN apt-get -y install golang
RUN apt-get -y install python3-full
# RUN apt-get -y install python3-full
RUN apt-get -y install rustc
RUN apt-get -y install rustfmt
RUN apt-get -y install wget
RUN apt-get -y install gnupg
RUN apt-get -y install unoconv
RUN apt-get -y install ruby3.1
RUN apt-get -y install rubygems-integration
RUN apt-get -y install calibre
RUN apt-get -y install wabt
RUN apt-get -y install unar
RUN apt-get -y install default-jdk-headless
RUN apt-get -y install maven

# Install swift dependencies
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q -y install binutils
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q -y install git
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q -y install unzip
Expand Down Expand Up @@ -125,58 +127,63 @@ RUN source ~/.nvm/nvm.sh; \
nvm use --delete-prefix $NODE_VERSION; \
npm install -g pnpm

# Setup python virtual environment
RUN apt-get -y install python3.11-venv
RUN apt-get -y install software-properties-common
# RUN wget https://www.python.org/ftp/python/3.9.16/Python-3.9.16.tar.xz
# RUN tar -xf Python-3.9.16.tar.xz
# RUN cd Python-3.9.16 && ./configure --enable-optimizations --enable-shared \
# && make -j 6 \
# && make altinstall \
# RUN ldconfig Python-3.9.16
# RUN python3.9 --version
RUN mkdir -p /home/python
RUN python3 -m venv /home/python/venv
# RUN python3.9 -m venv /home/python/venv2

# Install python packages
RUN /home/python/venv/bin/pip install black
RUN /home/python/venv/bin/pip install "black[jupyter]"
RUN /home/python/venv/bin/pip install jill
# RUN /home/python/venv2/bin/pip install guesslang

# Install go packages
RUN go install github.com/klauspost/asmfmt/cmd/asmfmt@ef134b9cec704e2b7b336fb02153b7d1a58247da

# Install Julia
RUN /home/python/venv/bin/jill install --preferred-arch arm64 -c

# Install ruby formatter rubocop
RUN gem install rubocop

# Setup basic aliases
RUN rm /usr/bin/clang
RUN ln -s /usr/bin/clang-17 /usr/bin/clang
RUN ln -s /usr/bin/clang-format-17 /usr/bin/clang-format
RUN ln -s /usr/bin/llc-17 /usr/bin/llc
RUN ln -s /home/python/venv/bin/black /usr/bin/black
# RUN ln -s /home/python/venv2/bin/guesslang /usr/bin/guesslang

LABEL org.opencontainers.image.source https://github.com/termsurf/task
LABEL org.opencontainers.image.title "Task: Common Actions Interface"
LABEL org.opencontainers.image.description "A wrapper around a lot of tools to make it easier to use them all."
# Install swift formatter swift-format
RUN wget -O swift-format.509.0.0.tar.gz https://github.com/apple/swift-format/archive/refs/tags/509.0.0.tar.gz
RUN tar -xvzf swift-format.509.0.0.tar.gz
RUN cd swift-format-509.0.0 && swift build -c release \
&& cp /swift-format/.build/x86_64-unknown-linux-gnu/release/swift-format /usr/local/bin

RUN swift --version
RUN git clone https://github.com/apple/swift-format.git
RUN cd swift-format && git checkout "tags/509.0.0" && swift build -c release
# RUN ls -la /usr/bin
# RUN ls -s $(cd swift-format && swift build --show-bin-path -c release)/swift-format /usr/bin/swift-format
RUN cp /swift-format/.build/x86_64-unknown-linux-gnu/release/swift-format /usr/local/bin
# RUN swift-format -v
RUN apt-get -y install unoconv
RUN apt-get -y install ruby3.1
RUN apt-get -y install rubygems-integration
RUN gem install rubocop
# Install shell formatter shfmt
RUN go install mvdan.cc/sh/v3/cmd/[email protected]

RUN apt-get -y install calibre
RUN go install mvdan.cc/sh/v3/cmd/shfmt@latest
RUN wget https://github.com/facebook/ktfmt/archive/refs/tags/v0.46.tar.gz
RUN tar -xvzf v0.46.tar.gz
RUN apt-get -y install default-jdk-headless
RUN apt-get -y install maven
# Install kotlin formatter ktfmt
RUN wget -O ktfmt.v0.46.tar.gz https://github.com/facebook/ktfmt/archive/refs/tags/v0.46.tar.gz
RUN tar -xvzf ktfmt.v0.46.tar.gz
RUN cd ktfmt-0.46 && mvn -B install --file pom.xml && mv ./core/target/ktfmt-0.46-jar-with-dependencies.jar /usr/local/bin
RUN git clone --depth 1 https://github.com/gitGNU/objconv.git
RUN cd objconv/src && ./build.sh && mv objconv /usr/local/bin

RUN apt-get -y install wabt
RUN apt-get -y install unar

# RUN wget -O tika.3.0.0-BETA.tar.gz https://github.com/apache/tika/archive/refs/tags/3.0.0-BETA.tar.gz
# RUN tar -xvzf tika.3.0.0-BETA.tar.gz
# RUN cd tika.3.0.0-BETA && mvn clean install && ln -s tika-app/target/
# Install objconv
RUN wget -O obvconv.v2.50.tar.gz https://github.com/gitGNU/objconv/archive/refs/tags/v2.50.tar.gz
RUN tar -xvzf obvconv.v2.50.tar.gz
RUN cd objconv-2.50/src && ./build.sh && mv objconv /usr/local/bin

# https://github.com/yoeo/guesslang
# Label the container
LABEL org.opencontainers.image.source https://github.com/termsurf/task
LABEL org.opencontainers.image.title "Task: Common Actions Interface"
LABEL org.opencontainers.image.description "A wrapper around a lot of tools to make it easier to use them all."
152 changes: 0 additions & 152 deletions Dockerfile.swift

This file was deleted.

2 changes: 2 additions & 0 deletions code/node/call/compile.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const compile = {}
export { compile }
Loading

0 comments on commit 92b5878

Please sign in to comment.