forked from CentOS-PaaS-SIG/linchpin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AppImage building process (CentOS-PaaS-SIG#1695)
- Loading branch information
Showing
7 changed files
with
693 additions
and
43 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 was deleted.
Oops, something went wrong.
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,24 @@ | ||
# Beware: only meant for use with pkg2appimage-with-docker | ||
|
||
FROM ubuntu:xenial | ||
|
||
MAINTAINER "TheAssassin <theassassin@users.noreply.github.com>" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
DOCKER_BUILD=1 | ||
|
||
RUN sed -i 's/archive.ubuntu.com/ftp.fau.de/g' /etc/apt/sources.list ;\ | ||
echo "deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial main" >> /etc/apt/sources.list ;\ | ||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 ;\ | ||
apt-get update | ||
RUN apt-get install -y python3.7 python3.7-dev python3.7-venv python3.7-distutils ;\ | ||
python3.7 -m ensurepip --default-pip ;\ | ||
python3.7 -m pip install --upgrade pip setuptools wheel virtualenv | ||
RUN apt-get install -y apt-transport-https libcurl3-gnutls libarchive13 wget desktop-file-utils aria2 gnupg2 build-essential file libglib2.0-bin git sudo | ||
RUN apt-get install -y pkg-config libvirt-dev | ||
RUN apt-get install -y fuse || true | ||
RUN install -m 0777 -d /workspace | ||
|
||
RUN adduser --system --uid 1000 test | ||
|
||
WORKDIR /workspace |
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,34 @@ | ||
app: Linchpin | ||
binpatch: true | ||
ingredients: | ||
dist: xenial | ||
sources: | ||
- deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe | ||
- deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial main | ||
packages: | ||
- python3.7 | ||
script: | ||
- wget -nc -q -O linchpin.png https://linchpinjobs.com/img/linchpinjobs_logo.png | ||
- virtualenv usr -p $(which python3.7) --always-copy | ||
- ./usr/bin/pip3 install linchpin gitdb2==3.0.1 gitdb==0.6.4 | ||
- ./usr/bin/pip3 install linchpin[libvirt] | ||
- rm -rf usr/lib/python3/dist-packages/ | ||
- ln -s ../python3.7/site-packages/ usr/lib/python3/dist-packages | ||
- cat > usr/bin/linchpin-wrapper <<\EOF | ||
- HERE="$(dirname "$(readlink -f "${0}")")" | ||
- cd $OWD | ||
- "${HERE}/bin/python3" "${HERE}/bin/linchpin" "$@" | ||
- EOF | ||
- cat > linchpin.desktop <<\EOF | ||
- [Desktop Entry] | ||
- Type=Application | ||
- Name=Linchpin | ||
- Comment=Provisioning | ||
- Icon=linchpin | ||
- Exec=bash linchpin-wrapper | ||
- Terminal=true | ||
- Categories=Application;Development; | ||
- StartupWMClass=linchpin | ||
- MimeType=text/x-python3;text/x-python3; | ||
- EOF | ||
- usr/bin/pip3 freeze | grep "linchpin" | cut -d "=" -f 3 >> ../VERSION |
Oops, something went wrong.