-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marcin Przepiorowski
committed
Sep 18, 2024
1 parent
b8ea43f
commit b664a45
Showing
3 changed files
with
140 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y libpar-packer-perl \ | ||
&& apt-get install -y libjson-pp-perl \ | ||
&& apt-get install -y libdate-manip-perl \ | ||
&& apt-get install -y libdatetime-format-dateparse-perl \ | ||
&& apt-get install -y libcrypt-cbc-perl \ | ||
&& apt-get install -y libcrypt-blowfish-perl \ | ||
&& apt-get install -y libtext-csv-perl \ | ||
&& apt-get install -y libtry-tiny-perl \ | ||
&& apt-get install -y libparse-http-useragent-perl \ | ||
&& apt-get install -y libnet-ssleay-perl \ | ||
&& apt-get install -y libio-socket-ssl-perl \ | ||
&& apt-get install -y libfilter-perl \ | ||
&& apt-get install -y libterm-readkey-perl \ | ||
&& apt-get install -y cpanminus \ | ||
&& apt-get install -y make \ | ||
&& apt-get install -y gcc \ | ||
&& apt-get install -y libssl-dev \ | ||
&& apt-get install -y libwww-perl \ | ||
&& cpanm DateTime::Event::Cron::Quartz \ | ||
&& cpanm Log::Syslog::[email protected] \ | ||
&& cpanm Filter::Crypto::Decrypt | ||
|
||
RUN mkdir -p /github/workspace | ||
RUN mkdir -p /github/home | ||
RUN mkdir -p /github/workflow | ||
COPY entrypoint.sh /entrypoint.sh | ||
WORKDIR /github/workspace | ||
RUN chmod +x /entrypoint.sh | ||
|
||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
|
||
export DELPHIX_OUTPUT=/github/workspace/dxtoolkit2 | ||
mkdir $DELPHIX_OUTPUT | ||
|
||
cd /github/workspace/lib | ||
mv dbutils.pm dbutils.orig.pm | ||
cat dbutils.orig.pm | sed -e "s/put your encryption key here/${INPUT_ENCKEY}/" > dbutils.pm | ||
ls -l dbutils* | ||
|
||
cd /github/workspace/bin | ||
pp -u -I /github/workspace/lib -l /usr/lib/x86_64-linux-gnu/libcrypto.so.3 -l /usr/lib/x86_64-linux-gnu/libssl.so.3 -M Text::CSV_PP -M List::MoreUtils::PP -M Crypt::Blowfish \ | ||
-F Crypto=dbutils\.pm$ -M Filter::Crypto::Decrypt -o $DELPHIX_OUTPUT/runner `ls dx_*.pl | xargs` | ||
|
||
cd $DELPHIX_OUTPUT | ||
|
||
echo #!/bin/bash > install.sh | ||
echo LIST_OF_SCRIPTS=\( >> install.sh | ||
|
||
for i in /github/workspace/bin/dx_*.pl ; do | ||
name=`basename -s .pl $i`; | ||
echo $name >> install.sh | ||
done | ||
|
||
echo \) >> install.sh | ||
echo >> install.sh | ||
echo >> install.sh | ||
echo for i in \"\$\{LIST_OF_SCRIPTS\[\@\]\}\" >> install.sh | ||
echo do >> install.sh | ||
echo echo \$i >> install.sh | ||
echo ln -sf runner \$i >> install.sh | ||
echo done >> install.sh | ||
|
||
# for i in /github/workspace/bin/dx_*.pl ; do name=`basename -s .pl $i`; ln -s runner $name; done | ||
|
||
cd /github/workspace | ||
tar czvf /github/workspace/dxtoolkit.tar.gz dxtoolkit2/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|