Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mediaconch_plugin4rosetta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
mediaconch_plugin4rosetta
Commits
1642a6ce
Commit
1642a6ce
authored
5 years ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- changed to build own libxml2 and libxslt from scratch, because RHEL6 is outdated
parent
d6b2293d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy_mediaconch/Dockerfile
+41
-3
41 additions, 3 deletions
deploy_mediaconch/Dockerfile
with
41 additions
and
3 deletions
deploy_mediaconch/Dockerfile
+
41
−
3
View file @
1642a6ce
...
...
@@ -27,7 +27,8 @@ RUN yum install -y devtoolset-2-gcc-c++ devtoolset-2-libstdc++-devel devtoolset-
RUN
scl
enable
devtoolset-2 bash
RUN
yum
install
-v
-y
tree
RUN
yum
install
-v
-y
autoconf automake libtool pkgconfig
RUN
yum
install
-v
-y
libxml2-devel libxslt-devel zlib-devel libsqlite-devel
RUN
yum
install
-v
-y
zlib-devel libsqlite-devel
RUN
yum
install
-v
-y
python-devel
## add user environment
RUN
useradd builder
-u
1000
-m
-G
users
,wheel
&&
\
...
...
@@ -49,6 +50,39 @@ WORKDIR /home/builder/
ENV
DISTDIR=/home/builder/distribution/usr/local
RUN
mkdir
-p
$DISTDIR
# get and compile libxml2, because RHEL uses outdated and errorneous version
RUN
wget
-np
https://gitlab.gnome.org/GNOME/libxml2/-/archive/master/libxml2-master.tar.gz
RUN
tar
xfz libxml2-master.tar.gz
RUN
cd
libxml2-master
&&
./autogen.sh
RUN
cd
libxml2-master
&&
\
./configure
--prefix
=
$DISTDIR
--without-python
&&
\
make
-j
&&
\
make
install
ENV
PATH=$PATH:$DISTDIR/bin
RUN
echo
$PATH
# get and compile libxslt, because RHEL uses outdated and errorneous version
RUN
wget
-np
https://gitlab.gnome.org/GNOME/libxslt/-/archive/master/libxslt-master.tar.gz
RUN
tar
xfz libxslt-master.tar.gz
RUN
cd
libxslt-master
&&
./autogen.sh
RUN
cd
libxslt-master
&&
./configure
--help
# patch errorneous configure
RUN
cd
libxslt-master
&&
sed
-i
-e
"16135s/.*/echo nothing/"
configure
RUN
cd
libxslt-master
&&
(
cat
-n
configure |
head
-n
16143 |
tail
-n
10
)
RUN
cd
libxslt-master
&&
\
./configure
--prefix
=
$DISTDIR
--without-python
--without-crypto
\
--with-libxml-src
=
/home/builder/libxml2-master
\
--with-libxml-prefix
=
$DISTDIR
/bin
\
--with-libxml-include-prefix
=
$DISTDIR
/include
\
--with-libxml-libs-prefix
=
$DISTDIR
/lib
&&
\
make
-j
&&
\
make
install
# get and compile libzen
RUN
git clone https://github.com/MediaArea/ZenLib.git
# next lines only usefull if mediaconch build with cmake
...
...
@@ -92,7 +126,9 @@ RUN cd MediaInfoLib/Project/GNU/Library/ &&\
#ENV PKG_CONFIG_PATH=$(PKG_CONFIG_PATH):$DISTDIR/lib64/pkgconfig:$DISTDIR/lib/pkgconfig
#run echo $PKG_CONFIG_PATH
RUN
ln
-s
libxml2-master libxml2
RUN
ln
-s
libxslt-master libxslt
RUN
ls
-lha
# get and compile mediaconch
RUN
git clone https://github.com/MediaArea/MediaConch_SourceCode.git
#cmake ../Project/CMake -DCMAKE_INSTALL_PREFIX=$DISTDIR &&\
...
...
@@ -104,7 +140,9 @@ RUN cd MediaConch_SourceCode &&\
RUN
cd
MediaConch_SourceCode/Project/GNU/CLI/
&&
\
./configure
--help
RUN
cd
MediaConch_SourceCode/Project/GNU/CLI/
&&
\
./configure
--prefix
=
$DISTDIR
--without-sqlite
--without-jansson
--without-libevent
fgrep
--color
-C
4 libxml2 configure
RUN
cd
MediaConch_SourceCode/Project/GNU/CLI/
&&
\
CXXFLAGS
=
"-O3 -I
$DISTDIR
/include -L
$DISTDIR
/lib -L
$DISTDIR
/lib64"
./configure
--prefix
=
$DISTDIR
--without-sqlite
--without-jansson
--without-libevent
RUN
cd
MediaConch_SourceCode/Project/GNU/CLI/
&&
\
make
-j
&&
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment