-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'unstable-0.4.0' into 'master'
Update version See merge request ProtonVPN/linux/proton-python-client!28
- Loading branch information
Showing
39 changed files
with
1,600 additions
and
498 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.git | ||
.env | ||
._SOURCE_APP |
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ MANIFEST | |
.vscode/ | ||
*.lock | ||
__SOURCE_APP | ||
.env |
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,33 @@ | ||
FROM IMAGE_URL_ARCH | ||
ARG pkgname | ||
ENV pkgname=${pkgname:-python-proton-client} | ||
RUN pacman -Syu --noconfirm \ | ||
pacman-contrib \ | ||
base-devel \ | ||
bash \ | ||
sudo \ | ||
make \ | ||
python \ | ||
python-pip \ | ||
bash \ | ||
vim \ | ||
nano \ | ||
namcap \ | ||
python-requests \ | ||
python-pyopenssl \ | ||
python-bcrypt \ | ||
python-gnupg \ | ||
python-pytest \ | ||
python-pytest-cov \ | ||
&& useradd -ms /bin/bash user \ | ||
&& usermod -a -G wheel user \ | ||
&& echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
COPY docker_entry.sh /usr/local/bin | ||
COPY . /home/user/$pkgname | ||
|
||
RUN chown -R user:user /home/user/ | ||
USER user | ||
WORKDIR /home/user/$pkgname | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker_entry.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
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,46 @@ | ||
FROM IMAGE_URL_RPM | ||
RUN dnf update -y | ||
|
||
# RUN yum -y install epel-release && yum repolist | ||
|
||
RUN dnf install -y \ | ||
gcc \ | ||
sudo \ | ||
rpm-build \ | ||
rpm-devel \ | ||
rpmlint \ | ||
make \ | ||
python3 \ | ||
python3-pip \ | ||
bash \ | ||
coreutils \ | ||
diffutils \ | ||
patch \ | ||
rpmdevtools \ | ||
rpm-sign \ | ||
vim \ | ||
openssl-devel \ | ||
openssl-libs | ||
|
||
RUN dnf install -y \ | ||
python3-requests \ | ||
python3-pyOpenSSL \ | ||
python3-bcrypt \ | ||
python3-gnupg | ||
|
||
RUN dnf install -y \ | ||
python3-pytest \ | ||
python3-pytest-cov | ||
|
||
RUN useradd -ms /bin/bash user | ||
RUN usermod -a -G wheel user | ||
RUN echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
COPY docker_entry.sh /usr/local/bin | ||
COPY . /home/user/proton-python-client | ||
|
||
RUN chown -R user:user /home/user/ | ||
USER user | ||
WORKDIR /home/user/proton-python-client | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker_entry.sh"] |
Oops, something went wrong.