Skip to content

Commit

Permalink
Update to Alpine 3.19 and NodeJS 20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Dec 8, 2023
1 parent f467849 commit 6dcef60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions build_dbhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export GOBIN=${DEST}/bin
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

# Tell NVM to use the correct version of NodeJS
nvm install --latest-npm --lts 20
nvm alias default 18
nvm use 20

# If this script is passed an argument of "clean", then delete the
# locally compiled pieces
if [ "$1" = "clean" ]; then
Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
FROM rabbitmq:3-alpine AS rabbit

# Build our own image
FROM alpine:3.18
FROM alpine:3.19

LABEL maintainer="Justin Clift <[email protected]>"

Expand All @@ -23,8 +23,8 @@ RUN addgroup -S rabbitmq && \

# Use a fast Australian mirror for the Alpine package repositories
# Without doing this, building the image can take 2+ hours. :(
RUN echo "https://mirror.aarnet.edu.au/pub/alpine/v3.18/main" > /etc/apk/repositories && \
echo "https://mirror.aarnet.edu.au/pub/alpine/v3.18/community" >> /etc/apk/repositories
RUN echo "https://mirror.aarnet.edu.au/pub/alpine/v3.19/main" > /etc/apk/repositories && \
echo "https://mirror.aarnet.edu.au/pub/alpine/v3.19/community" >> /etc/apk/repositories

# Install Git, Go, Memcached, Minio, and PostgreSQL
RUN apk update && \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"mq:q": "docker exec -it dbhub-build rabbitmqctl list_queues"
},
"engines": {
"node": "^18.14.1",
"node": "^20.10.0",
"yarn": "^1.22.19"
},
"repository": "https://github.com/sqlitebrowser/dbhub.io",
Expand Down

0 comments on commit 6dcef60

Please sign in to comment.