Skip to content

Commit

Permalink
Node.js needs to execute arbitrary code at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Naik committed Sep 10, 2015
1 parent 6534471 commit 302eb70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This file only reflects the changes that are made in the the docker image. Pleas

**latest**
- gitlab-ci: upgrade to v.7.14.2
- Node.js needs to execute arbitrary code at runtime

**7.14.1**
- gitlab-ci: upgrade to v.7.14.1
Expand Down
9 changes: 6 additions & 3 deletions assets/setup/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ GEM_CACHE_DIR="${SETUP_DIR}/cache"
apt-get update

# install build dependencies for gem installation
apt-get install -y gcc g++ make patch libc6-dev ruby2.1-dev \
apt-get install -y gcc g++ make patch paxctl libc6-dev ruby2.1-dev \
libmysqlclient-dev libpq-dev zlib1g-dev libyaml-dev libssl-dev \
libgdbm-dev libreadline-dev libncurses5-dev libffi-dev \
libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev

# add git user
# https://en.wikibooks.org/wiki/Grsecurity/Application-specific_Settings#Node.js
paxctl -Cm `which nodejs`

# add gitlab_ci user
adduser --disabled-login --gecos 'GitLab CI' ${GITLAB_CI_USER}

# set PATH (fixes cron job PATH issues)
Expand Down Expand Up @@ -177,7 +180,7 @@ stderr_logfile=${GITLAB_CI_LOG_DIR}/supervisor/%(program_name)s.log
EOF

# purge build dependencies
apt-get purge -y --auto-remove gcc g++ make patch libc6-dev ruby-dev \
apt-get purge -y --auto-remove gcc g++ make patch paxctl libc6-dev ruby-dev \
libmysqlclient-dev libpq-dev zlib1g-dev libyaml-dev libssl-dev \
libgdbm-dev libreadline-dev libncurses5-dev libffi-dev \
libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev
Expand Down

0 comments on commit 302eb70

Please sign in to comment.