Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rav1e-docker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
rav1e-docker
Commits
afff3a98
Commit
afff3a98
authored
Aug 28, 2019
by
Josh Holmer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rav1e-image-fixes' into 'master'
Various updates for rav1e Docker image See merge request
!1
parents
a46d9d48
554617a9
Pipeline
#1224
passed with stage
in 15 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
45 deletions
+99
-45
.gitlab-ci.yml
.gitlab-ci.yml
+36
-2
rust-rav1e/Dockerfile
rust-rav1e/Dockerfile
+63
-43
No files found.
.gitlab-ci.yml
View file @
afff3a98
Rust rav1e image
:
variables
:
# Workaround a bug in Gitlab CI
DOCKER_TLS_CERTDIR
:
"
"
Docker build
:
stage
:
build
tags
:
-
dind
-
privileged
variables
:
IMAGE_TAG
:
'
1.37'
services
:
-
docker:dind
script
:
-
docker build ./rust-rav1e --build-arg IMAGE_TAG=$IMAGE_TAG
only
:
-
merge_requests
Latest stable Rust
:
stage
:
build
tags
:
-
dind
-
privileged
variables
:
IMAGE_TAG
:
'
1.37'
services
:
-
docker:dind
script
:
-
docker build -t $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG ./rust-rav1e --build-arg IMAGE_TAG=$IMAGE_TAG
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker push $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG
only
:
-
master
Minimum supported Rust
:
stage
:
build
stage
:
build
tags
:
tags
:
-
dind
-
dind
...
@@ -8,7 +42,7 @@ Rust rav1e image:
...
@@ -8,7 +42,7 @@ Rust rav1e image:
services
:
services
:
-
docker:dind
-
docker:dind
script
:
script
:
-
docker build -t $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG ./rust-rav1e
-
docker build -t $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG ./rust-rav1e
--build-arg IMAGE_TAG=$IMAGE_TAG
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker push $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG
-
docker push $CI_REGISTRY_IMAGE/rust-rav1e:$IMAGE_TAG
only
:
only
:
...
...
rust-rav1e/Dockerfile
View file @
afff3a98
FROM
rust:1.36
ARG
IMAGE_TAG
FROM
rust:${IMAGE_TAG}-buster
ARG
NASM_VERSION=2.14
ARG
KCOV_VERSION=36
ARG
AOM_VERSION=v1.0.0-errata1
ARG
DAV1D_VERSION=0.4.0
RUN
apt-get update
-qq
&&
\
RUN
apt-get update
-qq
&&
\
apt-get
install
-qqy
\
apt-get
install
-qqy
--no-install-recommends
\
autoconf
\
autoconf
\
automake
\
automake
\
autopoint
\
autopoint
\
gettext
\
gettext
\
libtool-bin
\
libtool-bin
\
bzip2
\
bzip2
\
flex
\
flex
\
make
\
make
\
gcc
\
gcc
\
g++
\
g++
\
g++-multilib
\
g++-multilib
\
git
\
git
\
gperf
\
gperf
\
patch
\
patch
\
pkg-config
\
pkg-config
\
sed
\
sed
\
unzip
\
unzip
\
wget
\
wget
\
lzip
\
lzip
\
xz-utils
\
xz-utils
\
cmake
\
cmake
\
ninja-build
\
ninja-build
\
libclang-dev
\
libclang-dev
\
clang
\
clang
\
libelf-dev
\
libelf-dev
\
libdw-dev
\
libdw-dev
\
libiberty-dev
\
libiberty-dev
\
binutils-dev
binutils-dev
\
RUN
rustup component add clippy
&&
\
meson
&&
\
curl
-L
https://download.videolan.org/contrib/nasm/nasm-2.14.tar.gz |
tar
xvz
&&
\
rm
-rf
/var/lib/apt/lists/
*
cd
nasm-2.14
&&
\
RUN
curl
-L
"https://download.videolan.org/contrib/nasm/nasm-
$NASM_VERSION
.tar.gz"
|
tar
xvz
&&
\
cd
"nasm-
$NASM_VERSION
"
&&
\
./configure
&&
make
-j2
&&
make
install
&&
\
./configure
&&
make
-j2
&&
make
install
&&
\
cd
..
&&
\
cd
..
&&
\
curl
-L
https://github.com/SimonKagstrom/kcov/archive/v36.tar.gz |
tar
xvz
&&
\
rm
-rf
"nasm-
$NASM_VERSION
"
cd
kcov-36
&&
\
RUN
curl
-L
"https://github.com/SimonKagstrom/kcov/archive/v
$KCOV_VERSION
.tar.gz"
|
tar
xvz
&&
\
cd
"kcov-
$KCOV_VERSION
"
&&
\
mkdir
.build
&&
cd
.build
&&
\
mkdir
.build
&&
cd
.build
&&
\
cmake
-GNinja
..
&&
\
cmake
-GNinja
..
&&
\
ninja
&&
ninja
install
&&
\
ninja
&&
ninja
install
&&
\
cd
../..
&&
\
cd
../..
&&
\
git clone
--depth
1
-b
v1.0.0-errata1 https://aomedia.googlesource.com/aom
&&
\
rm
-rf
"kcov-
$KCOV_VERSION
"
RUN
git clone
--depth
1
-b
"
$AOM_VERSION
"
https://aomedia.googlesource.com/aom
&&
\
cd
aom
&&
\
cd
aom
&&
\
mkdir
-p
.build
&&
cd
.build
&&
\
mkdir
-p
.build
&&
cd
.build
&&
\
cmake
-GNinja
..
\
cmake
-GNinja
..
\
-DCMAKE_BUILD_TYPE
=
Release
\
-DCMAKE_BUILD_TYPE
=
Release
\
-DENABLE_TESTS
=
0
\
-DENABLE_TESTS
=
0
\
-DENABLE_DOCS
=
0
\
-DENABLE_DOCS
=
0
\
-DCONFIG_LOWBITDEPTH
=
1
\
-DCONFIG_LOWBITDEPTH
=
1
\
-DCMAKE_INSTALL_PREFIX
=
/usr
\
-DCMAKE_INSTALL_PREFIX
=
/usr
\
-DCONFIG_PIC
=
1
&&
\
-DCONFIG_PIC
=
1
&&
\
ninja
&&
ninja
install
ninja
&&
ninja
install
&&
\
cd
../..
&&
\
rm
-rf
aom
RUN
curl
-L
"https://code.videolan.org/videolan/dav1d/-/archive/
$DAV1D_VERSION
/dav1d-
$DAV1D_VERSION
.tar.gz"
|
tar
xvz
&&
\
cd
"dav1d-
$DAV1D_VERSION
"
&&
\
meson build
--buildtype
release
&&
\
ninja
-C
build
install
&&
\
cd
../..
&&
\
rm
-rf
"dav1d-
$DAV1D_VERSION
"
RUN
rustup component add clippy rustfmt
RUN
cargo
install
cargo-kcov
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment