Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
4666f5f2
Commit
4666f5f2
authored
Jan 20, 2021
by
Nikolay Igotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Local reproducer for CI configs.
parent
be05f641
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
Dockerfile
skiko/docker/Dockerfile
+35
-0
build.sh
skiko/docker/build.sh
+1
-0
run.sh
skiko/docker/run.sh
+2
-0
No files found.
skiko/docker/Dockerfile
0 → 100644
View file @
4666f5f2
FROM
ubuntu:trusty-20191217
# Update binutils, g++, gcc
RUN
apt-get update
-y
&&
\
apt-get
install
build-essential software-properties-common
-y
&&
\
add-apt-repository ppa:ubuntu-toolchain-r/test
-y
&&
\
apt-get update
-y
&&
\
apt-get
install
binutils-2.26
&&
\
apt-get
install
build-essential software-properties-common
-y
&&
\
apt-get update
&&
\
apt-get
install
gcc-9 g++-9
-y
&&
\
update-alternatives
--install
/usr/bin/gcc gcc /usr/bin/gcc-9 60
--slave
/usr/bin/g++ g++ /usr/bin/g++-9
&&
\
update-alternatives
--config
gcc
ENV
PATH=/usr/lib/binutils-2.26/bin:$PATH
# Install libs & tools
ENV
DEPOT_TOOLS=/usr/depot_tools
ENV
PATH=$DEPOT_TOOLS:$PATH
RUN
apt-get
install
git python wget
-y
&&
\
apt-get
install
fontconfig libfontconfig1-dev libglu1-mesa-dev curl zip
-y
&&
\
git clone
'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
$DEPOT_TOOLS
# Install Java
ENV
JAVA_HOME=/usr/java/11
ENV
PATH=$JAVA_HOME/bin:$PATH
RUN
JAVA_URL
=
https://corretto.aws/downloads/latest/amazon-corretto-11-x64-linux-jdk.tar.gz
&&
\
JAVA_ARCHIVE
=
/tmp/jdk.tar.gz
&&
\
JAVA_BASE
=
/usr/java/
&&
\
wget
$JAVA_URL
--output-document
$JAVA_ARCHIVE
&&
\
mkdir
-p
$JAVA_BASE
&&
\
tar
-xzf
$JAVA_ARCHIVE
--directory
$JAVA_BASE
&&
\
find $JAVA_BASE -type d -maxdepth 1 -name "amazon-corretto-11*linux-x64" -exec mv {} $JAVA_HOME \; && \
rm $JAVA_ARCHIVE
ENV
LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
ENV
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF
skiko/docker/build.sh
0 → 100755
View file @
4666f5f2
docker build
-t
skiko-build
.
skiko/docker/run.sh
0 → 100755
View file @
4666f5f2
docker run
--rm
--mount
type
=
bind
,source
=
$HOME
/compose,target
=
/host
-ti
skiko-build bash
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