-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ruby frontend Signed-off-by: Prabhu Subramanian <[email protected]> * Tag rails routes Signed-off-by: Prabhu Subramanian <[email protected]> * Tag sinatra routes Signed-off-by: Prabhu Subramanian <[email protected]> * Update typescript Signed-off-by: Prabhu Subramanian <[email protected]> * Use Ruby 3.4.1 in CI Signed-off-by: Prabhu Subramanian <[email protected]> --------- Signed-off-by: Prabhu Subramanian <[email protected]>
- Loading branch information
Showing
25 changed files
with
207 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,15 @@ LABEL maintainer="appthreat" \ | |
org.opencontainers.image.authors="Team AppThreat <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/appthreat/atom" \ | ||
org.opencontainers.image.url="https://github.com/appthreat/atom" \ | ||
org.opencontainers.image.version="2.0.x" \ | ||
org.opencontainers.image.version="2.1.x" \ | ||
org.opencontainers.image.vendor="appthreat" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.title="atom" \ | ||
org.opencontainers.image.description="Container image for AppThreat atom" \ | ||
org.opencontainers.docker.cmd="docker run --rm -v /tmp:/tmp -v $HOME:$HOME -v $(pwd):/app:rw -it ghcr.io/appthreat/atom atom -o /app/app.atom -l java /app" | ||
|
||
ARG MAVEN_VERSION=3.9.9 | ||
ARG RUBY_VERSION=3.4.0 | ||
|
||
ENV MAVEN_VERSION=$MAVEN_VERSION \ | ||
MAVEN_HOME="/opt/maven/${MAVEN_VERSION}" \ | ||
|
@@ -21,9 +22,15 @@ ENV MAVEN_VERSION=$MAVEN_VERSION \ | |
PYTHONUNBUFFERED=1 \ | ||
PYTHONIOENCODING="utf-8" \ | ||
CDXGEN_NO_BANNER=true \ | ||
COMPOSER_ALLOW_SUPERUSER=1 | ||
COMPOSER_ALLOW_SUPERUSER=1 \ | ||
RUBY_VERSION=$RUBY_VERSION \ | ||
MALLOC_CONF="dirty_decay_ms:2000,narenas:2,background_thread:true" \ | ||
RUBY_CONFIGURE_OPTS="--with-jemalloc --enable-yjit" \ | ||
RUBYOPT="--yjit" \ | ||
RUBY_BUILD_BUILD_PATH="/tmp/rbenv" \ | ||
RUBY_BUILD_HTTP_CLIENT=curl | ||
|
||
ENV PATH=/opt/bin:/opt/vendor/bin:${PATH}:${MAVEN_HOME}/bin:/usr/local/bin/:/root/.local/bin:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools: | ||
ENV PATH=/opt/bin:/opt/vendor/bin:${PATH}:${MAVEN_HOME}/bin:/usr/local/bin/:/root/.local/bin:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:/root/.rbenv/bin: | ||
|
||
WORKDIR /opt | ||
|
||
|
@@ -43,15 +50,29 @@ RUN set -e; \ | |
&& microdnf install -y gcc git-core php php-cli php-curl php-zip php-bcmath php-json php-pear php-mbstring php-devel make \ | ||
python3.12 python3.12-devel python3.12-pip \ | ||
wget bash glibc-common glibc-all-langpacks java-21-openjdk-headless \ | ||
pcre2 findutils which tar gzip zip unzip sudo nodejs \ | ||
openssl-devel libffi-devel readline-devel libyaml zlib-devel ncurses ncurses-devel \ | ||
pcre2 findutils which tar gzip zip unzip sudo nodejs rust \ | ||
&& microdnf install -y epel-release \ | ||
&& microdnf install --enablerepo=crb -y libyaml-devel jemalloc-devel \ | ||
&& git clone https://github.com/rbenv/rbenv.git --depth=1 ~/.rbenv \ | ||
&& echo 'export PATH="/root/.rbenv/bin:$PATH"' >> ~/.bashrc \ | ||
&& echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc \ | ||
&& source ~/.bashrc \ | ||
&& mkdir -p "$(rbenv root)/plugins" \ | ||
&& git clone https://github.com/rbenv/ruby-build.git --depth=1 "$(rbenv root)/plugins/ruby-build" \ | ||
&& rbenv install ${RUBY_VERSION} \ | ||
&& rbenv global ${RUBY_VERSION} \ | ||
&& ruby --version \ | ||
&& which ruby \ | ||
&& rm -rf /root/.rbenv/cache $RUBY_BUILD_BUILD_PATH \ | ||
&& alternatives --install /usr/bin/python3 python /usr/bin/python3.12 10 \ | ||
&& alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 10 \ | ||
&& python3 --version \ | ||
&& node --version \ | ||
&& python3 -m pip install --upgrade pip poetry atom-tools \ | ||
&& curl -s "https://get.sdkman.io" | bash \ | ||
&& source "$HOME/.sdkman/bin/sdkman-init.sh" \ | ||
&& echo -e "sdkman_auto_answer=true\nsdkman_selfupdate_feature=false\nsdkman_auto_env=true\nsdkman_curl_connect_timeout=20\nsdkman_curl_max_time=0" >> $HOME/.sdkman/etc/config \ | ||
&& source "/root/.sdkman/bin/sdkman-init.sh" \ | ||
&& echo -e "sdkman_auto_answer=true\nsdkman_selfupdate_feature=false\nsdkman_auto_env=true\nsdkman_curl_connect_timeout=20\nsdkman_curl_max_time=0" >> /root/.sdkman/etc/config \ | ||
&& sdk install maven $MAVEN_VERSION \ | ||
&& sdk offline enable \ | ||
&& mv /root/.sdkman/candidates/* /opt/ \ | ||
|
@@ -65,7 +86,7 @@ RUN set -e; \ | |
&& /opt/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager 'platform-tools' --sdk_root=/opt/android-sdk-linux \ | ||
&& /opt/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager 'platforms;android-34' --sdk_root=/opt/android-sdk-linux \ | ||
&& /opt/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager 'build-tools;34.0.0' --sdk_root=/opt/android-sdk-linux \ | ||
&& sudo npm install -g @cyclonedx/cdxgen --omit=optional \ | ||
&& npm install -g @cyclonedx/cdxgen --omit=optional \ | ||
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php \ | ||
&& mv composer.phar /usr/local/bin/composer \ | ||
&& curl -LO https://raw.githubusercontent.com/AppThreat/chen/main/platform/frontends/php2atom/composer.lock \ | ||
|
@@ -79,11 +100,12 @@ COPY ./wrapper . | |
RUN unzip -q atom.zip \ | ||
&& composer update --no-progress --prefer-dist --ignore-platform-reqs \ | ||
&& cd /opt/nodejs && npm install --only=production && cd /opt \ | ||
&& sudo npm install -g /opt/nodejs \ | ||
&& npm install -g /opt/nodejs \ | ||
&& rm -rf atom.zip composer.json composer.lock composer-setup.php /usr/local/bin/atom \ | ||
&& /opt/bin/atom --help \ | ||
&& which astgen \ | ||
&& which phpastgen \ | ||
&& which rbastgen \ | ||
&& microdnf clean all | ||
|
||
CMD ["/opt/bin/atom"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ LABEL maintainer="appthreat" \ | |
org.opencontainers.image.authors="Team AppThreat <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/appthreat/atom" \ | ||
org.opencontainers.image.url="https://github.com/appthreat/atom" \ | ||
org.opencontainers.image.version="2.0.x" \ | ||
org.opencontainers.image.version="2.1.x" \ | ||
org.opencontainers.image.vendor="appthreat" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.title="atom" \ | ||
|
@@ -37,7 +37,7 @@ RUN set -e; \ | |
;; \ | ||
*) echo >&2 "error: unsupported architecture: '$ARCH_NAME'"; exit 1 ;; \ | ||
esac; \ | ||
zypper --non-interactive install -l --no-recommends php8 php8-cli php8-curl php8-zip php8-bcmath php8-pear php8-mbstring php8-devel \ | ||
zypper --non-interactive install -l --no-recommends php8 php8-cli php8-curl php8-zip php8-bcmath php8-pear php8-mbstring php8-devel ruby ruby-devel \ | ||
&& source /root/.nvm/nvm.sh \ | ||
&& python3 --version \ | ||
&& source /root/.nvm/nvm.sh \ | ||
|
@@ -72,6 +72,7 @@ RUN unzip -q atom.zip \ | |
&& /opt/bin/atom --help \ | ||
&& which astgen \ | ||
&& which phpastgen \ | ||
&& which rbastgen \ | ||
&& zypper clean -a | ||
|
||
CMD ["/opt/bin/atom"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.10.5 | ||
sbt.version=1.10.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") | ||
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.10.4") | ||
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3") | ||
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.2.4") | ||
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.2.5") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.