Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 18 #457

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
dist: focal
node_js:
- "16"

Expand Down Expand Up @@ -89,7 +90,7 @@ jobs:
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then npx audit-ci --config audit-ci.json; else npx audit-ci --config audit-ci.json || true; fi
- npm test
- if [[ "${TRAVIS_TAG}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then npm version --no-git-tag-version "${TRAVIS_TAG}"; fi
- docker build --rm -t "quay.io/razee/watch-keeper:${TRAVIS_COMMIT}-s390x" .
- docker build --no-cache --progress=plain --rm -t "quay.io/razee/watch-keeper:${TRAVIS_COMMIT}-s390x" .
- if [ -n "${TRAVIS_TAG}" ]; then docker tag quay.io/razee/watch-keeper:${TRAVIS_COMMIT}-s390x quay.io/razee/watch-keeper:${TRAVIS_TAG}-s390x; fi
- docker images
- ./build/process-template.sh kubernetes/watch-keeper/resource.yaml >/tmp/resource.yaml
Expand Down
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,25 @@
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
FROM node:lts-alpine as buildImg
FROM node:18-alpine as buildImg

RUN apk update
RUN apk --no-cache add gnupg python3 make curl

USER node
WORKDIR /home/node

RUN mkdir "/home/node/.npm"
RUN chown -R node /home/node/.npm
RUN ls -alR /home/node

COPY --chown=node . /home/node
RUN npm install --production --loglevel=warn
RUN npm ci --omit=dev --loglevel=warn
RUN node -v

#######################################
# Build the production image
FROM node:lts-alpine
FROM node:18-alpine

USER node
WORKDIR /home/node
Expand Down
Loading