-
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
Feb 9, 2024
1 parent
c408d51
commit 86b12bd
Showing
3 changed files
with
150 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,48 @@ | ||
FROM amazonlinux:2023 | ||
|
||
RUN yum install -y perl \ | ||
tar \ | ||
perl-JSON-PP.noarch \ | ||
perl-Date-Manip.noarch \ | ||
perl-Net-SSLeay.x86_64 \ | ||
git \ | ||
perl-JSON-PP.noarch \ | ||
perl-JSON.noarch \ | ||
perl-LWP-Protocol-https.noarch \ | ||
perl-DateTime.x86_64 \ | ||
perl-DateTime-Locale.noarch \ | ||
perl-ExtUtils-Config.noarch \ | ||
perl-ExtUtils-InstallPaths.noarch \ | ||
perl-ExtUtils-Helpers.noarch \ | ||
perl-Module-Build-Tiny.noarch \ | ||
perl-DateTime-Format-DateParse.noarch \ | ||
perl-Test-Script.noarch \ | ||
perl-HTTP-Server-Simple.noarch \ | ||
perl-Log-Log4perl.noarch \ | ||
perl-Text-CSV.noarch \ | ||
perl-Text-CSV_XS.x86_64 \ | ||
perl-PAR-Dist.noarch \ | ||
perl-List-MoreUtils.noarch \ | ||
perl-List-MoreUtils-XS.x86_64 \ | ||
openssl \ | ||
openssl-devel | ||
|
||
RUN echo | cpan | ||
RUN cpan App::cpanminus | ||
|
||
RUN cpanm -f DateTime::Event::Cron::Quartz \ | ||
&& cpanm Crypt::[email protected] \ | ||
&& cpanm Crypt::Blowfish \ | ||
&& cpanm PAR::Packer | ||
|
||
RUN cpanm Test::Files | ||
RUN 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 | ||
|
||
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,43 @@ | ||
#!/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/lib64/libcrypto.so -l /usr/lib64/libssl.so -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 | ||
#for i in /github/workspace/bin/dx_*.pl ; do name=`basename $i .pl`; ln -s runner $name; done | ||
|
||
echo #!/bin/bash > install.sh | ||
echo LIST_OF_SCRIPTS=\( >> install.sh | ||
|
||
for i in /github/workspace/bin/dx_*.pl ; do | ||
name=`basename $i .pl`; | ||
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 | ||
|
||
cd /github/workspace | ||
tar czvf /github/workspace/dxtoolkit.tar.gz dxtoolkit2/ | ||
|
||
echo ${HOME} | ||
|
||
cp /github/workspace/dxtoolkit.tar.gz ${HOME} | ||
|
||
ls -l ${HOME} |