Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
tci-gateway-module
Grpc
Commits
118e331a
Commit
118e331a
authored
9 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
make sure docker image is up-to-date before each build
parent
602424a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/jenkins/grpc_jenkins_slave/Dockerfile
+3
-0
3 additions, 0 deletions
tools/jenkins/grpc_jenkins_slave/Dockerfile
tools/jenkins/run_jenkins.sh
+7
-2
7 additions, 2 deletions
tools/jenkins/run_jenkins.sh
with
10 additions
and
2 deletions
tools/jenkins/grpc_jenkins_slave/Dockerfile
+
3
−
0
View file @
118e331a
...
@@ -116,6 +116,9 @@ RUN apt-get update && apt-get install -y \
...
@@ -116,6 +116,9 @@ RUN apt-get update && apt-get install -y \
# Install Python packages from PyPI
# Install Python packages from PyPI
RUN
pip
install
futures
==
2.2.0
enum34
==
1.0.4
protobuf
==
3.0.0a2
RUN
pip
install
futures
==
2.2.0
enum34
==
1.0.4
protobuf
==
3.0.0a2
# For sanity test
RUN
pip
install
simplejson mako
##################
##################
# PHP dependencies
# PHP dependencies
...
...
This diff is collapsed.
Click to expand it.
tools/jenkins/run_jenkins.sh
+
7
−
2
View file @
118e331a
...
@@ -41,6 +41,12 @@ if [ "$platform" == "linux" ]
...
@@ -41,6 +41,12 @@ if [ "$platform" == "linux" ]
then
then
echo
"building
$language
on Linux"
echo
"building
$language
on Linux"
# Use image name based on Dockerfile checksum
DOCKER_IMAGE_NAME
=
grpc_jenkins_slave_
`
sha1sum
tools/jenkins/grpc_jenkins_slave/Dockerfile |
cut
-f1
-d
\
`
# Make sure docker image has been built. Should be instantaneous if so.
docker build
-t
$DOCKER_IMAGE_NAME
tools/jenkins/grpc_jenkins_slave
if
[
"
$ghprbPullId
"
!=
""
]
if
[
"
$ghprbPullId
"
!=
""
]
then
then
# if we are building a pull request, grab corresponding refs.
# if we are building a pull request, grab corresponding refs.
...
@@ -51,12 +57,11 @@ then
...
@@ -51,12 +57,11 @@ then
rm
-f
docker.cid
rm
-f
docker.cid
# Run tests inside docker
# Run tests inside docker
docker run
--cidfile
=
docker.cid
grpc/grpc_jenkins_slave
bash
-c
-l
"git clone --recursive
$GIT_URL
/var/local/git/grpc
\
docker run
--cidfile
=
docker.cid
$DOCKER_IMAGE_NAME
bash
-c
-l
"git clone --recursive
$GIT_URL
/var/local/git/grpc
\
&& cd /var/local/git/grpc
\
&& cd /var/local/git/grpc
\
$FETCH_PULL_REQUEST_CMD
\
$FETCH_PULL_REQUEST_CMD
\
&& git checkout -f
$GIT_COMMIT
\
&& git checkout -f
$GIT_COMMIT
\
&& git submodule update
\
&& git submodule update
\
&& pip install simplejson mako
\
&& nvm use 0.12
\
&& nvm use 0.12
\
&& rvm use ruby-2.1
\
&& rvm use ruby-2.1
\
&& CONFIG=
$config
tools/run_tests/prepare_travis.sh
\
&& CONFIG=
$config
tools/run_tests/prepare_travis.sh
\
...
...
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