-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bindea Cristian <cristian.bindea@analog.com>
- Loading branch information
1 parent
e7330be
commit 30afd02
Showing
5 changed files
with
433 additions
and
0 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 |
---|---|---|
|
@@ -22,5 +22,6 @@ android*.sh | |
!CI/android/* | ||
CI/kuiper/staging | ||
CI/kuiper/scopy.AppDir | ||
CI/appimage/staging | ||
html/ | ||
build_arm64-v8a/ |
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,12 @@ | ||
#!/bin/bash | ||
set -e | ||
SELF=$(readlink -f "$0") | ||
HERE=${SELF%/*} | ||
|
||
export QT_PLUGIN_PATH=$HERE/usr/plugins | ||
export QT_QPA_PLATFORM_PLUGIN_PATH=$HERE/usr/plugins/platforms | ||
export LD_LIBRARY_PATH=$HERE/usr/lib | ||
|
||
ldd $HERE/usr/bin/scopy | ||
|
||
exec $HERE/usr/bin/scopy |
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,32 @@ | ||
#docker build -t cristianbindea/scopy2-ubuntu22 --build-arg QT_USER=<your_user> --build-arg QT_PASSWORD=<your_password> . | ||
|
||
FROM ubuntu:20.04 | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
ARG USER=runner | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ENV TZ=Europe/Bucharest | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
RUN apt-get update && apt-get -y upgrade && apt-get install -y apt-utils sudo git | ||
|
||
RUN groupadd -g 1000 -r $USER && \ | ||
useradd -u 1000 -g 1000 --create-home -r $USER | ||
|
||
#Change password | ||
RUN echo "$USER:$USER" | chpasswd | ||
|
||
#Make sudo passwordless | ||
RUN echo "${USER} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-$USER && \ | ||
usermod -aG sudo $USER && \ | ||
usermod -aG plugdev $USER | ||
|
||
USER $USER | ||
WORKDIR /home/${USER} | ||
RUN git clone https://github.com/analogdevicesinc/scopy --branch appimage-scopy1 | ||
WORKDIR /home/${USER}/scopy | ||
|
||
RUN ./CI/appimage/ubuntu_appimage_process.sh clone install_packages download_tools build_deps | ||
WORKDIR /home/${USER} | ||
# RUN rm -rf scopy | ||
|
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,10 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Icon=Scopy | ||
Exec=scopy | ||
Terminal=false | ||
Type=Application | ||
Categories=Science | ||
Name=Scopy | ||
GenericName=Oscilloscope | ||
Comment=A software oscilloscope |
Oops, something went wrong.