Commit 2431ce2b authored by acidhunter's avatar acidhunter

initial release

parent d2be9914
Pipeline #35249621 failed with stage
in 10 minutes and 54 seconds
pkgbase = mandelbulber2-git
pkgdesc = 3D application designed to render 3D fractals such as the Mandelbulb, Mandelbox, BulbBox, JuliaBulb, Menger Sponge, and Iterated Function Systems. Git version.
pkgver = 20170801
pkgrel = 1
url = https://github.com/buddhi1980/mandelbulber2
arch = any
license = GPL3
makedepends = git
depends = lzo
depends = qt5-tools
depends = libjpeg-turbo
depends = libpng12
depends = gsl
depends = openmpi
depends = qt5-multimedia
provides = mandelbulber2
conflicts = mandelbulber2
source = mandelbulber2::git+https://github.com/buddhi1980/mandelbulber2
md5sums = SKIP
pkgname = mandelbulber2-git
#image: docker:latest
image: docker:latest
#services:
# - docker:dind
services:
- docker:dind
#before_script:
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build:
stage: build
script:
- docker run -e MAKEFLAGS="j4" -e EXPORT_PKG=1 -v $PWD:/pkg whynothugo/makepkg:latest
only:
- master
artifacts:
when: on_success
paths:
- ./*.tar.xz
expire_in: 14 day
tags:
- docker
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
docker:
stage: deploy
dependencies:
- build
stage: build
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build -t $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG .
- docker build --build-arg=MAKEFLAGS="j4" -t $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG .
- docker push $CI_REGISTRY/$CI_PROJECT_PATH
only:
- master
......
FROM whynothugo/makepkg
FROM m0rf30/arch-yay
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
ADD PKGBUILD /pkg
RUN echo "MAKEFLAGS=-j'$(nproc --ignore 1)'" >> ~/.makepkg.conf
RUN EXPORT_PKG=1 /bin/sh /run.sh
RUN sudo pacman -Sy --noprogressbar --noconfirm nvidia-utils clinfo
RUN MAKEFLAGS="-j7" sudo -u user yay -Sy --noconfirm --nodiffmenu mandelbulber2-opencl-git
RUN sudo pacman -Sy --noprogressbar --noconfirm opencl-nvidia
CMD [ "mandelbulber2", "-g", "-n" ]
\ No newline at end of file
#Maintainer: Martin Friedrich <[email protected]>
#Contributor: Martin Friedrich <[email protected]>
pkgname=mandelbulber2-opencl-git
_pkgname=mandelbulber2
pkgver=20181030
pkgrel=1
pkgdesc="3D application designed to render 3D fractals such as the Mandelbulb, Mandelbox, BulbBox, JuliaBulb, Menger Sponge, and Iterated Function Systems. Git version."
arch=('any')
url="https://github.com/buddhi1980/mandelbulber2"
license=('GPL3')
depends=('lzo' 'qt5-tools' 'libjpeg-turbo' 'libpng12' 'gsl' 'openmpi' 'qt5-multimedia' 'opencl-headers' 'opencl-mesa' 'opencl-nvidia' 'ocl-icd')
makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
source=("${_pkgname}::git+https://github.com/buddhi1980/mandelbulber2")
md5sums=('SKIP')
pkgver()
{
cd $_pkgname
git log -1 --format="%cd" --date=short | sed "s|-||g"
}
build()
{
cd $_pkgname/$_pkgname
qmake-qt5 qmake/mandelbulber-opencl.pro
make PREFIX=/usr
}
package()
{
cd "$srcdir/$_pkgname"
install -m755 -d "${pkgdir}/usr/bin"
install -D -m644 "${srcdir}/${_pkgname}/${_pkgname}/deploy/linux/mandelbulber2.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -m755 -d "${pkgdir}/usr/share/${_pkgname}"
install -m755 -d "${pkgdir}/usr/share/applications"
install -m755 -d "${pkgdir}/usr/share/icons"
cp -ra "${srcdir}/${_pkgname}/${_pkgname}/opencl" "$pkgdir/usr/share/${_pkgname}/opencl"
cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/data" "$pkgdir/usr/share/${_pkgname}/data"
cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/examples" "$pkgdir/usr/share/${_pkgname}/examples"
cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/icons" "$pkgdir/usr/share/${_pkgname}/icons"
cp -ra "${srcdir}/${_pkgname}/${_pkgname}/language" "$pkgdir/usr/share/${_pkgname}/language"
cp -ra "${srcdir}/${_pkgname}/${_pkgname}/formula" "$pkgdir/usr/share/${_pkgname}/formula"
cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/textures" "$pkgdir/usr/share/${_pkgname}/textures"
cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/toolbar" "$pkgdir/usr/share/${_pkgname}/toolbar"
install -m755 "${srcdir}/${_pkgname}/${_pkgname}/mandelbulber2" "${pkgdir}/usr/bin/"
}
# Mandelbulber settings file
# version 2.15
# application settings
[main_parameters]
alpha_enabled false;
alpha_postfix _alpha;
alpha_quality 0;
append_alpha_png true;
auto_refresh false;
auto_refresh_period 0,1;
auto_save_images false;
aux_light_manual_placement_dist 0,1178154362139918;
camera_absolute_distance_mode relative;
camera_movement_mode move_camera;
camera_movement_step 1,049510457392394;
camera_rotation_mode rotate_camera;
camera_rotation_step 3,1;
camera_straight_rotation constant_top;
color_enabled true;
color_postfix ;
color_quality 0;
default_image_path /home/user/mandelbulber/images;
default_settings_path /home/user/mandelbulber/settings;
default_textures_path /usr/share/mandelbulber2/textures;
description_popup_do_not_show_again false;
flight_animation_image_type png;
flight_sec_per_frame 1;
flight_show_thumbnails false;
grid_type 0;
image_detached false;
image_preview_scale 0;
jpeg_quality 95;
julia_preview_distance 3;
keyframe_animation_image_type png;
keyframe_auto_validate true;
language ;
limit_CPU_cores 4;
linear_colorspace true;
logging_verbosity 1;
mesh_color true;
mesh_file_mode 0;
net_render_client_IP 10.0.0.4;
net_render_client_port 5555;
net_render_server_port 5555;
netrender_client_remote_address localhost;
netrender_client_remote_port 5555;
netrender_mode 1;
netrender_server_local_port 5555;
normal_enabled false;
normal_postfix _normal;
normal_quality 2;
opencl_device_list c59e78;
opencl_device_type gpu;
opencl_disable_build_cache false;
opencl_enabled true;
opencl_memory_limit 4096;
opencl_mode full;
opencl_platform 0;
opencl_precision single;
opencl_use_fast_relaxed_math true;
queue_image_format png;
quit_do_not_ask_again true;
save_image_format 0;
show_camera_path true;
show_cursor true;
show_keyframe_thumbnails false;
show_light_path_1 true;
show_light_path_2 true;
show_light_path_3 true;
show_light_path_4 true;
show_queue_thumbnails false;
show_target_path true;
stereoscopic_in_separate_files false;
system_tray_notify false;
threads_priority 2;
toolbar_icon_size 76;
ui_colorize true;
ui_colorize_random_seed 12345;
ui_font_size 11;
ui_skin -1;
ui_style_type -1;
upgrade_do_not_ask_again false;
voxel_show_information true;
zbuffer_enabled false;
zbuffer_postfix _zbuffer;
zbuffer_quality 2;
#!/bin/bash
xhost +
sudo docker run --runtime=nvidia --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v $(pwd)/data/mandelbulber:/home/user test:latest /bin/bash -c 'sudo pacman -Sy --noconfirm ocl-icd && clinfo && /bin/bash'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment