Skip to content

Commit

Permalink
CAMEL-11500: for PnP to work we need Yarn 13+
Browse files Browse the repository at this point in the history
Yarn 13+ patches `resolve` module to resolve from PnP[1].

[1] yarnpkg/yarn#6816
  • Loading branch information
zregvart committed Jan 4, 2019
1 parent 116f122 commit 9391ce8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
1 change: 1 addition & 0 deletions .dockerignore
@@ -0,0 +1 @@
**/*
25 changes: 25 additions & 0 deletions Dockerfile
@@ -0,0 +1,25 @@
FROM node:lts-stretch

ENV YARN_VERSION 1.13.0

RUN set -ex \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
libasound2 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libnss3 \
libx11-xcb1 \
libxss1 \
libxtst6 \
&& rm -rf /var/lib/apt/lists/*

RUN set -ex \
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& mkdir -p /opt \
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
&& ln -fs /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& ln -fs /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
9 changes: 4 additions & 5 deletions Jenkinsfile
Expand Up @@ -17,7 +17,6 @@
* under the License.
*/
def NODE = 'git-websites'
def NODE_IMAGE = 'circleci/node:11-browsers'

pipeline {
agent {
Expand All @@ -42,9 +41,9 @@ pipeline {
stages {
stage('Theme') {
agent {
docker {
dockerfile {
dir 'camel-website'
label "$NODE"
image "$NODE_IMAGE"
reuseNode true
}
}
Expand All @@ -57,9 +56,9 @@ pipeline {

stage('Website') {
agent {
docker {
dockerfile {
dir 'camel-website'
label "$NODE"
image "$NODE_IMAGE"
reuseNode true
}
}
Expand Down

0 comments on commit 9391ce8

Please sign in to comment.