Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
7d793c16
Commit
7d793c16
authored
Mar 04, 2016
by
Josh Haberman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable attempt to use ccache for docker build.
parent
2bda98f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
20 deletions
+13
-20
Dockerfile
tools/docker/Dockerfile
+10
-13
build_and_run_docker.sh
tools/jenkins/build_and_run_docker.sh
+3
-5
jenkins.sh
tools/run_tests/jenkins.sh
+0
-2
No files found.
tools/docker/Dockerfile
View file @
7d793c16
...
...
@@ -62,6 +62,7 @@ RUN apt-get update && apt-get install -y \
libtool
\
make
\
parallel
\
time
\
wget
\
# -- For csharp --
mono-devel \
...
...
@@ -116,19 +117,6 @@ RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc"
RUN
/bin/bash
-l
-c
"echo 'rvm --default use ruby-2.1' >> ~/.bashrc"
RUN
/bin/bash
-l
-c
"gem install bundler --no-ri --no-rdoc"
##################
# Prepare ccache
# We do this BEFORE the Java dependency step below, so the build of protoc
# can benefit from it.
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/gcc
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/g++
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/cc
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/c++
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/clang
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/clang++
##################
# Java dependencies
...
...
@@ -149,6 +137,15 @@ RUN cd /tmp && \
cd
../javanano
&&
\
$MVN
install
dependency:go-offline
-Dmaven
.repo.local
=
$MAVEN_REPO
##################
# Prepare ccache
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/gcc
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/g++
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/cc
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/c++
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/clang
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/clang++
# Define the default command.
CMD
["bash"]
tools/jenkins/build_and_run_docker.sh
View file @
7d793c16
...
...
@@ -46,15 +46,13 @@ cd -
# Use image name based on Dockerfile location checksum
DOCKER_IMAGE_NAME
=
$(
basename
$DOCKERFILE_DIR
)
_
$(
sha1sum
$DOCKERFILE_DIR
/Dockerfile |
cut
-f1
-d
\
)
# Make sure docker image has been built. Should be instantaneous if so.
docker build
-t
$DOCKER_IMAGE_NAME
$DOCKERFILE_DIR
# Ensure existence of ccache directory
CCACHE_DIR
=
/tmp/protobuf-ccache
mkdir
-p
$CCACHE_DIR
# Make sure docker image has been built. Should be instantaneous if so.
docker build
\
-v
$CCACHE_DIR
:
$CCACHE_DIR
\
-t
$DOCKER_IMAGE_NAME
$DOCKERFILE_DIR
# Choose random name for docker container
CONTAINER_NAME
=
"build_and_run_docker_
$(
uuidgen
)
"
...
...
tools/run_tests/jenkins.sh
View file @
7d793c16
...
...
@@ -44,8 +44,6 @@ $TIME_CMD $TEST_SCRIPT cpp > >(tee $CPP_STDOUT) 2> >(tee $CPP_STDERR >&2)
# Other tests are run in parallel. The overall run fails if any one of them
# fails.
FAILED
=
false
parallel
--results
$LOG_OUTPUT_DIR
--joblog
$OUTPUT_DIR
/joblog
$TEST_SCRIPT
:::
\
csharp
\
java_jdk7
\
...
...
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