mirror of
https://github.com/Fishwaldo/ozw-admin.git
synced 2025-03-15 19:31:38 +00:00
AppImage Docker Builds
This commit is contained in:
parent
c6d82b72fd
commit
d640f88673
4 changed files with 35 additions and 0 deletions
11
scripts/Dockerfile
Normal file
11
scripts/Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
#DockerFile to build a image capabile of Building AppImages. See build.sh for details
|
||||
FROM ubuntu:xenial
|
||||
WORKDIR /opt
|
||||
|
||||
RUN apt update && apt-get install -y software-properties-common && add-apt-repository ppa:beineri/opt-qt-5.12.6-xenial && \
|
||||
apt update && apt-get install -y qt512-meta-minimal qt512remoteobjects rapidjson-dev git g++ cmake make pkgconf bash python wget joe mc libunwind-dev libcurl4-openssl-dev qt512svg qt512websockets mesa-common-dev libgl1-mesa-dev fuse appstream && \
|
||||
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && \
|
||||
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage && \
|
||||
chmod +x linuxdeploy*.AppImage
|
||||
VOLUME /opt/buildfiles
|
||||
ENTRYPOINT /opt/buildfiles/build.sh
|
16
scripts/build.sh
Executable file
16
scripts/build.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
#Build File for Docker Image.
|
||||
#Run docker in this directory with: docker run -it --rm --device /dev/fuse --privileged -v`pwd`:/opt/buildfiles -e DOCKERUSERID=`id -u` -e DOCKERGROUPID=`id -g` <docker image>
|
||||
cd /opt
|
||||
git clone https://github.com/OpenZWave/open-zwave.git && cd open-zwave && make -j4 && make install
|
||||
cd /opt
|
||||
git clone https://github.com/OpenZWave/qt-openzwave.git && cd qt-openzwave && /opt/qt512/bin/qmake -r && make -j4 && make install
|
||||
cd /opt
|
||||
git clone https://github.com/OpenZWave/ozw-admin.git && cd ozw-admin && git checkout buildfixes && /opt/qt512/bin/qmake -r && make -j4 && make install
|
||||
cd /opt
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib64
|
||||
export QMAKE=/opt/qt512/bin/qmake
|
||||
export VERSION=0.1
|
||||
cd ozw-admin && ../linuxdeploy-x86_64.AppImage --appdir AppDir -e ozwadmin --plugin qt --output appimage -d scripts/ozwadmin.desktop -i scripts/ozwadmin.png
|
||||
cp /opt/ozw-admin/OZWAdmin-*.AppImage /opt/buildfiles/
|
||||
chown $DOCKERUSERID:$DOCKERGROUPID /opt/buildfiles/OZWAdmin-*.AppImage
|
8
scripts/ozwadmin.desktop
Normal file
8
scripts/ozwadmin.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=OZWAdmin
|
||||
Comment=OpenZWave Administration Gui
|
||||
Exec=ozwadmin
|
||||
Type=Application
|
||||
Icon=ozwadmin
|
||||
Categories=System;
|
||||
MimeType=application/x-iso9660-appimage;
|
BIN
scripts/ozwadmin.png
Normal file
BIN
scripts/ozwadmin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Loading…
Add table
Reference in a new issue