-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User container to run yarn for pr_check intead of installing yarn run…
…ning in Jenkins executor. (#119)
- Loading branch information
Showing
2 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM quay.io/centos/centos:7 | ||
|
||
# Set PATH, because "scl enable" does not have any effects to "docker build" | ||
ENV PATH /opt/rh/rh-nodejs10/root/usr/bin:$PATH | ||
|
||
# enable scl with nodejs8 | ||
RUN yum install centos-release-scl-rh -y && \ | ||
yum install rh-nodejs10 rh-nodejs10-npm -y && \ | ||
yum clean all && \ | ||
npm install -g yarn | ||
|
||
ENV APP_ROOT /opt/qontract-server | ||
ADD . ${APP_ROOT} | ||
WORKDIR ${APP_ROOT} | ||
|
||
RUN yarn install && yarn run lint && yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
#!/bin/bash | ||
|
||
npm install tslint | ||
npm install typescript | ||
npm install mocha | ||
npm install yarn | ||
|
||
CURRENT_DIR=$(pwd) | ||
|
||
$CURRENT_DIR/node_modules/yarn/bin/yarn run lint | ||
|
||
$CURRENT_DIR/node_modules/yarn/bin/yarn test | ||
docker build --pull -t quay.io/app-sre/qontract-server:test -f Dockerfiletest . |