Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/Centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM centos:7

USER root
RUN yum install -y python3 \
&& yum install -y python3-devel \
&& yum install -y git \
Expand Down
3 changes: 2 additions & 1 deletion docker/Centos7/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ cat secret.py.orig | sed -e "s/changemechangemechagemechangemec/${INPUT_ENCKEY}/


cd /github/workspace/
ls -l
ls -l
pip3 install -r requirements.txt
python3 setup.py install
pyinstaller --onefile --clean dxmc.py
cd /github/workspace/dist
Expand Down
27 changes: 27 additions & 0 deletions docker/openSUSE/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM opensuse/leap:latest

USER root
RUN zypper in -y python3 \
&& zypper in -y python3-devel \
&& zypper in -y python3-pip \
&& zypper in -y git \
&& zypper in -y gcc \
&& zypper in -y zlib-devel \
&& zypper in -y openssl-devel \
&& zypper in -y libffi-devel \
&& zypper in -y libbz2-1 libbz2-devel

ENV CFLAGS "-std=gnu99"

RUN pip3 install wheel \
&& pip3 install pyinstaller \
&& pip3 install jeepney

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"]
16 changes: 16 additions & 0 deletions docker/openSUSE/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

cd /github/workspace/dxm/lib/DxEngine
mv secret.py secret.py.orig
cat secret.py.orig | sed -e "s/changemechangemechagemechangemec/${INPUT_ENCKEY}/" > secret.py


cd /github/workspace/
ls -l
pip3 install -r requirements.txt
python3 setup.py install
pyinstaller --onefile --clean dxmc.py
cd /github/workspace/dist



2 changes: 1 addition & 1 deletion dxm/lib/DxEngine/secret.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# please change to value you want
secret = b'changemechangemechagemechangemec'
secret = b'changemechangemechagemechangemec'
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
urllib3==1.26.12
pyparsing==3.0.8
idna==3.3