Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit c869a8e

Browse files
authored
Merge pull request #1574 from NativeScript/bektchiev/update-base-docker-image
fix(build): Update docker base image to ruby:2.6.1-alpine3.9
2 parents 75246a9 + 03baaba commit c869a8e

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

build/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.3.5-alpine3.4
1+
FROM ruby:2.6.1-alpine3.9
22

33
RUN apk add --update \
44
bash \
@@ -10,6 +10,7 @@ RUN apk add --update \
1010
rsync \
1111
nginx \
1212
nodejs \
13+
npm \
1314
&& npm config set unsafe-perm true \
1415
&& rm -rf /var/cache/apk/* \
1516
&& npm config set cache /var --global \

build/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source 'https://rubygems.org'
22

33
gem 'uglifier'
4+
gem 'json', '1.8.6'
45
gem 'jekyll', '3.0.1'
56
gem 'jekyll-sitemap'
67
gem 'jekyll-assets'

build/Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ GEM
4242
jekyll-unsanitize (0.4)
4343
jekyll-watch (1.4.0)
4444
listen (~> 3.0, < 3.1)
45-
json (1.8.3)
45+
json (1.8.6)
4646
kramdown (1.11.1)
4747
liquid (3.0.6)
4848
listen (3.0.8)
@@ -90,6 +90,7 @@ DEPENDENCIES
9090
jekyll-assets
9191
jekyll-sitemap
9292
jekyll-unsanitize (= 0.4)
93+
json (= 1.8.6)
9394
uglifier
9495

9596
BUNDLED WITH

build/build-docs.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -ex
33

44
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
55
ROOT=$SCRIPT_PATH"/bin"
@@ -53,7 +53,7 @@ cp -r $SCRIPT_PATH"/_config_vuejs.yml" \
5353
$SCRIPT_PATH"/_includes" \
5454
$SCRIPT_PATH"/fonts" \
5555
$VUEJS_ROOT
56-
56+
5757
rm $VUEJS_ROOT"/_plugins/redirect_generator.rb" \
5858
$VUEJS_ROOT"/_plugins/snippet.rb" \
5959
$VUEJS_ROOT"/_plugins/ns_cookbook.rb"
@@ -83,8 +83,8 @@ if [ -f $NS_UI_LV"/README.md" ]; then
8383
cd "../demo-angular"
8484
npm install markdown-snippet-injector
8585
npm run inject
86-
87-
86+
87+
8888
done
8989

9090
cd $NS_UI_API_REF

build/docs-watcher/start.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ trap 'sigint_handler' SIGINT
2626
mkdir -p /www
2727

2828
if [ ! -d /root/./nativescript-ui-listview ]; then
29-
mkdir /root/./nativescript-ui-listview
29+
mkdir /root/./nativescript-ui-listview
3030

3131
fi
3232
if [ ! -d /root/./nativescript-ui-autocomplete ]; then
@@ -35,10 +35,10 @@ if [ ! -d /root/./nativescript-ui-autocomplete ]; then
3535
fi
3636
if [ ! -d /root/./nativescript-ui-dataform ]; then
3737
mkdir /root/./nativescript-ui-dataform
38-
38+
3939
fi
4040
if [ ! -d /root/./nativescript-ui-chart ]; then
41-
mkdir /root/./nativescript-ui-chart
41+
mkdir /root/./nativescript-ui-chart
4242

4343
fi
4444
if [ ! -d /root/./nativescript-ui-calendar ]; then
@@ -47,18 +47,18 @@ if [ ! -d /root/./nativescript-ui-calendar ]; then
4747
fi
4848
if [ ! -d /root/./nativescript-ui-gauge ]; then
4949
mkdir /root/./nativescript-ui-gauge
50-
50+
5151
fi
5252
if [ ! -d /root/./nativescript-ui-sidedrawer ]; then
5353
mkdir /root/./nativescript-ui-sidedrawer
54-
54+
5555
fi
5656
if [ ! -d /root/./docs/ns_ui_api-reference/ns-ui-api-reference ]; then
57-
mkdir /root/./docs/ns_ui_api-reference/ns-ui-api-reference
57+
mkdir /root/./docs/ns_ui_api-reference/ns-ui-api-reference
5858

5959
fi
6060
echo "Start copying mounted folders..."
61-
rsync --relative -az --exclude node_modules/ \
61+
rsync --relative -az --exclude node_modules/ --exclude .git \
6262
/root/./docs \
6363
/root/./NativeScript \
6464
/root/./nativescript-angular \

0 commit comments

Comments
 (0)