-
Notifications
You must be signed in to change notification settings - Fork 10
Add centos8 builder #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ChrisOrlando
wants to merge
6
commits into
overviewer:master
Choose a base branch
from
ChrisOrlando:el8
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ece9223
update for werkzeug > 1.0
ChrisOrlando c83c793
Add centos8 builder
ChrisOrlando 31d49a0
http -> https
ChrisOrlando bc5eea5
Google Maps -> Leaflet
ChrisOrlando 455676d
remove epel-release from el8 rpm requirements
ChrisOrlando 61aaa5b
use specific version of Pillow instead of master
ChrisOrlando File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,17 @@ | ||
FROM centos:8 | ||
RUN yum install -y epel-release | ||
RUN yum --exclude=iputils update -y && yum install -y \ | ||
git curl wget mock rpm-build \ | ||
python36 python3-libs python36-devel python3-pip python3-numpy python3-pillow \ | ||
redhat-rpm-config gcc libffi-devel openssl-devel \ | ||
&& yum groupinstall -y "Development Tools" | ||
RUN ln -sf /usr/bin/python3.6 /usr/bin/python3 \ | ||
&& ln -sf /usr/bin/pip3.6 /usr/bin/pip3 | ||
|
||
RUN python3 -m pip install "buildbot[bundle]" sphinx | ||
|
||
ENV WORKER_NAME diax-centos8-64 | ||
ENV WORKER_ADMIN Andrew Chin <[email protected]> | ||
ENV WORKER_INFO CentOS 8 64-bit | ||
COPY worker-start.sh /root/ | ||
CMD /root/worker-start.sh |
This file contains hidden or 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,18 @@ | ||
#!/bin/bash | ||
|
||
cd /root/ | ||
if [ ! -d "worker" ]; then | ||
echo "creating worker..." | ||
buildbot-worker create-worker --umask=0o22 --no-logrotate worker bbmaster:9989 $WORKER_NAME $(python3 -c "import hmac, hashlib; print(hmac.new(bytes('$BUILDBOT_SECRET', 'utf-8'), bytes('$WORKER_NAME', 'utf-8'), hashlib.sha512).hexdigest())") | ||
echo $WORKER_ADMIN > worker/info/admin | ||
echo $WORKER_INFO > worker/info/host | ||
uname -a >> worker/info/host | ||
fi | ||
|
||
rm -f worker/twistd.pid worker/twistd.log | ||
|
||
# make sure /sys is rw (I HAVE NO IDEA but it helps rpm builders) | ||
mount -o remount,rw /sys | ||
|
||
# run in a clean env, don't leak secrets | ||
exec env -i -- /bin/bash -c "source /etc/profile; export HOME=`pwd`; exec buildbot-worker start --nodaemon worker" |
This file contains hidden or 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
39 changes: 39 additions & 0 deletions
39
buildbot/repos/rpm/control/centos8/Minecraft-Overviewer.spec
This file contains hidden or 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,39 @@ | ||
Summary: Generates large resolution images of a Minecraft map. | ||
Name: Minecraft-Overviewer | ||
Version: {VERSION} | ||
Release: 1%{?dist} | ||
Source0: %{name}-%{version}.tar.gz | ||
License: GNU General Public License v3 | ||
Group: Development/Libraries | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | ||
Vendor: Andrew Brown <[email protected]> | ||
Url: https://overviewer.org/ | ||
Requires: python3-pillow python3-numpy | ||
BuildRequires: wget python36-devel python3-numpy | ||
|
||
%description | ||
The Minecraft Overviewer is a command-line tool for rendering high-resolution | ||
maps of Minecraft worlds. It generates a set of static html and image files and | ||
uses the Leaflet javascript library to display a nice interactive map. | ||
|
||
%prep | ||
wget -P %{_tmppath} https://github.com/python-pillow/Pillow/archive/5.1.0.tar.gz | ||
tar -xf %{_tmppath}/5.1.0.tar.gz --directory %{_tmppath} | ||
%setup -n %{name} | ||
|
||
%build | ||
env CFLAGS="$RPM_OPT_FLAGS" PIL_INCLUDE_DIR=%{_tmppath}/Pillow-5.1.0/src/libImaging %{__python3} setup.py build | ||
|
||
%install | ||
%{__python3} setup.py install -O1 --root=%{buildroot} | ||
rm -rf %{buildroot}%{_defaultdocdir}/minecraft-overviewer | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%{python3_sitearch}/Minecraft_Overviewer-*-*.egg-info | ||
%{python3_sitearch}/overviewer_core | ||
%{_bindir}/overviewer.py | ||
%doc README.rst COPYING.txt sample_config.py |
This file contains hidden or 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 contains hidden or 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 contains hidden or 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 contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.