forked from awsassets/linux-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.fed35
71 lines (64 loc) · 1.61 KB
/
Dockerfile.fed35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM IMAGE_URL_FED35
ARG git_repo_lib
ENV git_repo_lib=${git_repo_lib:-GIT_REPO_LIB}
ARG git_repo_client
ENV git_repo_client=${git_repo_client:-GIT_REPO_CLIENT}
ARG git_branch
ENV git_branch=${git_branch:-GIT_BRANCH}
ARG pkgname
ENV pkgname=${pkgname:-linux-cli}
RUN dnf install -y \
net-tools \
gcc \
sudo \
git \
rpm-build \
rpm-devel \
rpmlint \
rpmdevtools \
rpm-sign \
python3 \
python3-pip \
NetworkManager \
NetworkManager-openvpn \
sudo \
nano \
pkg-config \
openvpn \
openssl-devel \
openssl-libs \
dbus-x11 \
gnome-keyring \
libsecret \
gtk3 \
polkit \
python3-pyxdg \
python3-dbus \
python3-keyring \
python3-distro \
python3-gobject \
python3-jinja2 \
python3-pytest \
python3-pytest-cov \
python3-requests \
python3-pyOpenSSL \
python3-bcrypt \
python3-gnupg \
python3-systemd \
&& python3 -m pip install --upgrade sentry-sdk==0.10.2 \
&& useradd -ms /bin/bash user \
&& usermod -a -G wheel user \
&& echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN git clone --single-branch --branch $git_branch $git_repo_client \
&& cd proton-python-client && pip3 install -e . \
&& rm -rf .git \
&& cd .. \
&& git clone --single-branch --branch $git_branch $git_repo_lib \
&& cd protonvpn-nm-lib && pip3 install -e . \
&& rm -rf .git && cd ..
COPY docker_entry_rpm.sh /usr/local/bin
COPY . /home/user/$pkgname
RUN chown -R user:user /home/user/$pkgname
WORKDIR /home/user/$pkgname
USER user
ENTRYPOINT ["/usr/local/bin/docker_entry_rpm.sh"]