Skip to content

Commit 0dec52f

Browse files
committed
ci: enable yarn in test image
1 parent 003b6d6 commit 0dec52f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

dev/tests/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ RUN sed -i 's/\r$//' /tmp/app-install-chromedriver.sh && \
7272
chmod +x /tmp/app-install-chromedriver.sh
7373
RUN /tmp/app-install-chromedriver.sh
7474

75+
# Activate Yarn
76+
RUN corepack enable
77+
7578
# Get rid of installation files we don't need in the image, to reduce size
7679
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
7780

@@ -114,8 +117,3 @@ RUN chmod +rx /usr/local/bin/wait-for
114117
# Create workspace
115118
RUN mkdir -p /workspace
116119
WORKDIR /workspace
117-
118-
# Install NPM modules
119-
COPY package.json package.json
120-
RUN npm install --no-audit
121-
RUN rm -f package.json package-lock.json

dev/tests/prepare.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ echo "Copying config files..."
88
cp ./docker/configs/settings_local.py ./ietf/settings_local.py
99
echo "Ensure all requirements.txt packages are installed..."
1010
pip install -r requirements.txt
11+
echo "Compiling native node packages..."
12+
yarn rebuild
1113
echo "Building static assets..."
1214
yarn build
1315
echo "Creating data directories..."

0 commit comments

Comments
 (0)