Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #81 from daveconde/embed-deps
Browse files Browse the repository at this point in the history
chore: Pre-populate binary deps in to jx_home/bin
  • Loading branch information
jenkins-x-bot authored May 6, 2020
2 parents 2e200c2 + a217518 commit 3c0c37d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion builder-base/Dockerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ RUN curl -f https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKE
curl --silent --location "https://github.com/weaveworks/eksctl/releases/download/${EKSCTL_VERSION}/eksctl_Linux_amd64.tar.gz" | tar xz -C /tmp && \
mv /tmp/eksctl /usr/local/bin

ENV PATH ${PATH}:/opt/google/chrome
ENV PATH /home/jenkins/.jx/bin:${PATH}:/opt/google/chrome

# TODO: Remove deps downloaded above that are now included in jx bin
COPY builder-base/deps/bin/* /home/jenkins/.jx/bin/

CMD ["helm","version"]
6 changes: 6 additions & 0 deletions builder-base/build-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ cat /workspace/source/builder-base/Dockerfile > /workspace/source/builder-base/D
cat /workspace/source/Dockerfile.common >> /workspace/source/builder-base/Dockerfile.base.generated
cat /workspace/source/builder-base/Dockerfile.common >> /workspace/source/builder-base/Dockerfile.base.generated

export JX_HOME=/workspace/source/builder-base/deps
jx install dependencies --all
unset JX_HOME

ls -la /workspace/source/builder-base/deps/bin/

function build_image {
name=$1
base=$2
Expand Down
4 changes: 2 additions & 2 deletions jenkins-x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pipelineConfig:

# build base images
- name: build-base
image: centos:7
image: gcr.io/jenkinsxio/builder-go:0.0.0-SNAPSHOT-PR-7104-79
command: /workspace/source/builder-base/build-ng.sh
- name: build-and-push-base
command: /kaniko/executor
Expand Down Expand Up @@ -107,7 +107,7 @@ pipelineConfig:

# build base images
- name: build-base
image: centos:7
image: gcr.io/jenkinsxio/builder-go:0.0.0-SNAPSHOT-PR-7104-79
command: /workspace/source/builder-base/build-ng.sh
- name: build-and-push-base
command: /kaniko/executor
Expand Down

0 comments on commit 3c0c37d

Please sign in to comment.