-
-
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.
Merge pull request #189 from StackStorm/node20
Node 20 and EL9
- Loading branch information
Showing
18 changed files
with
136 additions
and
40 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
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
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
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
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,4 +1,4 @@ | ||
FROM node:10.15-slim | ||
FROM node:20.11.1-slim | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
python \ | ||
|
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
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
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
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
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
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,24 @@ | ||
FROM rockylinux:9 | ||
|
||
RUN yum -y install gcc-c++ make git libicu-devel rpmdevtools | ||
|
||
RUN yum -y install systemd-rpm-macros | ||
|
||
# Install node | ||
RUN yum -y module install nodejs:20 | ||
RUN node --version | ||
|
||
# Install python3 for gyp | ||
RUN yum -y install python3 | ||
|
||
# Upgrade gyp to a python3 compatible version | ||
RUN npm install -g node-gyp@latest | ||
|
||
# Install development tools | ||
#RUN yum -y install nodejs:20.1.1 | ||
|
||
# Downgrade npm | ||
RUN npm install -g npm@6 | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT [ "/entrypoint.sh" ] |
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,18 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
set -o pipefail | ||
|
||
operation="${1:-build}" | ||
|
||
case "$operation" in | ||
pull) | ||
;; | ||
build) | ||
rpmbuild -bb rpm/st2chatops.spec | ||
cp ../*.rpm $ARTIFACT_DIR | ||
;; | ||
*) | ||
[[ $# -gt 0 ]] && exec "$@" | ||
;; | ||
esac |
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
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
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
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,10 +1,7 @@ | ||
FROM rockylinux:8 | ||
|
||
# Add NodeSource repo | ||
RUN curl --silent --location https://rpm.nodesource.com/setup_10.x | bash - | ||
|
||
# Install development tools | ||
RUN yum -y install nodejs | ||
RUN yum -y module install nodejs:20 | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT [ "/entrypoint.sh" ] |
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,7 @@ | ||
FROM rockylinux:9 | ||
|
||
# Install development tools | ||
RUN yum -y module install nodejs:20 | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT [ "/entrypoint.sh" ] |
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,28 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
set -o pipefail | ||
|
||
operation="${1:-test}" | ||
|
||
case "$operation" in | ||
pull) | ||
;; | ||
test) | ||
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 | ||
sed -i.bak -r "s/^(export ST2_AUTH_USERNAME.).*/\1$ST2_USERNAME/" st2chatops.env | ||
sed -i.bak -r "s/^(export ST2_AUTH_PASSWORD.).*/\1$ST2_PASSWORD/" st2chatops.env | ||
bin/hubot &> /tmp/hubot.log & | ||
sleep 15 | ||
cat /tmp/hubot.log | ||
grep -rq "INFO Connected to Slack RTM" /tmp/hubot.log && \ | ||
grep -rq "INFO [[:digit:]]\+ commands are loaded" /tmp/hubot.log | ||
exit $? | ||
;; | ||
*) | ||
[[ $# -gt 0 ]] && exec "$@" | ||
;; | ||
esac |