diff --git a/Makefile b/Makefile index 78feb36..f39fefe 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,8 @@ endif all: build build: + # Permissions workaround for global `npm install` + chown -R root:root /root/st2chatops/ npm install --production npm cache verify && npm cache clean --force diff --git a/testingenv/bionic/docker-entrypoint.sh b/testingenv/bionic/docker-entrypoint.sh index 98f9b30..484b92e 100755 --- a/testingenv/bionic/docker-entrypoint.sh +++ b/testingenv/bionic/docker-entrypoint.sh @@ -6,7 +6,7 @@ case "$operation" in pull) ;; test) - dpkg -i $ARTIFACT_DIR/*.deb + apt-get install -y $ARTIFACT_DIR/*.deb cd /opt/stackstorm/chatops sed -i.bak -r "s/^# (export HUBOT_ADAPTER=slack)/\1/" st2chatops.env sed -i.bak -r "s/^# (export HUBOT_SLACK_TOKEN.).*/\1$SLACK_TOKEN/" st2chatops.env diff --git a/testingenv/centos6/docker-entrypoint.sh b/testingenv/centos6/docker-entrypoint.sh index 628f093..38e2ba6 100755 --- a/testingenv/centos6/docker-entrypoint.sh +++ b/testingenv/centos6/docker-entrypoint.sh @@ -6,7 +6,7 @@ case "$operation" in pull) ;; test) - rpm -i $ARTIFACT_DIR/*.rpm + yum install -y $ARTIFACT_DIR/*.rpm cd /opt/stackstorm/chatops sed -i.bak -r "s/^# (export HUBOT_ADAPTER=slack)/\1/" st2chatops.env sed -i.bak -r "s/^# (export HUBOT_SLACK_TOKEN.).*/\1$SLACK_TOKEN/" st2chatops.env diff --git a/testingenv/centos7/docker-entrypoint.sh b/testingenv/centos7/docker-entrypoint.sh index 628f093..38e2ba6 100755 --- a/testingenv/centos7/docker-entrypoint.sh +++ b/testingenv/centos7/docker-entrypoint.sh @@ -6,7 +6,7 @@ case "$operation" in pull) ;; test) - rpm -i $ARTIFACT_DIR/*.rpm + yum install -y $ARTIFACT_DIR/*.rpm cd /opt/stackstorm/chatops sed -i.bak -r "s/^# (export HUBOT_ADAPTER=slack)/\1/" st2chatops.env sed -i.bak -r "s/^# (export HUBOT_SLACK_TOKEN.).*/\1$SLACK_TOKEN/" st2chatops.env diff --git a/testingenv/trusty/docker-entrypoint.sh b/testingenv/trusty/docker-entrypoint.sh index 98f9b30..484b92e 100755 --- a/testingenv/trusty/docker-entrypoint.sh +++ b/testingenv/trusty/docker-entrypoint.sh @@ -6,7 +6,7 @@ case "$operation" in pull) ;; test) - dpkg -i $ARTIFACT_DIR/*.deb + apt-get install -y $ARTIFACT_DIR/*.deb cd /opt/stackstorm/chatops sed -i.bak -r "s/^# (export HUBOT_ADAPTER=slack)/\1/" st2chatops.env sed -i.bak -r "s/^# (export HUBOT_SLACK_TOKEN.).*/\1$SLACK_TOKEN/" st2chatops.env diff --git a/testingenv/xenial/docker-entrypoint.sh b/testingenv/xenial/docker-entrypoint.sh index 98f9b30..484b92e 100755 --- a/testingenv/xenial/docker-entrypoint.sh +++ b/testingenv/xenial/docker-entrypoint.sh @@ -6,7 +6,7 @@ case "$operation" in pull) ;; test) - dpkg -i $ARTIFACT_DIR/*.deb + apt-get install -y $ARTIFACT_DIR/*.deb cd /opt/stackstorm/chatops sed -i.bak -r "s/^# (export HUBOT_ADAPTER=slack)/\1/" st2chatops.env sed -i.bak -r "s/^# (export HUBOT_SLACK_TOKEN.).*/\1$SLACK_TOKEN/" st2chatops.env