Skip to content

Commit

Permalink
opensuse: install git-lfs from packagecloud rpm repo
Browse files Browse the repository at this point in the history
Add "github_git-lfs" rpm repo excerpted from install script:
https://packagecloud.io/github/git-lfs/install#bash-rpm
(e.g. https://packagecloud.io/install/repositories/github/git-lfs/config_file.repo?os=opensuse&dist=15.0&source=script)

Automatically add gpg keys with:
zypper --gpg-auto-import-keys refresh github_git-lfs

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
  • Loading branch information
Tim Orling committed May 5, 2020
1 parent 0285365 commit 4c73670
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
16 changes: 14 additions & 2 deletions dockerfiles/opensuse/opensuse-15.0/opensuse-15.0-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@

FROM opensuse/leap:15.0

RUN zypper --non-interactive install python \
RUN echo $'[github_git-lfs] \n\
name=github_git-lfs \n\
baseurl=https://packagecloud.io/github/git-lfs/opensuse/15.0/$basearch \n\
repo_gpgcheck=1 \n\
pkg_gpgcheck=0 \n\
enabled=1 \n\
gpgkey=https://packagecloud.io/github/git-lfs/gpgkey \n\
autorefresh=1 \n\
type=rpm-md \n\
' >> /etc/zypp/repos.d/github_git-lfs.repo && \
zypper --gpg-auto-import-keys refresh github_git-lfs && \
zypper --non-interactive install python \
python3 \
gcc \
gcc-c++ \
Expand All @@ -39,7 +50,8 @@ RUN zypper --non-interactive install python \
net-tools \
xorg-x11-Xvnc \
gzip \
bzip2 && \
bzip2 \
git-lfs && \
cp -af /etc/skel/ /etc/vncskel/ && \
echo "export DISPLAY=1" >>/etc/vncskel/.bashrc && \
mkdir /etc/vncskel/.vnc && \
Expand Down
16 changes: 14 additions & 2 deletions dockerfiles/opensuse/opensuse-15.1/opensuse-15.1-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@

FROM opensuse/leap:15.1

RUN zypper --non-interactive install python \
RUN echo $'[github_git-lfs] \n\
name=github_git-lfs \n\
baseurl=https://packagecloud.io/github/git-lfs/opensuse/15.1/$basearch \n\
repo_gpgcheck=1 \n\
pkg_gpgcheck=0 \n\
enabled=1 \n\
gpgkey=https://packagecloud.io/github/git-lfs/gpgkey \n\
autorefresh=1 \n\
type=rpm-md \n\
' >> /etc/zypp/repos.d/github_git-lfs.repo && \
zypper --gpg-auto-import-keys refresh github_git-lfs && \
zypper --non-interactive install python \
python3 \
gcc \
gcc-c++ \
Expand All @@ -39,7 +50,8 @@ RUN zypper --non-interactive install python \
net-tools \
xorg-x11-Xvnc \
gzip \
bzip2 && \
bzip2 \
git-lfs && \
cp -af /etc/skel/ /etc/vncskel/ && \
echo "export DISPLAY=1" >>/etc/vncskel/.bashrc && \
mkdir /etc/vncskel/.vnc && \
Expand Down

0 comments on commit 4c73670

Please sign in to comment.